AWS Certified Solutions Architect - Professional / Question #757 of 529

Question #757

A company is migrating a multi-tier web application to AWS using containers. The application consists of web, application, and database tiers. The company requires high fault tolerance and scalability. Session data from frontend web servers must persist, and frequently accessed data needs to be shared across all application tiers with minimal operational effort.

Which solution meets these requirements with the LEAST ongoing operational overhead?

A

Deploy the application using Amazon ECS on EC2 instances. Use Amazon ElastiCache for Redis to manage frontend session data. Configure Amazon EBS volumes with Multi-Attach for shared data storage across instances in multiple Availability Zones.

B

Run the application on Amazon ECS with AWS Fargate. Utilize Amazon ElastiCache for Redis to handle frontend web server session persistence. Use Amazon EFS for shared storage of frequently accessed data across all application tiers.

C

Host the application on Amazon EKS with managed node groups. Deploy the web and application tiers as Kubernetes ReplicaSets. Mount an Amazon EFS file system to all pods for both session data and shared storage.

D

Use Amazon EKS with managed node groups. Deploy the web and application tiers as Kubernetes deployments. Store session data in Amazon DynamoDB and use Amazon EBS volumes with Multi-Attach for shared data across Availability Zones.

Explanation

Option B is correct because:
- AWS Fargate eliminates EC2 management, reducing operational effort.
- ElastiCache for Redis provides fast, scalable session persistence.
- Amazon EFS offers shared, multi-AZ storage for frequently accessed data.

Other options are incorrect because:
- A & D: Use EBS Multi-Attach, which is limited to a single Availability Zone, compromising fault tolerance.
- C: EKS introduces operational complexity, and using EFS for session data is less efficient than ElastiCache.
- D: DynamoDB is less optimal for session data than Redis.

Key Points:
- Use managed services (Fargate, ElastiCache, EFS) to reduce operational overhead.
- Prioritize multi-AZ storage (EFS) over single-AZ solutions (EBS Multi-Attach).
- ElastiCache is ideal for low-latency session persistence.

Answer

The correct answer is: B