Medium1 markMultiple Choice
Domain 1.4: Multi-Account EnvironmentOrganizationsSCPTaggingGovernance

AWS SAP-C02 · Question 48 · Domain 1.4: Multi-Account Environment

An enterprise has a strict compliance requirement: no Amazon EC2 instances can be launched without a specific set of tags (CostCenter and ProjectID). If a user attempts to launch an instance without these tags, the launch must be blocked immediately. How can the Solutions Architect enforce this across the entire AWS Organization?

Answer options:

A.

Use AWS Config with the required-tags managed rule and enable automatic remediation to terminate non-compliant instances.

B.

Create a Service Control Policy (SCP) that denies ec2:RunInstances if the required tags are not present.

C.

Use AWS CloudTrail to monitor for RunInstances events and trigger a Lambda function to stop the instance.

D.

Configure Tag Policies in AWS Organizations to enforce the tags.

How to approach this question

Look for proactive enforcement (SCPs) rather than reactive (Config/CloudTrail).

Full Answer

B.Create a Service Control Policy (SCP) that denies ec2:RunInstances if the required tags are not present.✓ Correct
Create a Service Control Policy (SCP) that denies ec2:RunInstances if the required tags are not present.
Service Control Policies (SCPs) can use the aws:RequestTag condition key to enforce that specific tags must be present during resource creation. If the tags are missing, the API call (ec2:RunInstances) is denied proactively.

Common mistakes

Confusing Tag Policies (which enforce tag values) with SCPs (which can enforce tag presence).

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 4

75 questions · hints · full answers · grading

More questions from this exam