AWS Certified Developer – Associate (DVA-C02) — Question 519

A developer is deploying an application on an Amazon Elastic Container Service (Amazon ECS) cluster that uses AWS Fargate. The developer is using a Docker container with an Ubuntu image.

The developer needs to implement a solution to store application data that is available from multiple ECS tasks. The application data must remain accessible after the container is terminated.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Amazon Elastic File System (Amazon EFS) provides serverless, fully managed elastic file storage that can be concurrently mounted by multiple Amazon ECS tasks running on AWS Fargate. By defining the efsVolumeConfiguration and configuring the mountPoints in the task definition, the container can access persistent data that survives container termination. Amazon EBS and Docker volumes do not support concurrent multi-task mounting with Fargate, and Amazon FSx for Windows File Server is unsuitable for an Ubuntu-based container.