SCS-C03 practice question 2 of 15

A company uses AWS Organizations to manage an organization that consists of three workload OUs: Production, Development, and Testing. The company…

Full set: 227 questions
A company uses AWS Organizations to manage an organization that consists of three workload OUs: Production, Development, and Testing. The company uses AWS CloudFormation templates to define and deploy workload infrastructure in AWS accounts that are associated with the OUs. Different SCPs are attached to each workload OU. The company successfully deployed a CloudFormation stack update to workloads in the Development OU and the Testing OU. When the company uses the same CloudFormation template to deploy the stack update in an account in the Production OU, the update fails. The error message reports insufficient IAM permissions. What is the FIRST step that a security engineer should take to troubleshoot this issue?
Answer options
A: Review the AWS CloudTrail logs in the account in the Production OU. Search for any failed API calls from CloudFormation during the deployment attempt. Correct answer
B: Remove all the SCPs that are attached to the Production OU. Rerun the CloudFormation stack update to determine if the SCPs were preventing the CloudFormation API calls.
C: Confirm that the role used by CloudFormation has sufficient permissions to create, update, and delete the resources that are referenced in the CloudFormation template.
D: Make all the SCPs that are attached to the Production OU the same as the SCPs that are attached to the Testing OU.
Correct Answer:
A. Review the AWS CloudTrail logs in the account in the Production OU. Search for any failed API calls from CloudFormation during the deployment attempt.
Explanation

The first step in troubleshooting any permission-related failure in AWS is to investigate the logs. AWS CloudTrail captures a record of every API call made in the account. When a Service Control Policy (SCP) denies an action, CloudTrail logs an AccessDenied event with a message indicating the denial was due to an organization policy. This provides the specific API call that failed and confirms the SCP as the root cause, which is the most direct and informative initial diagnostic step.

Why Incorrect

B. Removing SCPs from a production environment is a drastic and insecure troubleshooting method. It should be avoided as a first step.
C. The IAM role's permissions are likely correct since the deployment succeeded in other OUs. The primary variable is the Production OU's different SCPs.
D. Changing SCPs is a remediation step, not a troubleshooting step. The first action should be to diagnose the specific cause of the failure.

References

1. AWS CloudTrail Documentation. (2023). Logging IAM and AWS STS API calls with AWS CloudTrail. AWS Documentation. Retrieved from https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html.

2. AWS Organizations Documentation. (2023). Troubleshooting SCPs. AWS Documentation. Retrieved from https://docs.aws.amazon.com/organizations/latest/userguide/orgsmanagepoliciesscpstroubleshoot.html (See section "Diagnosing SCP Denials").

3. AWS Organizations Documentation. (2023). Service control policies (SCPs). AWS Documentation. Retrieved from https://docs.aws.amazon.com/organizations/latest/userguide/orgsmanagepoliciesscps.html (See section "Effects of SCPs on permissions").

Scroll to Top