exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 286 discussion

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?

  • A. Store the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository. Implement a local Docker layer cache for CodeBuild.
  • B. 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.
  • C. 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.
  • D. Create custom AMIs that contain the cached Docker images. In the CodeBuild build, launch Amazon EC2 instances from the custom AMIs.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DKM
1 month, 1 week ago
Selected Answer: A
The LOCAL_DOCKER_LAYER_CACHE is a feature in Docker that allows you to store build cache layers locally on your filesystem. This can significantly speed up the build process by reusing layers that haven't changed, reducing the need to rebuild them from scratch
upvoted 1 times
...
teo2157
4 months, 1 week ago
Selected Answer: A
1. **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. 2. **Configure CodeBuild to Use Docker Layer Caching**: - Enable Docker layer caching in your CodeBuild project to further improve build performance.
upvoted 3 times
...
Ky_24
4 months, 1 week ago
Selected Answer: A
1. 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. 2. 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.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago