AWS Certified Developer Associate DVA-C02 Practice Question
Your company's cloud architecture leans heavily on AWS Lambda to process e-commerce transactions. The functions must scale automatically and remain unaffected by the state of previous invocations. A payment-processing function calls an external gateway and must reliably handle transactions during peak hours. To ensure the function adheres to a stateless design, what should you do?
Store transaction state data in an external database or caching service such as Amazon DynamoDB or Amazon ElastiCache.
Use environment variables to store transaction state between invocations.
Configure the Lambda function to process transactions asynchronously using an internal queue.
Enable automatic scaling on the Lambda function to handle the increased number of transactions.
Storing transaction state externally (for example, in Amazon DynamoDB or Amazon ElastiCache) separates state from compute, allowing each Lambda invocation to run independently. Environment variables are suitable for static configuration, not dynamic state. Automatic scaling or asynchronous queues improve throughput but do not, by themselves, remove shared state between invocations.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is it important for AWS Lambda functions to be stateless?
Open an interactive chat with Bash
What are the differences between Amazon DynamoDB and Amazon ElastiCache for storing state?
Open an interactive chat with Bash
How does automatic scaling relate to AWS Lambda's stateless architecture?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .