An SCP can deny EC2 launch requests that omit the required `CostCenter` tag, while an AWS Organizations tag policy defines the approved values for that tag on EC2 resources. Scanning tag keys and values and remediating noncompliant existing instances addresses resources that predate the controls or have invalid values. AWS Organizations tag policies support allowed tag values and enforcement for supported EC2 resource types. **Learn more:** [Tag policies - AWS Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html) · [Enforce tagging consistency - AWS Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-enforcement.html)
FREE QUESTION PREVIEWAWS Certified DevOps Engineer - Professional DOP-C02
AWS Certified DevOps Engineer - Professional DOP-C02
practice questions
Explore 46 free questions with the suggested answers and available explanations. No purchase is needed for this preview.
ACreate an SCP that prevents the creation of EC2 instances without the CostCenter tag key. Create a tag policy that requires the CostCenter tag to be values from a known list of cost centers for all EC2 instances. Attach the policy to the OU. Update the script to scan the tag keys and tag values. Modify the script to update noncompliant resources with a default approved tag value for the CostCenter tag key.
BCreate an SCP that prevents the creation of EC2 instances without the CostCenter tag key. Attach the policy to the OU. Update the script to scan the tag keys and tag values and notify the administrators when the tag values are not valid.
CCreate an SCP that prevents the creation of EC2 instances without the CostCenter tag key. Attach the policy to the OU. Create an IAM permission boundary in the organization's member accounts that restricts the CostCenter tag values to a list of valid cost centers.
DCreate a tag policy that requires the CostCenter tag to be values from a known list of cost centers for all EC2 instances. Attach the policy to the OU. Configure an AWS Lambda function that adds an empty CostCenter tag key to an EC2 instance. Create an Amazon EventBridge rule that matches events to the RunInstances API action with the Lambda function as the target.
Answer explanation