Security and Compliance

A contractor needs to read one S3 prefix and upload reports to another for a week, without deleting objects. Which access arrangement BEST follows least privilege?

Show the answer

Correct answerB. Allow reads from the source and uploads to the destination, and remove access after one week.

AWhy not this: Each prefix receives an unnecessary permission: source uploads and destination reads.

BWhy this is right: The allowed actions, resource scope, and duration match the contractor's stated needs.

CWhy not this: Bucket-wide access exposes objects outside the required prefixes.

DWhy not this: Retaining access after the engagement exceeds the period for which it is needed.

Least privilege limits actions, resources, and access duration to the work required. Allowing reads and uploads to both prefixes grants unnecessary actions even though the resource scope and duration are limited.