AWS Certified DevOps Engineer – Professional — Question 158

A company uses AWS CodePipeline pipelines to automate releases of its application. A typical pipeline consists of three stages: build, test, and deployment. The company has been using a separate AWS CodeBuild project to run scripts for each stage. However, the company now wants to use AWS CodeDeploy to handle the deployment stage of the pipelines.

The company has packaged the application as an RPM package and must deploy the application to a fleet of Amazon EC2 instances. The EC2 instances are in an EC2 Auto Scaling group and are launched from a common AMI.

Which combination of steps should a DevOps engineer perform to meet these requirements? (Choose two.)

Answer options

Correct answer: A, D

Explanation

Option A is correct because it ensures that the EC2 instances can run the CodeDeploy agent by updating the AMI and IAM role. Option D is also correct as it integrates the CodeDeploy action into the CodePipeline for the deployment process. Options B, C, and E do not meet all requirements or do not correctly set up the necessary components for deployment using CodeDeploy.