SAP-C02 Amazon EBS Practice Question
A company is migrating a legacy application to Amazon ECS. The application has a stateful component that stores data on the local filesystem. Which TWO storage options can be used to persist data beyond the lifecycle of the container?
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 EBS
Options A (Amazon EBS) and E (Amazon EFS) are correct. Amazon EBS volumes can be attached to EC2 instances running ECS tasks (EC2 launch type) and persist beyond the container lifecycle. Amazon EFS provides a shared file system that can be mounted by containers, including Fargate tasks, and data persists after the container stops. Option B (Fargate ephemeral storage) is incorrect because it is temporary and lost when the container stops. Option C (Amazon ECR) is a container registry, not a storage option. Option D (Amazon S3) is object storage, not a filesystem suitable for direct attachment to containers.
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 EBS
Why this is correct
Correct. Amazon EBS volumes provide persistent block storage that can be attached to EC2 instances running ECS tasks, surviving container restarts.
- ✗
Amazon ECS Fargate ephemeral storage
Why it's wrong here
Incorrect. Fargate ephemeral storage is temporary and lost when the task stops, so it cannot persist data beyond the container's lifecycle.
- ✗
Amazon ECR
Why it's wrong here
Incorrect. Amazon ECR is a container image registry, not a storage solution for container data.
- ✗
Amazon S3
Why it's wrong here
Incorrect. Amazon S3 is object storage, not a filesystem that can be mounted directly for persistent storage in ECS tasks.
- ✓
Amazon EFS
Why this is correct
Correct. Amazon EFS provides a scalable, shared file system that can be mounted by ECS tasks, ensuring data persists beyond the container's lifecycle.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on SAP-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company is migrating a containerized application to Amazon ECS. The application requires persistent storage that can be shared across multiple containers running on different EC2 instances. Which storage solution should they use?
medium- A.Amazon FSx for Lustre
- B.Amazon EBS
- ✓ C.Amazon EFS
- D.Amazon S3
Why C: Amazon EFS provides a shared file system that can be accessed by multiple EC2 instances concurrently, making it ideal for persistent storage shared across containers in Amazon ECS. Option A (Amazon FSx for Lustre) is designed for high-performance computing workloads and is not intended for general shared container storage. Option B (Amazon EBS) volumes are block-level storage that can only be attached to a single EC2 instance at a time, so they cannot be shared across multiple instances. Option D (Amazon S3) is object storage, not a file system, and does not provide a standard file system interface that containers require.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SAP-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 SAP-C02 exam.