
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A solutions architect is designing the architecture of a new application being deployed to the AWS Cloud. The application will run on Amazon EC2 On-Demand Instances and will automatically scale across multiple Availability Zones. The EC2 instances will scale up and down frequently throughout the day. An Application Load Balancer (ALB) will handle the load distribution. The architecture needs to support distributed session data management. The company is willing to make changes to code if needed.
What should the solutions architect do to ensure that the architecture supports distributed session data management?
A
Use Amazon ElastiCache to manage and store session data.
B
Use session affinity (sticky sessions) of the ALB to manage session data.
C
Use Session Manager from AWS Systems Manager to manage the session.
D
Use the GetSessionToken API operation in AWS Security Token Service (AWS STS) to manage the session.
Explanation:
Correct Answer: A - Use Amazon ElastiCache to manage and store session data.
Distributed Session Management Requirement: When EC2 instances scale up and down frequently across multiple Availability Zones, session data needs to be stored externally so that any instance can access it. Amazon ElastiCache (Redis or Memcached) provides an in-memory data store that can be used to store session data centrally.
Code Changes are Acceptable: The question states "The company is willing to make changes to code if needed." This indicates that modifying the application to store session data in an external cache like ElastiCache is feasible.
Scalability and Availability: ElastiCache provides high availability, automatic failover, and can scale to handle the session data requirements of a dynamically scaling application.
B. Use session affinity (sticky sessions) of the ALB to manage session data.
C. Use Session Manager from AWS Systems Manager to manage the session.
D. Use the GetSessionToken API operation in AWS Security Token Service (AWS STS) to manage the session.
Session Data Persistence: With auto-scaling, instances can be terminated at any time. External session storage ensures session data survives instance termination.
Multi-AZ Deployment: ElastiCache can be deployed across multiple Availability Zones for high availability.
Performance: In-memory caching provides low-latency access to session data.
Implementation: The application code would need to be modified to store session data in ElastiCache instead of local instance memory.