exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 338 discussion

A company is working with an external vendor that requires write access to the company's Amazon Simple Queue Service (Amazon SQS) queue. The vendor has its own AWS account.
What should a solutions architect do to implement least privilege access?

  • A. Update the permission policy on the SQS queue to give write access to the vendor's AWS account.
  • B. Create an IAM user with write access to the SQS queue and share the credentials for the IAM user.
  • C. Update AWS Resource Access Manager to provide write access to the SQS queue from the vendor's AWS account.
  • D. Create a cross-account role with access to all SQS queues and use the vendor's AWS account in the trust document for the role.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dmscountera
Highly Voted 3 years, 10 months ago
A https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-basic-examples-of-sqs-policies.html
upvoted 32 times
...
Elshahaly
Highly Voted 3 years, 10 months ago
A is the answer https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html
upvoted 13 times
Stud
3 years, 10 months ago
Attach a permission policy to a user in another AWS account – To grant user permissions to create an Amazon SQS queue, attach an Amazon SQS permissions policy to a user in another AWS account. Cross-account permissions don't apply to the following actions: AddPermission CreateQueue DeleteQueue ListQueues ListQueueTags RemovePermission SetQueueAttributes TagQueue UntagQueue
upvoted 5 times
francisco_guerra
3 years, 10 months ago
Yeah but we dont need any of these we need "Action": [ "sqs:SendMessage", "sqs:ReceiveMessage" ],
upvoted 2 times
...
...
...
SkyZeroZx
Most Recent 2 years, 3 months ago
Selected Answer: A
A https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-basic-examples-of-sqs-policies.html
upvoted 1 times
...
YanisGTR
2 years, 5 months ago
for who answer > "D" >>>>access to all SQS queues<<<<<<< fk who can do that ! Ans = A
upvoted 1 times
...
Vesperia
2 years, 8 months ago
Selected Answer: D
Solution A works, however, from the design principal of security pillar of the AWS well-architected, you should grant access via a role, not directly via security policy. So D is a better answer.
upvoted 1 times
Panos1313
2 years, 7 months ago
it's not, question clearly states "implement least privilege access" and D mentions giving access to all queues, it's definitely A
upvoted 1 times
...
...
Lakhsmi
3 years, 4 months ago
Selected Answer: A
SQS policy allows cross account access where as IAM policy cant do that. This is the only difference between providing access to SQS queues through SQS policy and IAM policy.
upvoted 3 times
...
samuel1999
3 years, 8 months ago
Selected Answer: A
i wonder the dom writer able to pass the exam. Always wrong !
upvoted 6 times
...
Harshul
3 years, 9 months ago
Can someone explain why not "C"?
upvoted 1 times
Harshul
3 years, 9 months ago
Got it, AWS Resource Access Manager does not allow SQS to share. https://docs.aws.amazon.com/ram/latest/userguide/shareable.html
upvoted 6 times
...
...
Cotter
3 years, 9 months ago
AAAAAAAAAAAAAAAAAAAAA. Please should A because D don't support sharing data.
upvoted 3 times
...
Raksim
3 years, 10 months ago
Grant one permission to one AWS account: A
upvoted 6 times
...
jkwek
3 years, 10 months ago
Answer is A. Refer url: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html#sqs-managing-access-to-resource Attach a permission policy to a user in another AWS account – To grant user permissions to create an Amazon SQS queue, attach an Amazon SQS permissions policy to a user in another AWS account. Cross-account permissions don't apply to the following actions: AddPermission CreateQueue DeleteQueue ListQueues ListQueueTags RemovePermission SetQueueAttributes TagQueue UntagQueue
upvoted 6 times
...
haaris786
3 years, 10 months ago
I thought of D and was skeptical but after reading other explanation A makes more sense.
upvoted 1 times
...
leliodesouza
3 years, 10 months ago
The answer is A.
upvoted 3 times
...
syu31svc
3 years, 10 months ago
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html#sqs-managing-access-to-resources: "Attach a permission policy to a user in another AWS account – To grant user permissions to create an Amazon SQS queue, attach an Amazon SQS permissions policy to a user in another AWS account." Answer is A
upvoted 4 times
...
Aki110
3 years, 10 months ago
I go with A. D is giving access to all queues.
upvoted 6 times
...
Sallywhite
3 years, 10 months ago
https://aws.amazon.com/premiumsupport/knowledge-center/cross-account-access-s3/ --D
upvoted 1 times
massyg
3 years, 10 months ago
"All queues"
upvoted 1 times
...
...
Sallywhite
3 years, 10 months ago
D is the right answer, cross acount role
upvoted 1 times
robertomartinez
3 years, 10 months ago
it could be if D was not sharing ALL queues, A is fine and works intrinsically in SQS
upvoted 2 times
...
BATSIE
2 years, 3 months ago
D suggests creating a cross-account role with access to all SQS queues and using the vendor’s AWS account in the trust document for the role. This option is not ideal because it grants the vendor access to all SQS queues, which goes against the principle of least privilege. The principle of least privilege means granting only the permissions necessary to perform a task and no more. In this case, the vendor only requires write access to a specific SQS queue, so granting access to all SQS queues is unnecessary and could potentially pose a security risk.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...