SAP-C02 Question 157
Select 2You have been tasked with designing a scalable and highly available solution for a web application hosted on Amazon ECS using Fargate. The application requires persistent storage for its data and must be resilient to failure in a single Availability Zone. Which combination of AWS services and configurations will best meet these requirements?
- A
Use Amazon ECS with Fargate tasks and mount Amazon EFS with Multi-AZ enabled as a persistent storage layer.
- B
Use Amazon S3 for storing persistent data since it provides high availability and durability.
- C
Use Amazon ECS with Fargate tasks and Amazon EBS as the persistent storage layer, ensuring the EBS volumes are replicated across multiple Availability Zones.
- D
Use Amazon ECS with Fargate tasks and configure Amazon DynamoDB to store application data with on-demand capacity mode.
- E
Use Amazon ECS with Fargate tasks and mount Amazon EFS with One Zone storage class for lower costs.
Show answer and explanation
Correct answers: A, D
Explanation
To meet the requirements for persistent storage that is scalable, highly available, and resilient to failures in a single Availability Zone, Amazon EFS with Multi-AZ enabled is ideal for file system use cases. Additionally, Amazon DynamoDB offers a scalable and highly available database solution for persistent application data. Amazon S3, while durable, is not designed for file system usage. Amazon EBS lacks native multi-AZ replication, and EFS One Zone does not meet the high availability criteria.
- A. Correct.
Correct: Amazon EFS with Multi-AZ enabled ensures high availability and durability for persistent storage across multiple Availability Zones, which aligns with the requirements.
- B. Incorrect.
Incorrect: While Amazon S3 provides high availability and durability, it is not designed for file system use cases or direct mounting to ECS tasks as a persistent storage layer.
- C. Incorrect.
Incorrect: Amazon EBS is specific to a single Availability Zone and does not natively support cross-AZ replication, making it unsuitable for the high availability requirement.
- D. Correct.
Correct: Amazon DynamoDB is a highly available and scalable NoSQL database that can serve as a persistent storage layer for application data, meeting the requirements.
- E. Incorrect.
Incorrect: Amazon EFS with One Zone storage class sacrifices availability and durability by restricting data to a single Availability Zone, which does not meet the resilience requirements.