nerdexam
Amazon

SAP-C02 · Question #792

A company uses IAM Identity Center for data scientist access. Each user should be able to accessonly their own datain an S3 bucket. The company also needs to generatemonthly access reportsper user…

The correct answer is A. Use IAM Identity Center permission sets to allow S3 access scoped to userName tag. C. Use AWS CloudTrail to log S3 data events, query via Athena. Data scientists, managed by IAM Identity Center, need access only to their specific data within an S3 bucket, and monthly access reports per user are required.

Submitted by jian89· Mar 6, 2026Design Solutions for Organizational Complexity

Question

A company uses IAM Identity Center for data scientist access. Each user should be able to accessonly their own datain an S3 bucket. The company also needs to generatemonthly access reportsper user. Which combination of actions meets these requirements?

Options

  • AUse IAM Identity Center permission sets to allow S3 access scoped to userName tag.
  • BUse a shared IAM Identity Center role for all users and bucket policy.
  • CUse AWS CloudTrail to log S3 data events, query via Athena.
  • DUse CloudTrail management events to CloudWatch, then use Athena.
  • EUse S3 access logs and S3 Select for reporting.

How the community answered

(27 responses)
  • A
    56% (15)
  • B
    15% (4)
  • D
    7% (2)
  • E
    22% (6)

Why each option

Data scientists, managed by IAM Identity Center, need access only to their specific data within an S3 bucket, and monthly access reports per user are required.

AUse IAM Identity Center permission sets to allow S3 access scoped to userName tag.Correct

Using IAM Identity Center permission sets allows for defining fine-grained access policies by leveraging principals' `userName` tags (or other attributes passed via Identity Center) within S3 bucket policies. This dynamically restricts access to S3 objects with matching prefixes, ensuring each user accesses only their own data.

BUse a shared IAM Identity Center role for all users and bucket policy.

Using a *shared* IAM Identity Center role for *all* users without further granular restrictions would grant all data scientists access to *all* data, violating the requirement for access to only their own data.

CUse AWS CloudTrail to log S3 data events, query via Athena.Correct

AWS CloudTrail logs API calls, including S3 data events (e.g., `GetObject`, `PutObject`), which record the user identity and the S3 objects accessed. Storing these logs in S3 and querying them with Amazon Athena provides a cost-effective way to generate detailed, auditable monthly access reports per user.

DUse CloudTrail management events to CloudWatch, then use Athena.

CloudTrail *management events* track operations on AWS resources (e.g., creating a bucket), not data operations within S3 (e.g., reading/writing objects), so they would not provide the necessary data for user-level S3 access reporting.

EUse S3 access logs and S3 Select for reporting.

While S3 access logs record requests, they are less structured than CloudTrail data events and require more effort for parsing and analysis, especially for user-specific reporting, making CloudTrail with Athena a more robust solution.

Concept tested: S3 fine-grained access control with IAM Identity Center & CloudTrail for auditing

Source: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-principaltag

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice