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
- A. Change the current single tag group to include only the Environment=Production tag. Add another single tag group that includes only the Name=ApplicationA tag.
- B. Change the current single tag group to include the Department=Marketing, Environment=production, and Name=ApplicationA tags.
- C. Add another single tag group that includes only the Department=Marketing tag. Keep the Environment=Production and Name=ApplicationA tags with the current single tag group.
- D. Change the current single tag group to include only the Environment=Production tag. Add another single tag group that includes only the Department=Marketing tag.
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.