Courseiva
Deployment →mediumMultiple Choice

CV0-004 Deployment Practice Question

A cloud engineer is deploying a containerized application on Amazon ECS using the Fargate launch type. The application requires persistent storage for a database container. The engineer needs to ensure that the data persists even if the task is stopped and restarted. Which storage option should the engineer use?

⚠ Common exam trap

The trap here is assuming that any AWS storage service can be used with Fargate, when in fact Fargate has specific supported storage integrations, and EFS is the primary persistent file storage option.

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 mounted as a volume in the task definition

Amazon EFS is the only storage option that provides persistent, shared file storage that can be mounted by Fargate tasks. It survives task restarts and can be used for database containers that require a file system. EBS volumes cannot be attached to Fargate tasks, Docker volumes on the host are not accessible, and S3 is not suitable for database storage due to performance and consistency limitations.

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 S3 bucket mounted as a file system using s3fs

    Why it's wrong here

    Amazon S3 is an object storage service and is not designed to be mounted as a file system for database workloads. Using s3fs or similar tools introduces latency and does not provide the performance or consistency required for a database. While S3 can be used for backups, it is not suitable as primary persistent storage for a database container running on Fargate.

  • ✗

    Docker volume on the host instance

    Why it's wrong here

    With Fargate, there is no host instance that you can access or manage. Docker volumes on the host are not available because Fargate runs tasks on AWS-managed infrastructure. The ephemeral storage provided by Fargate is not persistent and is deleted when the task stops. Therefore, this option does not provide persistent storage for Fargate tasks.

  • ✗

    Amazon EBS volume attached to the Fargate task

    Why it's wrong here

    Amazon EBS volumes cannot be directly attached to Fargate tasks. Fargate tasks run on isolated compute capacity managed by AWS, and they do not support attaching EBS volumes. This option is invalid because Fargate abstracts the underlying host, and EBS volumes require an EC2 instance to attach to. Therefore, it cannot provide persistent storage for Fargate tasks.

  • ✓

    Amazon EFS file system mounted as a volume in the task definition

    Why this is correct

    Amazon EFS provides a shared, elastic file system that can be mounted by multiple Fargate tasks simultaneously. It supports persistent storage that survives task restarts and can be used for database containers that require a file system. EFS is the recommended solution for persistent storage with Fargate because it integrates natively and supports the required durability and scalability.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every CV0-004 question from scratch — 834 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.