ExamQuestions.com

Register
Login
AWS Certified DevOps Engineer Professional Exam Questions

Amazon

AWS Certified DevOps Engineer Professional

440 / 500

Question 440:

<strong>A developer wants to use CodeBuild to build a docker image and push the image to ECR. Then CodePipeline uses CodeDeploy to deploy the latest docker image on EC2 clusters via ECS. </strong>

Answer options:

A.Pre-build stage: Nothing needs to be done as what you need to do is just push the image to ECR, which will be done in Post-build stage.
Post-build stage: Push the image to your ECR repository such as “docker push $REPOSITORY_URI:latest”.
B.Pre-build stage: Login into ECR using “aws ecr get-login” and set the repository URI. Post-build stage: Push the image to your ECR repository such as “docker push $REPOSITORY_URI:latest”.
C.Pre-build stage: Set the repository URI and an image tag if needed.
Post-build stage: Push the image to your ECR repository such as “docker push $REPOSITORY_URI:latest”.
D.Pre-build stage: Login into ECR using “aws ecr get-login” and set the repository URI. Post-build stage: Push the image to your ECR repository such as “aws ecr push $REPOSITORY_URI:latest”.