
Ultimate access to all questions.
A company is utilizing AWS CodePipeline for automating their application's release process, which includes three stages: build, test, and deployment. Historically, they have employed separate AWS CodeBuild projects to execute scripts for each stage. Now, they aim to incorporate AWS CodeDeploy into the deployment stage. The application is packaged as an RPM and must be deployed across a fleet of Amazon EC2 instances managed by an Auto Scaling group, all launched from a single AMI. What steps should a DevOps engineer undertake to successfully integrate CodeDeploy into the deployment phase of the pipeline?
A
Create a new version of the common AMI with the CodeDeploy agent installed. Update the IAM role of the EC2 instances to allow access to CodeDeploy.
B
Create a new version of the common AMI with the CodeDeploy agent installed. Create an AppSpec file that contains application deployment scripts and grants access to CodeDeploy.
C
Create an application in CodeDeploy. Configure an in-place deployment type. Specify the Auto Scaling group as the deployment target. Add a step to the CodePipeline pipeline to use EC2 Image Builder to create a new AMI. Configure CodeDeploy to deploy the newly created AMI.
D
Create an application in CodeDeploy. Configure an in-place deployment type. Specify the Auto Scaling group as the deployment target. Update the CodePipeline pipeline to use the CodeDeploy action to deploy the application.
E
Create an application in CodeDeploy. Configure an in-place deployment type. Specify the EC2 instances that are launched from the common AMI as the deployment target. Update the CodePipeline pipeline to use the CodeDeploy action to deploy the application.