AWS Certified Solutions Architect - Associate / Question #1718 of 1019

Question #1718

A company operates a containerized application on-premises using Docker, with persistent data stored on local host volumes. They aim to migrate to a fully managed AWS service to eliminate server and storage management. Which solution meets these requirements?

A

Use Amazon EKS with AWS Fargate. Attach an Amazon EBS volume to the pods and mount it as persistent storage.

B

Use Amazon ECS with AWS Fargate. Configure an Amazon EFS file system and mount it as a persistent volume in the containers.

C

Use Amazon ECS with EC2 launch type. Create an Amazon EBS volume attached to EC2 instances and mount it in the containers.

D

Use Amazon EKS with self-managed nodes. Set up an Amazon EFS volume and mount it as persistent storage in the pods.

Explanation

Option B is correct because:
- AWS Fargate removes the need to manage EC2 instances (serverless), meeting the requirement to eliminate server management.
- Amazon EFS is a fully managed, scalable file storage service that integrates with ECS/Fargate. It allows multiple containers to access shared data persistently across availability zones, unlike EBS (which is tied to a single AZ/instance).

Other options fail because:
- A & D: EBS volumes are AZ-specific and require managing storage placement, conflicting with the 'fully managed' requirement. Self-managed nodes (D) also require server management.
- C: EC2 launch type requires managing EC2 instances, violating the 'eliminate server management' requirement.

Key Points:
- Use Fargate for serverless compute.
- Use EFS for multi-AZ persistent storage in containerized environments.

Answer

The correct answer is: B