A company uses AWS Organizations with three workload organizational units (OUs): Production, Development, and Testing. AWS CloudFormation templates define and deploy infrastructure into accounts within these OUs. Each OU has a distinct service control policy (SCP). A CloudFormation stack update succeeds in the Development and Testing OUs but fails in an account in the Production OU with an "insufficient IAM permissions" error. What should the security engineer do first to troubleshoot this issue?
Choose an answer
Tap an option to check your answer.
Correct answer: Review AWS CloudTrail in the affected Production account to identify any CloudFormation API calls that were denied during the deployment..
Why this is the answer
The most effective first step is to review AWS CloudTrail logs in the affected Production account. CloudTrail records all API calls made to AWS services, including CloudFormation. By examining these logs, the security engineer can pinpoint the exact API call that failed and the specific permission that was denied, providing direct evidence for the "insufficient IAM permissions" error. Detaching all SCPs from the Production OU is a drastic measure that could expose the production environment to security risks and doesn't provide specific insight into the root cause. Verifying the CloudFormation execution role's permissions is important, but CloudTrail will show which permission was missing, making the verification more targeted. Making SCPs identical to the Testing OU might resolve the issue if the SCPs are indeed the problem, but it's a trial-and-error approach; CloudTrail offers a direct diagnostic.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed