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

A solutions architect is designing an application for a two-step order process. The first step is synchronous and must return to the user with little latency. The second step takes longer, so it will be implemented in a separate component. Orders must be processed exactly once and in the order in which they are received.
How should the solutions architect integrate these components?

  • A. Use Amazon SQS FIFO queues.
  • B. Use an AWS Lambda function along with Amazon SQS standard queues.
  • C. Create an SNS topic and subscribe an Amazon SQS FIFO queue to that topic.
  • D. Create an SNS topic and subscribe an Amazon SQS Standard queue to that topic.
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
DK2
Highly Voted 3 years, 9 months ago
I think A is fine here. It doesn't really talk about the column coz FIFO can only do 300 msg/second.
upvoted 72 times
aguy9
3 years, 8 months ago
Answer is C because the limit you are referring to has now been removed, FIFO can now subscribe to SNS “ “SQS” – Users can specify an SQS standard or FIFO queue as the endpoint; Amazon SNS will enqueue a notification message to the specified queue” https://aws.amazon.com/sns/faqs/?nc1=h_ls
upvoted 31 times
sagacious_smith
3 years, 8 months ago
what is the use of SNS here? Why can't application 1st part directly publish to SQS? SNS is normally required for a fan out pattern where there are multiple consumers. Here there is a single second part of the application that needs to read the message from FIFO.
upvoted 12 times
spydii
3 years, 8 months ago
dude, have your ever designed an ordering system architecture. You will know then why fanout.
upvoted 2 times
chael88
3 years ago
Yes because we've all built an ordering system architecture
upvoted 2 times
...
...
NJo
3 years, 8 months ago
That's exactly what I am thinking. There is no use of SNS here. It's redundant.
upvoted 2 times
...
...
Rajjay
3 years, 7 months ago
Answer is "C". Check this link: https://aws.amazon.com/blogs/aws/introducing-amazon-sns-fifo-first-in-first-out-pub-sub-messaging/
upvoted 2 times
...
Elliea
3 years, 8 months ago
SNS is needed because it "must return to the user". This means it's subscription based.
upvoted 10 times
...
...
Uzbekistan
1 year, 4 months ago
What is the default TTL for SQS? The default is 4 days. Once the message retention quota is reached, your messages are automatically deleted. MessageRetentionPeriod – The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer representing seconds, from 60 (1 minute) to 1,209,600 (14 days)
upvoted 1 times
...
KetanAtri
3 years, 8 months ago
+1 on A; C cannot be correct as SNS does not guarantee ordering, if it were an SNS FIFO topic then that would've been correct, but just SNS topic will not guarantee ordering
upvoted 5 times
...
noahsark
3 years, 8 months ago
Introducing Amazon SNS FIFO – First-In-First-Out Pub/Sub Messaging https://aws.amazon.com/blogs/aws/introducing-amazon-sns-fifo-first-in-first-out-pub-sub-messaging/
upvoted 6 times
...
...
FKN
Highly Voted 3 years, 9 months ago
Answer is A Here is why it is not C: Q: Are Amazon SQS FIFO queues compatible with Amazon Simple Notification Service (SNS)? Amazon SNS does not currently support forwarding messages to Amazon SQS FIFO queues. You can use SNS to forward messages to standard queues. https://aws.amazon.com/sns/faqs/
upvoted 30 times
achambok
3 years, 9 months ago
Lambda is compatible with FIFO of the SQS queues; You can use an AWS Lambda function to process messages in an Amazon Simple Queue Service (Amazon SQS) queue. Lambda event source mappings support standard queues and first-in, first-out (FIFO) queues. With Amazon SQS, you can offload tasks from one component of your application by sending them to a queue and processing them asynchronously. Lambda polls the queue and invokes your function synchronously with an event that contains queue messages. Lambda reads messages in batches and invokes your function once for each batch. When your function successfully processes a batch, Lambda deletes its messages from the queue. The following example shows an event for a batch of two messages. https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
upvoted 3 times
ruqui
1 year, 11 months ago
Lambda is wrong. B says that Lambda is used with a Standard SQS, Standard SQS does not guarantee 'only once' processing
upvoted 1 times
...
...
skflip
3 years, 8 months ago
Q: What are the different delivery formats/transports for receiving notifications? “SQS” – Users can specify an SQS standard or FIFO queue as the endpoint; Amazon SNS will enqueue a notification message to the specified queue (which subscribers can then process using SQS APIs such as ReceiveMessage, DeleteMessage, etc.).
upvoted 4 times
...
Microgen
3 years, 6 months ago
bro you didn't read your own link. wtf with you people. Answer is C.
upvoted 4 times
codeporan
3 years, 3 months ago
it would be when SNS FIFO
upvoted 1 times
...
...
genni
3 years, 8 months ago
Is SNS compatible with SQS FIFO? You can now use Amazon Simple Notification Service (Amazon SNS) FIFO topics, in combination with Amazon Simple Queue Service (Amazon SQS) FIFO queues, to build applications that require messages to be sent and processed in a strict sequence and without duplicates.
upvoted 7 times
PhilMultiCloud
3 years, 8 months ago
thanks for this!
upvoted 1 times
...
...
...
Uzbekistan
Most Recent 1 year, 4 months ago
Selected Answer: A
Amazon SQS FIFO (First-In-First-Out) queues guarantee the order of messages and ensure that each message is processed exactly once. This makes them suitable for scenarios where maintaining the order of messages and processing them exactly once is crucial, such as in the case of processing orders in a specific sequence.
upvoted 1 times
...
BECAUSE
2 years, 1 month ago
Selected Answer: A
A is the Answer
upvoted 1 times
...
apchandana
2 years, 3 months ago
Selected Answer: C
SNS required for returning to customer and FIFO is required for orderly processing
upvoted 1 times
...
rerodriguez
2 years, 5 months ago
Selected Answer: A
It's not C. You can't subscribe a SQS Fifo to a standard SNS. Both must be FIFO for it to work.
upvoted 1 times
...
Sachin032
2 years, 5 months ago
Selected Answer: A
SQS with FIFO is right one
upvoted 1 times
...
sidzan
2 years, 5 months ago
Selected Answer: A
Sis fifo does the job Sns is redundant. Less dependency is better always!
upvoted 1 times
...
hollie
2 years, 5 months ago
Selected Answer: A
"When you subscribe an Amazon SQS queue to an Amazon SNS topic, you can publish a message to the topic and Amazon SNS sends an Amazon SQS message to the subscribed queue." So I publish a message to SNS in order for it to send an SQS message to the subscribed queue? doesn't it sound cumbersome and ridiculous? why can't I just publish the message to SQS directly?
upvoted 1 times
...
Joxtat
2 years, 5 months ago
Selected Answer: C
Reference: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
upvoted 1 times
...
ogerber
2 years, 8 months ago
Selected Answer: C
its C. SNS is synchronous and SQS FIFO- not necessarily. you need a synchronous component.
upvoted 1 times
...
AmazingAWS
2 years, 10 months ago
The key is "must return to the user with little latency" in the first step, so need SNS topic in order for SMS to sub, SMS can send mail back to user. Then SQS with FIFO will sub to the same SNS topic as well
upvoted 1 times
...
welcomeYM
2 years, 10 months ago
Selected Answer: A
AAAAAAAA
upvoted 1 times
...
ahaz
2 years, 10 months ago
Selected Answer: A
"he first step is synchronous and must return with minimal delay" "precisely once and in their original sequence" There will be no need for multiple subscribers as per the question. So, a single FIFO queue will be enough for the job. My choice is A.
upvoted 1 times
ruqui
1 year, 11 months ago
Wrong!!!! An SQS queue does not guarantee processing with little latency
upvoted 1 times
...
...
naveenagurjara
3 years ago
Selected Answer: A
SNS cannot preserve order in the first place... so no point in fanning out to SQS fifo since the order is already messed up in SNS. You have to use SNS FIFO....
upvoted 2 times
...
Aniketh
3 years ago
Selected Answer: A
i go with A
upvoted 1 times
...
Nil746
3 years ago
C is the correct choice. The hint is in the question itself- The first step is synchronous and must return with minimal delay to the user, for this SNS topic should be used, because synchronous refers to SNS and asynchronous refers to SQS. and the hint for SQS FIFO is Orders must be processed precisely once and in their original sequence of receipt.
upvoted 4 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 ...