AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 172

A company deploys a web application on Amazon EC2 instances that are behind an Application Load Balancer (ALB). The company stores the application code in an AWS CodeCommit repository. When code is merged to the main branch, an AWS Lambda function invokes an AWS CodeBuild project. The CodeBuild project packages the code, stores the packaged code in AWS CodeArtifact, and invokes AWS Systems Manager Run Command to deploy the packaged code to the EC2 instances.

Previous deployments have resulted in defects, EC2 instances that are not running the latest version of the packaged code, and inconsistencies between instances.

Which combination of actions should a DevOps engineer take to implement a more reliable deployment solution? (Choose two.)

Answer options

Correct answer: B, C

Explanation

Option B is correct because it ensures a structured pipeline that separately builds and tests the application before deployment, reducing the likelihood of defects. Option C is also correct as it establishes a deployment group to manage the rollout of the packaged code, ensuring consistency across EC2 instances. Options A and D suggest alternative methods but do not offer the same level of reliability and clarity in the deployment process. Option E, while it offers a storage alternative, does not address the deployment strategy effectively.