Q15 — AWS DOP-C02 Ch.1

Question 15 of 100 | ← Chapter 1

A company uses AWS CodeDeploy for application deployments. Its deployment group uses a tag group filter to identify EC2 instances for deployment. The current single tag group specifies instances with tags Environment=Production and Name=Application.

Correct Answer: A. Modify the current single tag group to include only the Environment=Production tag. Add another single tag group containing only the Name=Application tag.

Explanation

AWS CodeDeploy deployment groups use tag groups to filter instances: within a tag group, tags are ANDed; across tag groups, they are ORed. The original single tag group required both Environment=Production AND Name=Application. A newly launched instance tagged with Department=Marketing, Environment=Production, and Name=Application matched this condition and was included. Per AWS documentation, if multiple single tag groups exist, an instance qualifies if it matches *any* one group. Option A restructures the tagging logic: the first group now requires only Environment=Production, and the second only Name=Application—so an instance must match *either* condition, not both. This breaks the original strict conjunction and allows exclusion logic via selective tag group design. Options B, C, and D either over-constrain (B), fail to isolate the marketing instance (C), or introduce irrelevant OR logic (D), none of which prevent the marketing instance from being selected.