Design Secure Architectures

An application only needs to read objects from one S3 bucket. Which permission scope follows the principle of least privilege?

Show the answer

Correct answerD. Read access to the required objects

AWhy not this: Access to every bucket includes resources the application does not need.

BWhy not this: Administrator access grants permissions far beyond the application's object-reading requirement.

CWhy not this: Full bucket access includes unnecessary permissions such as writing and deleting objects.

DWhy this is right: Read access limited to the required objects grants only the necessary actions and resources.

Least privilege grants only the actions and resources required for a task. Full access to the required bucket restricts resources but still grants unnecessary write and delete permissions.