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

A company has an AWS CodeDeploy application. The application has a deployment group that uses a single tag group to identify instances for the deployment of Application. The single tag group configuration identifies instances that have Environment=Production and Name=ApplicationA tags for the deployment of ApplicationA.

The company launches an additional Amazon EC2 instance with Department=Marketing, Environment=Production, and Name=ApplicationB tags. On the next CodeDeploy deployment of Application, the additional instance has ApplicationA installed on it. A DevOps engineer needs to configure the existing deployment group to prevent ApplicationA from being installed on the additional instance.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it isolates the Environment=Production tag from the Name=ApplicationA tag, preventing the additional instance from being included in the deployment. The other options either do not effectively separate the tags or introduce tags that do not address the requirement of excluding the additional instance from receiving ApplicationA.