QuestionQ35

VerifiedSDLC Automation

A company has an AWS CodeDeploy application. Its deployment group uses one tag group to identify instances for deploying Application. The single-tag-group configuration identifies instances with the Environment=Production and Name=ApplicationA tags for deployment of ApplicationA.

The company launches an additional Amazon EC2 instance tagged Department=Marketing, Environment=Production, and Name=ApplicationB. During the next CodeDeploy deployment of Application, ApplicationA is installed on the additional instance. A DevOps engineer must configure the existing deployment group so that ApplicationA is not installed on the additional instance.

Which solution meets these requirements?

Explanation

With one tag group, CodeDeploy includes an instance that matches at least one tag in that group. With multiple tag groups, an instance must match at least one tag in every group. Placing Environment=Production in one tag group and Name=ApplicationA in another therefore requires both tags, excluding the instance tagged Name=ApplicationB.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!