Medium1 markMultiple Choice
Domain 1.1: Secure AccessSecuritySNSIAMCross-Account

AWS SAA-C03 · Question 19 · Domain 1.1: Secure Access

A developer needs to grant an external partner AWS account access to an Amazon SNS topic in their account. <br/><br/>What is the MOST secure way to grant this access?

Answer options:

A.

Create an IAM user for the partner and share the access keys.

B.

Attach a resource-based policy to the SNS topic granting the partner account the sns:Publish permission.

C.

Create an IAM role in the partner account and attach an identity-based policy.

D.

Use AWS Resource Access Manager (RAM) to share the SNS topic.

How to approach this question

Recognize that SNS supports resource-based policies for cross-account access.

Full Answer

B.Attach a resource-based policy to the SNS topic granting the partner account the sns:Publish permission.✓ Correct
Attach a resource-based policy to the SNS topic granting the partner account the sns:Publish permission.
Amazon SNS supports resource-based policies. You can attach a policy directly to the SNS topic that specifies which AWS accounts (principals) are allowed to perform actions (like Publish or Subscribe) on that topic.

Common mistakes

Thinking AWS RAM is used for all resource sharing.

Practice the full AWS SAA-C03 Practice Exam 4

65 questions · hints · full answers · grading

More questions from this exam