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

A company is Re-architecting a strongly coupled application to be loosely coupled. Previously the application used a request/response pattern to communicate between tiers. The company plans to use Amazon Simple Queue Service (Amazon SQS) to achieve decoupling requirements. The initial design contains one queue for requests and one for responses. However, this approach is not processing all the messages as the application scales.
What should a solutions architect do to resolve this issue?

  • A. Configure a dead-letter queue on the ReceiveMessage API action of the SQS queue.
  • B. Configure a FIFO queue, and use the message deduplication ID and message group ID.
  • C. Create a temporary queue, with the Temporary Queue Client to receive each response message.
  • D. Create a queue for each request and response on startup for each producer, and use a correlation ID message attribute.
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
Abdullah22
Highly Voted 3 years, 7 months ago
"we discussed the Request-Response Messaging Pattern. In this pattern, each requester creates a temporary destination to receive each response message. The simplest approach is to create a new queue for each response, but this is like building a road just so a single car can drive on it before tearing it down. Technically, this can work (and SQS can create and delete queues quickly), but we can definitely make it faster and cheaper. To better support short-lived, lightweight messaging destinations, we are pleased to present the Amazon SQS Temporary Queue Client. This client makes it easy to create and delete many temporary messaging destinations without inflating your AWS bill." https://aws.amazon.com/blogs/compute/simple-two-way-messaging-using-the-amazon-sqs-temporary-queue-client/ C
upvoted 51 times
Heyang
3 years, 6 months ago
agree C . new Features should be beeter choice .hhhhhhh
upvoted 8 times
...
...
93madox
Highly Voted 3 years, 7 months ago
Answer D as per: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/working-with-messages.html#implementing-request-response-systems
upvoted 16 times
noahsark
3 years, 6 months ago
"In our previous two-part post series on implementing enterprise integration patterns with AWS messaging services, Point-to-point channels and Publish-subscribe channels, we discussed the Request-Response Messaging Pattern. In this pattern, each requester creates a temporary destination to receive each response message." https://aws.amazon.com/blogs/compute/simple-two-way-messaging-using-the-amazon-sqs-temporary-queue-client/
upvoted 4 times
...
...
BECAUSE
Most Recent 1 year, 11 months ago
Selected Answer: C
C is the answer
upvoted 1 times
...
queen101
2 years, 9 months ago
CCCCCCCCCCCC
upvoted 1 times
...
awsas2022
2 years, 9 months ago
What is the correct option ?
upvoted 1 times
...
marklovesaws143
2 years, 9 months ago
Selected Answer: C
CCCCCCCCCCCCC
upvoted 4 times
...
slcheng
2 years, 10 months ago
Selected Answer: C
Vote C.
upvoted 2 times
...
naveenagurjara
2 years, 10 months ago
Selected Answer: C
Temp SQS Q supports RR
upvoted 2 times
...
mgari
3 years, 1 month ago
Selected Answer: C
temporary queue
upvoted 2 times
...
Siddhartham
3 years, 4 months ago
Selected Answer: C
To implement this pattern: use the SQS Temporary Queue Client. It leverages virtual queues instead of creating / deleting SQS queues (cost-effective).
upvoted 2 times
...
weilun_tann
3 years, 4 months ago
C A. Configure a dead-letter queue on the ReceiveMessage API action of the SQS queue. - Wrong. This is a generic solution for handling messages that can't be processed successfully. Our solution should be targeted to SQS used in a request-response paradigm - https://aws.amazon.com/blogs/compute/simple-two-way-messaging-using-the-amazon-sqs-temporary-queue-client/ B. Configure a FIFO queue, and use the message deduplication ID and message group ID. - Wrong. A FIFO queue further limits our messages per second to ~400, which won't scale C. Create a temporary queue, with the Temporary Queue Client to receive each response message. - Correct. https://aws.amazon.com/blogs/compute/simple-two-way-messaging-using-the-amazon-sqs-temporary-queue-client/ D. Create a queue for each request and response on startup for each producer, and use a correlation ID message attribute. - Wrong. Creating physical queues for each API request/response will cause significant overhead and won't scale. Having logical / virtual queues via the SQS Temporary Queue Client solves this
upvoted 10 times
...
Daro_
3 years, 5 months ago
Selected Answer: C
ANS = C
upvoted 1 times
...
gargaditya
3 years, 5 months ago
C-Temporary Queue Client Directly from Stephane's AWS course, Request Response Systems can be implemented using 'SQS Temporary Queue Client'. We have single request queue and the responses are kept into different queues(correlation ID helps track response) The producer can take in responses as convenient from this response queue.
upvoted 2 times
...
vizzdoom
3 years, 6 months ago
Its C - temp Q is a common pattern for replacing Request-Response to SQS
upvoted 2 times
...
vaaws
3 years, 6 months ago
CCCCCCCCCCCCCCC The most common use case for temporary queues is the request-response messaging pattern, where a requester creates a temporary queue for receiving each response message. To avoid creating an Amazon SQS queue for each response message, the Temporary Queue Client lets you create and delete multiple temporary queues without making any Amazon SQS API calls. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-temporary-queues.html#request-reply-messaging-pattern
upvoted 1 times
...
Always_Wanting_Stuff
3 years, 6 months ago
One huge point you guys have missed. D mentions request and response and C only mentions the word response. I am changing from C to D.
upvoted 1 times
...
JayBro2
3 years, 6 months ago
I think A is actually the best answer. Based on the info given in the case, no conclusions can be made yet as to why not all messages are being processed. The dead-letter queue is a perfect way to capture the unprocessed messages and analyze them. "The main task of a dead-letter queue is handling message failure. A dead-letter queue lets you set aside and isolate messages that can’t be processed correctly to determine why their processing didn’t succeed. " see https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
upvoted 2 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