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 321 discussion

A company wants to build an online marketplace application on AWS as a set of loosely coupled microservices. For this application, when a customer submits a new order, two microservices should handle the event simultaneously. The Email microservice will send a confirmation email, and the OrderProcessing microservice will start the order delivery process. If a customer cancels an order, the OrderCancellation and Email microservices should handle the event simultaneously.
A solutions architect wants to use Amazon Simple Queue Service (Amazon SQS) and Amazon Simple Notification Service (Amazon SNS) to design the messaging between the microservices.
How should the solutions architect design the solution?

  • A. Create a single SQS queue and publish order events to it. The Email, OrderProcessing, and OrderCancellation microservices can then consume messages off the queue.
  • B. Create three SNS topics for each microservice. Publish order events to the three topics. Subscribe each of the Email, OrderProcessing, and OrderCancellation microservices to its own topic.
  • C. Create an SNS topic and publish order events to it. Create three SQS queues for the Email, OrderProcessing, and OrderCancellation microservices. Subscribe all SQS queues to the SNS topic with message filtering.
  • D. Create two SQS queues and publish order events to both queues simultaneously. One queue is for the Email and OrderProcessing microservices. The second queue is for the Email and OrderCancellation microservices.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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, 7 months ago
Seems C to me
upvoted 45 times
...
reliquary
Highly Voted 3 years, 6 months ago
came up in my exam yesterday picked C
upvoted 19 times
...
BECAUSE
Most Recent 1 year, 11 months ago
Selected Answer: C
C is the answer
upvoted 1 times
...
pkhdog22
2 years, 8 months ago
Selected Answer: C
C. Have SNS handles which queues it's going to send messages to using filter.
upvoted 1 times
...
nehaxlpb
3 years ago
i select D, because the order of user action is important and only the queue can maintain the order, first come first serve.
upvoted 1 times
...
Karthikeyan_nick
3 years, 1 month ago
Hint: build the communications between microservices using Amazon Simple Queue Service (Amazon SQS) and Amazon Simple Notification Service (Amazon SNS). So, A & D are WRONG One SNS topic is enough for send notifications (for OrderProcessing and OrderCancellation )
upvoted 1 times
...
Lakhsmi
3 years, 1 month ago
Selected Answer: C
Yes C should be the correct one.
upvoted 1 times
...
Edgarrt
3 years, 4 months ago
Selected Answer: C
Answer is C, check this: https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html "For example, you can use a single topic to publish all messages generated by transactions from your retail website. To indicate the transaction state, you can assign an attribute (such as order_placed, order_cancelled, or order_declined) to each message. By creating subscriptions with filter policies, you can route each message to the queue designed to process the transaction state of the message"
upvoted 2 times
...
25dec_
3 years, 4 months ago
Selected Answer: C
C → cause the question mentions using both SNS and SQS so C make scene more
upvoted 1 times
...
pareekHP
3 years, 6 months ago
C - SNS with filtering at consumer side.
upvoted 3 times
...
Cotter
3 years, 6 months ago
Sure, don't aws : D.
upvoted 1 times
Sikku1981
3 years, 6 months ago
So it is C
upvoted 2 times
...
...
gmsaiaws
3 years, 6 months ago
C -The questions says- the architect wants to use both SNS & SQS
upvoted 9 times
...
jkwek
3 years, 6 months ago
The answer is D. I supported MQ series before. The reason D is chosen is because it is first queue is used for adding messages. Second queue is used for deleting messages. A is not possible because it cannot be just 1 queue for so many purposes. B is not possible because nobody will create 3 topics and no message queues to subscribe to the. C is not possible because nobody will create a topic and have so many messages or purposes to subscribe to this.
upvoted 6 times
...
GameLift
3 years, 6 months ago
Why 3 sqs?
upvoted 4 times
andwill1001
3 years, 6 months ago
1 for order confirmation---- > 1 for order deliver ---- > These both happen upon order, but they are 2 separate SQS' 1 for cancel
upvoted 4 times
andwill1001
3 years, 6 months ago
Also, it makes it confusing because there isn't a comma in front of "email" when it's listing the 3 microservices the SQS' will be applied to.
upvoted 2 times
...
...
...
ansh18061986
3 years, 6 months ago
I will go with 'C'.
upvoted 2 times
...
KK_uniq
3 years, 6 months ago
C for sure
upvoted 2 times
...
CloudMania
3 years, 6 months ago
C typical SNS Fanout case
upvoted 7 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago