DVA-C02 Question 111
Select 2A company is deploying a containerized application on Amazon ECS. The application requires high-speed temporary storage for processing data and a separate storage solution for retaining user-uploaded files that must persist across container restarts. Which combination of storage solutions best meets these requirements?
- A
Use the container instance's instance store for temporary processing and Amazon S3 for persistent user-uploaded files.
- B
Use Amazon EFS for temporary processing and Amazon RDS for persistent user-uploaded files.
- C
Use Amazon EBS for temporary processing and Amazon DynamoDB for persistent user-uploaded files.
- D
Use Amazon Elastic Cache for temporary processing and Amazon S3 for persistent user-uploaded files.
- E
Use the container's local ephemeral storage for temporary processing and Amazon S3 for persistent user-uploaded files.
Show answer and explanation
Correct answers: A, E
Explanation
Ephemeral storage is used for temporary, high-speed data needs and is typically cleared when the instance or container stops. Persistent storage is used to retain data over time and across application restarts. In this scenario, the instance store or container local storage meets the ephemeral storage requirement, while Amazon S3 meets the persistent storage requirement for user-uploaded files.
- A. Correct.
Correct: Instance store provides ephemeral storage directly attached to the instance, ideal for temporary, high-speed data processing. Amazon S3 is a persistent storage service suitable for retaining user-uploaded files.
- B. Incorrect.
Incorrect: Amazon EFS is a persistent file system, not suitable for ephemeral, high-speed temporary storage. Amazon RDS is a relational database service, not ideal for storing user-uploaded files.
- C. Incorrect.
Incorrect: Amazon EBS is persistent block storage, not optimal for ephemeral use cases. Amazon DynamoDB is a NoSQL database, not suitable for storing user-uploaded files directly.
- D. Incorrect.
Incorrect: Amazon Elastic Cache is a caching service used primarily for low-latency, in-memory data, but it's not the best option for temporary processing. Amazon S3 is correct for persistent storage, but the combination is suboptimal.
- E. Correct.
Correct: A container’s local ephemeral storage is a high-speed, temporary storage option that is cleared when the container stops or restarts, making it suitable for processing temporary data. Amazon S3 is a persistent storage option, ideal for retaining user-uploaded files.