A company wants a single S3 bucket for data scientists to store work documents. Users authenticate via AWS IAM Identity Center, and the data scientists are in a specific Identity Center group. The company needs each scientist to access only their own documents and requires monthly reports showing which documents each user accessed. Which combination of steps satisfies these requirements? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create a custom IAM Identity Center permission set that grants access to an S3 bucket prefix matching each user’s username tag. Use an IAM policy that restricts access to paths with the ${aws:PrincipalTag/userName}/* condition., Enable AWS CloudTrail to log S3 data events and deliver the CloudTrail logs to an S3 bucket. Use Amazon Athena to query the CloudTrail logs stored in S3 and generate the monthly access reports..
Why this is the answer
To ensure each scientist accesses only their own documents, a custom IAM Identity Center permission set with an IAM policy using the aws:PrincipalTag/userName condition is effective. This dynamically restricts access to S3 prefixes matching the user's username, providing granular, user-specific isolation within a single bucket. The other option, creating a single role for the group, would grant all members access to all documents, failing the isolation requirement. For monthly access reports, enabling AWS CloudTrail to log S3 data events (object-level API calls) and delivering them to an S3 bucket is crucial. Amazon Athena can then query these logs to generate detailed reports on who accessed which documents. Configuring CloudTrail for management events only would miss object-level access details. S3 access logging is less detailed than CloudTrail data events for this purpose, and EMRFS is not relevant here.
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