An Amazon SQS queue must accept messages only from a specific Amazon SNS topic. What should a solutions architect configure to authorize this delivery?
Show the answer
Correct answerD. A queue policy allowing the SNS service principal with an aws:SourceArn condition
AWhy not this: A topic policy controls access to the topic; it cannot grant permission on the destination queue.
BWhy not this: SNS delivery to SQS uses the queue policy rather than assuming a customer-created delivery role.
CWhy not this: An SCP limits available permissions but does not grant delivery permissions to a service.
DWhy this is right: The destination queue policy grants SNS permission, restricted to the specified source topic.
The queue resource policy authorizes SNS to send messages, and aws:SourceArn restricts that permission to the specified topic. A topic policy controls access to the topic, not delivery permissions on the destination queue.