Topic 1 Question 286
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?
Store the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository. Implement a local Docker layer cache for CodeBuild.
Cache the Docker images in an Amazon S3 bucket that is available across multiple build hosts. Expire the cache by using an S3 Lifecycle policy.
Store the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository. Modify the CodeBuild project runtime configuration to always use the most recent image version.
Create custom AMIs that contain the cached Docker images. In the CodeBuild build, launch Amazon EC2 instances from the custom AMIs.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: A
Use Amazon ECR to Store Docker Images:
- Push the built Docker images to Amazon ECR after a successful build.
- Pull the Docker images from Amazon ECR at the start of each build to use as a cache.
Configure CodeBuild to Use Docker Layer Caching:
- Enable Docker layer caching in your CodeBuild project to further improve build performance.
👍 3teo21572024/12/16 - 正解だと思う選択肢: A
- Amazon ECR for Centralized Storage:
• Storing Docker images in Amazon ECR allows you to maintain and reuse images across builds. This reduces the need to rebuild base images repeatedly, improving build performance.
• ECR integrates seamlessly with AWS CodeBuild, making it a scalable and cost-effective solution for managing container images.
- Local Docker Layer Caching: • Docker layer caching significantly reduces build time by avoiding the re-download or re-creation of unchanged layers. • CodeBuild supports enabling local caching with type: LOCAL_DOCKER_LAYER_CACHE. This caching stores intermediate image layers locally on the build host, which speeds up subsequent builds.
👍 2Ky_242024/12/15 - Amazon ECR for Centralized Storage:
• Storing Docker images in Amazon ECR allows you to maintain and reuse images across builds. This reduces the need to rebuild base images repeatedly, improving build performance.
• ECR integrates seamlessly with AWS CodeBuild, making it a scalable and cost-effective solution for managing container images.
シャッフルモード