DOP-C02 · Question #301
A DevOps engineer uses AWS CodeBuild to frequently produce software packages. The CodeBuild project builds large Docker images that the DevOps engineer can use across multiple builds. The DevOps…
The correct answer is A. Store the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository. ECR is an ideal storage for Docker images because it's a fully managed Docker container registry integrated with AWS, which can be used across multiple builds. CodeBuild allows the use of local Docker layer caching, which helps in reusing intermediate layers of Docker images…
Question
A DevOps engineer uses AWS CodeBuild to frequently produce software packages. The CodeBuild project builds large Docker images that the DevOps engineer can use across multiple builds. The DevOps engineer wants to improve build performance and minimize costs. Which solution will meet these requirements?
Options
- AStore the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository.
- BCache the Docker images in an Amazon S3 bucket that is available across multiple build hosts.
- CStore the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository.
- DCreate custom AMIs that contain the cached Docker images. In the CodeBuild build, launch
How the community answered
(29 responses)- A72% (21)
- B14% (4)
- C10% (3)
- D3% (1)
Explanation
ECR is an ideal storage for Docker images because it's a fully managed Docker container registry integrated with AWS, which can be used across multiple builds. CodeBuild allows the use of local Docker layer caching, which helps in reusing intermediate layers of Docker images between builds. This reduces the need to rebuild the entire image from scratch every time, improving performance and reducing build time and costs.
Topics
Community Discussion
No community discussion yet for this question.