‹ All DOP-C02 questions

DOP-C02 Practice Question 29: SCP Protect Organization Trail

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 3 · question 9 of 10

Security and Compliancehard

A company runs about 60 accounts in AWS Organizations with all features enabled. An organization trail delivers CloudTrail logs to a bucket in the Log Archive account. After an engineer in a workload account turned off logging during an outage, the security team must guarantee that no principal in any member account, including that account's root user, can stop, delete, or reconfigure the trail. A single break-glass IAM role in the Security Tooling member account must still be able to administer it, and the control must be preventive rather than after the fact.

What should the security team implement?

Select one answer
Show answer and explanation

Answer:

  • C. A service control policy attached to the organization root that denies cloudtrail:StopLogging, cloudtrail:DeleteTrail, and cloudtrail:UpdateTrail, with a condition that excludes the break-glass role's ARN using aws:PrincipalArn

SCPs are the only control in the list that is both preventive and inescapable from inside a member account. The Organizations documentation states that an SCP "restricts permissions for IAM users and roles in member accounts, including the member account's root user," and that an account "has only those permissions permitted by every parent above it." Attaching the deny at the organization root covers every member account, existing and future, and a Condition on aws:PrincipalArn carves out the one break-glass role. That role lives in the Security Tooling account, a member account, so the exclusion is necessary; SCPs "don't affect users or roles in the management account," but they very much affect member accounts.

Option A cannot reach far enough. A permissions boundary only constrains the identity it is attached to, so it has to be attached to every principal and re-attached to every new one, and it does not apply to the account root user at all, the exact gap the security team is trying to close.

Option B protects the evidence, not the logging. Object Lock stops delivered log files from being altered or deleted and log file validation detects tampering, but neither prevents anyone from calling StopLogging, after which there are simply no new files to protect.

Option D is detective and reactive. A Config rule evaluates after the change has happened, and the remediation runs afterwards, leaving a window in which no API activity is recorded. The stem explicitly asks for a preventive control.

Reference: Service control policies (SCPs)

Practice Test 3 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.