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 temporary store session-specific data needed within a single game?
Write session-specific data to Amazon Elastic File System (EFS) mounted to the Lambda function.
Persist session-specific data in Amazon DynamoDB with short expiry TTL.
Store session-specific data in Amazon ElastiCache for Redis.
Maintain temporary game state using Lambda environment variables.