DVA-C02 Development with AWS Services Practice Question
A developer wants to deploy a containerized application to Amazon ECS using Fargate. The application requires persistent storage that can be shared across multiple containers in the same task. Which storage option should the developer use?
⚠ Common exam trap
A common mix-up: candidates confuse Amazon EBS with a shared storage solution, but EBS volumes cannot be attached to multiple Fargate containers or tasks simultaneously, making EFS the only correct choice for shared persistent storage in this context.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Amazon EFS file system
Amazon EFS provides a shared, persistent, and scalable file system that can be mounted by multiple containers within the same ECS task using Fargate. EFS supports the Network File System (NFS) protocol, allowing concurrent read/write access from all containers in the task, which meets the requirement for shared persistent storage. Unlike ephemeral or block storage options, EFS is designed for multi-attach scenarios and persists independently of the container lifecycle.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Amazon EC2 instance store
Why it's wrong here
Amazon EC2 instance stores provide temporary block-level storage directly attached to an EC2 instance. This storage is ephemeral, meaning all data is lost when the instance stops or terminates, making it unsuitable for persistent application data. Crucially, AWS Fargate, which abstracts the underlying EC2 infrastructure, does not expose or support the use of EC2 instance stores for container volumes.
- ✓
Amazon EFS file system
Why this is correct
Amazon EFS (Elastic File System) provides scalable, elastic, shared file storage that can be accessed concurrently by multiple AWS Fargate tasks. It offers persistent storage, ensuring data remains available even if containers are stopped, replaced, or scaled. This makes EFS an excellent choice for containerized applications requiring shared state, persistent data, or a common file system across different application instances running on Fargate.
- ✗
Amazon S3 bucket
Why it's wrong here
Amazon S3 (Simple Storage Service) is an object storage service, designed for storing and retrieving large amounts of unstructured data via an API. While highly durable and scalable, S3 does not function as a traditional POSIX-compliant file system that can be directly mounted as a volume within an AWS Fargate container. Containerized applications typically require a file system interface for their persistent storage needs, which S3 does not natively provide for direct volume mounting.
- ✗
Amazon EBS volume
Why it's wrong here
Amazon EBS (Elastic Block Store) provides persistent block storage volumes that can be attached to a single Amazon EC2 instance. While highly performant and durable, EBS volumes are fundamentally designed for single-instance attachment and are not directly supported as a volume type for AWS Fargate tasks. Fargate's serverless operational model abstracts the underlying infrastructure, preventing direct attachment or management of EBS volumes for container storage.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.