AWS Certified Developer Associate DVA-C02 Practice Question
Your development team is tasked with optimizing a backend AWS Lambda function for an online sports trivia game. The Lambda function will receive player responses through Amazon API Gateway and needs to process them efficiently during high-traffic events such as live sports matches. Considering the need to adhere to stateless design principles, which method should you employ to temporarily store session-specific data needed within a single game?
Store session-specific data in Amazon ElastiCache for Redis.
Maintain temporary game state using Lambda environment variables.
Persist session-specific data in Amazon DynamoDB with short expiry TTL.
Write session-specific data to Amazon Elastic File System (EFS) mounted to the Lambda function.
Using Amazon ElastiCache for Redis is the best option for temporary session-specific data storage for a stateless Lambda function. Redis provides fast, in-memory data storage and retrieval, which is ideal for the ephemeral nature of session data within a single game session without persisting state in the Lambda function itself. Amazon DynamoDB, while durable and scalable, introduces higher single-digit-millisecond latencies and is optimized for long-lived data, making it less suitable when microsecond-level performance is required. Lambda environment variables are intended for static configuration rather than per-invocation data, and mounting Amazon EFS would create cross-invocation persistence that violates stateless principles and could become a scalability bottleneck.
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 ElastiCache for Redis suitable for temporary session-specific data storage?
Open an interactive chat with Bash
Why is DynamoDB less suitable for storing session-specific data in this context?
Open an interactive chat with Bash
What are the limitations of using Lambda environment variables for session-specific data?
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 .