Question 1,037 of 724
DVA-C02 Security Practice Question
A developer needs to grant cross-account access to an Amazon S3 bucket. The developer's AWS account (Account A) owns the bucket, and a user in another account (Account B) needs to write objects to it. The developer has already added a bucket policy that grants the user in Account B permissions. What additional step is required?
⚠ Common exam trap
Many candidates assume a bucket policy alone is enough for cross-account access, forgetting that the requesting user's account must also explicitly authorize the action via an IAM policy.
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 administrator of Account B must attach an IAM policy to the user that allows the required S3 actions.
Cross-account access to S3 requires both a resource-based policy (the bucket policy in Account A) and a user-based policy (an IAM identity-based policy in Account B). The bucket policy grants permissions to the Account B user, but that user cannot perform actions unless their own account explicitly allows those actions via an IAM policy. Without this, the request is denied by the user's own account's implicit deny, even if the bucket policy permits it.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
No additional steps are needed; the bucket policy alone is sufficient.
Why it's wrong here
For cross-account access to an S3 bucket, both the resource-based policy (the S3 bucket policy) and an identity-based policy (an IAM policy attached to the user or role in the requesting account) must explicitly grant the required permissions. A bucket policy grants permissions on the resource to a principal, but the principal itself must also be authorized by its own account's IAM system to perform the action. Therefore, relying solely on the bucket policy will result in an "Access Denied" error because the user in Account B lacks the necessary identity-based permissions.
- ✓
The administrator of Account B must attach an IAM policy to the user that allows the required S3 actions.
Why this is correct
To successfully grant cross-account S3 access, the administrator of Account B must attach an IAM policy to the specific user or role that will be accessing the bucket. This identity-based policy explicitly authorizes the principal within Account B to perform the desired S3 actions, such as s3:PutObject, on the target bucket in Account A. This policy works in conjunction with the resource-based bucket policy in Account A, which grants permissions to Account B's principal, ensuring that both sides of the trust relationship are established for successful access.
- ✗
Create a new IAM role in Account B and have the user assume the role.
Why it's wrong here
Using an IAM role is an alternative method, but the simplest is to attach a policy directly to the user. The question states the user needs to write objects, so a policy on the user works.
- ✗
Enable S3 ACLs on the bucket and grant write access to the Account B user.
Why it's wrong here
ACLs are legacy and not recommended. Also, ACLs are for granting access to another AWS account explicitly, but the IAM user in that account still needs an IAM policy. The bucket policy approach is preferred.
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 |
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 →
Last reviewed: Jun 11, 2026
This DVA-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 DVA-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.