- A
A service control policy (SCP) is denying access
Why wrong: SCPs are not mentioned, and they would deny at the account level.
- B
The bucket policy does not grant access to the IAM role
When using an IAM role, the bucket policy must explicitly allow the role, otherwise the implicit denial applies.
- C
The IAM policy is attached to the user instead of the role
Why wrong: The role has the policy attached, so that should work.
- D
The bucket has an explicit deny in its policy
Why wrong: The question states the bucket policy does not explicitly deny.
Troubleshooting S3 Access Denied for IAM Role: Bucket Policy
This SCS-C02 practice question tests your understanding of identity and access management. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A security engineer is troubleshooting an issue where an IAM role used by an EC2 instance cannot access an S3 bucket, even though the role has an attached policy that grants s3:GetObject on the bucket. The bucket policy does not explicitly deny access. What is the most likely cause?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"most likely"Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
The bucket policy does not grant access to the IAM role
The correct answer is B: The bucket policy does not grant access to the IAM role. For an IAM role used by an EC2 instance to access an S3 bucket, both the IAM policy attached to the role and the bucket policy must allow the action. Even though the IAM policy grants s3:GetObject, the bucket policy must also explicitly grant access to the role principal. Since the bucket policy does not explicitly deny access (option D is false), the lack of an explicit allow in the bucket policy is the most likely cause. Options A and C are incorrect: SCPs would deny at the organization level, and the IAM policy is attached to the role, not the user.
Key principle: ACLs process entries top to bottom and stop at the first match. Entry order and interface direction matter as much as the permit or deny statement.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A service control policy (SCP) is denying access
Why it's wrong here
SCPs are not mentioned, and they would deny at the account level.
- ✓
The bucket policy does not grant access to the IAM role
Why this is correct
When using an IAM role, the bucket policy must explicitly allow the role, otherwise the implicit denial applies.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Standard ACLs match source addresses.
- ✗
The IAM policy is attached to the user instead of the role
Why it's wrong here
The role has the policy attached, so that should work.
- ✗
The bucket has an explicit deny in its policy
Why it's wrong here
The question states the bucket policy does not explicitly deny.
Common exam traps
Common exam trap: ACLs stop at the first match
ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.
Detailed technical explanation
How to think about this question
ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.
KKey Concepts to Remember
- Standard ACLs match source addresses.
- Extended ACLs can match source, destination, protocol and ports.
- The first matching ACL entry is used.
- There is usually an implicit deny at the end.
TExam Day Tips
- Check inbound versus outbound direction.
- Read the ACL from top to bottom.
- Look for a broader permit or deny above the intended line.
Key takeaway
ACLs process entries top to bottom and stop at the first match. Entry order and interface direction matter as much as the permit or deny statement.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
What to study next
Got this wrong? Here's your next step.
Review ACL processing order, placement rules (standard near destination, extended near source), and inbound vs outbound direction. Study wildcard masks and implicit deny. Then practise related SCS-C02 ACL questions on filtering logic and placement.
- →
Identity and Access Management — study guide chapter
Learn the concepts, then practise the questions
- →
Identity and Access Management practice questions
Targeted practice on this topic area only
- →
All SCS-C02 questions
1,748 questions across all exam domains
- →
AWS Certified Security Specialty SCS-C02 study guide
Full concept coverage aligned to exam objectives
- →
SCS-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SCS-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Threat Detection and Incident Response practice questions
Practise SCS-C02 questions linked to Threat Detection and Incident Response.
Security Logging and Monitoring practice questions
Practise SCS-C02 questions linked to Security Logging and Monitoring.
Identity and Access Management practice questions
Practise SCS-C02 questions linked to Identity and Access Management.
Management and Security Governance practice questions
Practise SCS-C02 questions linked to Management and Security Governance.
Infrastructure Security practice questions
Practise SCS-C02 questions linked to Infrastructure Security.
Data Protection practice questions
Practise SCS-C02 questions linked to Data Protection.
SCS-C02 fundamentals practice questions
Practise SCS-C02 questions linked to SCS-C02 fundamentals.
SCS-C02 scenario practice questions
Practise SCS-C02 questions linked to SCS-C02 scenario.
SCS-C02 troubleshooting practice questions
Practise SCS-C02 questions linked to SCS-C02 troubleshooting.
Practice this exam
Start a free SCS-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SCS-C02 question test?
Identity and Access Management — This question tests Identity and Access Management — Standard ACLs match source addresses..
What is the correct answer to this question?
The correct answer is: The bucket policy does not grant access to the IAM role — The correct answer is B: The bucket policy does not grant access to the IAM role. For an IAM role used by an EC2 instance to access an S3 bucket, both the IAM policy attached to the role and the bucket policy must allow the action. Even though the IAM policy grants s3:GetObject, the bucket policy must also explicitly grant access to the role principal. Since the bucket policy does not explicitly deny access (option D is false), the lack of an explicit allow in the bucket policy is the most likely cause. Options A and C are incorrect: SCPs would deny at the organization level, and the IAM policy is attached to the role, not the user.
What should I do if I get this SCS-C02 question wrong?
Review ACL processing order, placement rules (standard near destination, extended near source), and inbound vs outbound direction. Study wildcard masks and implicit deny. Then practise related SCS-C02 ACL questions on filtering logic and placement.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Standard ACLs match source addresses.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
4 more ways this is tested on SCS-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Refer to the exhibit. A security engineer runs the IAM Policy Simulator with the provided policy input. The result shows 'explicitDeny' for ec2:RunInstances even though the policy only contains an Allow. What is the most likely reason?
hard- ✓ A.The user has an attached policy or SCP that explicitly denies ec2:RunInstances.
- B.The policy input has a syntax error.
- C.The simulate-custom-policy command does not support ec2:RunInstances.
- D.The resource ARN is incorrect for ec2:RunInstances.
Why A: The most likely reason is that the user has another policy attached (such as an identity-based policy or a service control policy) that explicitly denies ec2:RunInstances. The IAM Policy Simulator evaluates all applicable policies, so even if the provided policy only contains an Allow, an explicit deny from another policy overrides and results in an explicitDeny. Option B (syntax error) is not likely because a syntax error typically causes an error or implicit deny, not an explicit deny. Option C is incorrect because the simulate-custom-policy command does support ec2:RunInstances. Option D is incorrect because an incorrect resource ARN would result in an implicit deny, not an explicit deny.
Variation 2. A security engineer is troubleshooting an issue where an IAM user is unable to list objects in an S3 bucket even though the user has an IAM policy that allows s3:ListBucket. What is the MOST likely cause?
medium- A.The user's IAM policy is not attached to the user.
- B.The bucket is in a different AWS region.
- C.The user needs to use MFA.
- ✓ D.The bucket policy explicitly denies the action for that user.
Why D: S3 bucket policies and IAM user policies are evaluated together; if the bucket policy denies access, it overrides the allow.
Variation 3. A security engineer notices that an IAM role for an EC2 instance has a policy that allows s3:PutObject on a bucket. However, the application reports access denied when trying to upload. The bucket policy does not explicitly deny access. What is a likely cause?
hard- A.The bucket policy denies access
- B.The instance profile is not attached to the EC2 instance
- C.The role's policy does not include s3:PutObject
- ✓ D.The policy condition key does not match the request context
Why D: The likely cause is that the policy condition key does not match the request context (Option D). Even though the role allows s3:PutObject, if the policy includes conditions (e.g., source IP, VPC, encryption) that are not met by the request, the effective permission becomes an implicit deny. Since the bucket policy does not explicitly deny, the problem lies in the role policy's conditions. Option A is incorrect because the stem explicitly states the bucket policy does not explicitly deny. Option B is incorrect because if the instance profile were not attached, the role would not be available; but the role is attached as stated. Option C is incorrect because the role policy does include s3:PutObject.
Variation 4. Refer to the exhibit. An EC2 instance is launched with an instance profile that references this role. The application on the instance tries to list objects in 'my-bucket' but receives an AccessDenied error. What is the most likely cause?
easy- A.The trust policy does not allow the EC2 service to assume the role.
- B.The policy does not grant s3:GetObject permission.
- ✓ C.The S3 bucket has a bucket policy that denies access.
- D.The role does not have any permissions policy attached.
Why C: Option C is correct because even if the IAM role allows s3:ListBucket on the bucket, an explicit deny in the S3 bucket policy will override any allow, resulting in an AccessDenied error. This is a common scenario where both IAM and bucket policies are evaluated, and a deny in either causes denial of access. Option A is incorrect because the trust policy must allow EC2 for the instance profile to work; if it were wrong, the instance wouldn't be able to assume the role at all. Option B is incorrect because the action required to list objects is s3:ListBucket, not s3:GetObject; the error is for listing, not retrieving. Option D is incorrect because the role has a permissions policy attached (as shown in the exhibit); the issue is the bucket policy denying the request.
Keep practising
More SCS-C02 practice questions
- A company uses AWS Organizations with multiple accounts. The security team wants to enforce that all Amazon S3 buckets a…
- A company is designing a multi-tier web application on AWS. The web tier must be accessible from the internet, but the a…
- A company is migrating a legacy application to AWS. The application requires two-way communication between the web serve…
- A security engineer is troubleshooting connectivity issues between an Amazon EC2 instance in a VPC and an on-premises se…
- A security engineer is reviewing the SQS queue policy shown in the exhibit. The queue is subscribed to an SNS topic in t…
- A company uses AWS Organizations with multiple accounts. The security team wants to ensure that all IAM users in the pro…
Last reviewed: Jun 20, 2026
This SCS-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.