exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 82 discussion

Exam question from Amazon's AWS-SysOps
Question #: 82
Topic #: 1
[All AWS-SysOps Questions]

You are building an online store on AWS that uses SQS to process your customer orders. Your backend system needs those messages in the same sequence the customer orders have been put in. How can you achieve that?

  • A. It is not possible to do this with SQS
  • B. You can use sequencing information on each message
  • C. You can do this with SQS but you also need to use SWF
  • D. Messages will arrive in the same order by default
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Amazon SQS is engineered to always be available and deliver messages. One of the resulting tradeoffs is that SQSdoes not guarantee first in, first out delivery of messages. For many distributed applications, each message can stand on its own, and as long as all messages are delivered, the order is not important. If your system requires that order be preserved, you can place sequencing information in each message, so that you can reorder the messages when the queue returns them.

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
hou0220
6 months ago
SQS supports FIFO queue. https://aws.amazon.com/sqs/features/ Just that, other options are incorrect. (B) is the best answer. Especially (C), you don't need SWF to do this.
upvoted 1 times
...
AMohanty
6 months, 2 weeks ago
B https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/stand ard-queues.html A standard queue makes a best effort to preserve the order of messages, but more than one copy of a message might be delivered out of order. If your system requires that order be preserved, we recommend using a FIFO (First-In-First-Out) queue or adding sequencing information in each message so you can reorder the messages when they're received.
upvoted 2 times
...
TroyMcLure
6 months, 3 weeks ago
Correct Answer: B Since there's no option using FIFO Queues, Sequencing information is the only alternative.
upvoted 1 times
...
NoCrapEva
6 months, 3 weeks ago
You can use FIFO SQS (which is slower than normal SQS), but seeing as thats not an option.... then sequencing is your only alternative
upvoted 2 times
...
amrtandre
7 months ago
A standard queue makes a best effort to preserve the order of messages, but more than one copy of a message might be delivered out of order. If your system requires that order be preserved, we recommend using a FIFO (First-In-First-Out) queue or adding sequencing information in each message so you can reorder the messages when they're received.
upvoted 1 times
...
awscertified
7 months, 1 week ago
B. You can use sequencing information on each message
upvoted 4 times
...
Chirantan
7 months, 2 weeks ago
this is now sys ops quection
upvoted 1 times
...
karmaah
7 months, 2 weeks ago
The tricky part of the question is "messages in the same sequence". Usually we think Delivery which means FIFO & Standard Method to deliver exactly once or at least once. But the requirement is sequence..
upvoted 3 times
karmaah
7 months, 2 weeks ago
Additional Info : Amazon SQS offers standard as the default queue type. Standard queues support at-least-once message delivery.
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