DVA-C02 Question 233
Single answerYou are developing a microservices-based application on AWS. The application consists of multiple containerized services, and you want to host these services in Amazon ECS using the Fargate launch type. To ensure that the container images used by ECS are securely stored and easily accessible, which AWS service should you use to store and manage the container images?
- A
Amazon Elastic File System (EFS)
- B
Amazon Elastic Container Registry (ECR)
- C
AWS CodeCommit
- D
Amazon S3
Show answer and explanation
Correct answer: B
Explanation
Amazon ECR is the most suitable service for storing and managing container images in AWS. It is specifically designed for this purpose and integrates natively with Amazon ECS, making it easy to manage containerized workloads. Other services like Amazon EFS, AWS CodeCommit, and Amazon S3 serve different purposes and are not ideal for storing container images.
- A. Incorrect.
Amazon EFS is a fully managed file storage service that is primarily used for persistent file storage for applications. It is not designed for storing container images.
- B. Correct.
Amazon ECR is a fully managed container image registry that allows you to store, manage, and deploy container images securely. It integrates seamlessly with Amazon ECS and is the correct choice for storing container images.
- C. Incorrect.
AWS CodeCommit is a version control service for source code and not intended for storing or managing container images.
- D. Incorrect.
Amazon S3 is a general-purpose object storage service and, while it can store container images, it is not specifically designed for this purpose. It lacks native integration with ECS for container image management.