Identity and Access Management
An application only reads messages from one SQS queue. Which policy change most directly applies least privilege to its current sqs:* permission?
Show the answer
Correct answerD. Allow sqs:ReceiveMessage on that queue's ARN.
AWhy not this: Restricting the resource helps, but sqs:* still permits unnecessary queue operations.
BWhy not this: Account-wide queue access and all SQS actions exceed the application's stated needs.
CWhy not this: The action is restricted, but access to unrelated queues remains unnecessarily broad.
DWhy this is right: The policy permits the required action only on the required resource.
Allowing only ReceiveMessage on the required queue limits both actions and resources. Restricting the queue while retaining sqs:* still permits unnecessary operations.