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

A company uses an organization in AWS Organizations to manage its 500 AWS accounts. The organization has all features enabled. The AWS accounts are in a single OU. The developers need to use the CostCenter tag key for all resources in the organization's member accounts. Some teams do not use the CostCenter tag key to tag their Amazon EC2 instances.

The cloud team wrote a script that scans all EC2 instances in the organization's member accounts. If the EC2 instances do not have a CostCenter tag key, the script will notify AWS account administrators. To avoid this notification, some developers use the CostCenter tag key with an arbitrary string in the tag value.

The cloud team needs to ensure that all EC2 instances in the organization use a CostCenter tag key with the appropriate cost center value.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because combining an SCP to enforce the presence of the CostCenter tag key with an AWS Organizations tag policy ensures that resources must use valid tag values from a defined list. Modifying the script to automatically correct non-compliant values with a default approved value provides automated remediation. Other options either fail to proactively enforce the allowed values or rely on IAM permission boundaries, which are difficult to manage and scale across 500 accounts for tag validation.