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

A company has an application that ingests incoming messages. These messages are then quickly consumed by dozens of other applications and microservices.
The number of messages varies drastically and sometimes spikes as high as 100,000 each second. The company wants to decouple the solution and increase scalability.
Which solution meets these requirements?

  • A. Persist the messages to Amazon Kinesis Data Analytics. All the applications will read and process the messages.
  • B. Deploy the application on Amazon EC2 instances in an Auto Scaling group, which scales the number of EC2 instances based on CPU metrics.
  • C. Write the messages to Amazon Kinesis Data Streams with a single shard. All applications will read from the stream and process the messages.
  • D. Publish the messages to an Amazon Simple Notification Service (Amazon SNS) topic with one or more Amazon Simple Queue Service (Amazon SQS) subscriptions. All applications then process the messages from the queues.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
TollaMS
Highly Voted 3 years, 7 months ago
Every time you see Decoupling please choose SQS so the answer is D
upvoted 53 times
giandelv
2 years, 10 months ago
Where, pray tell, did you read decoupling in this question?
upvoted 3 times
...
weilun_tann
3 years, 4 months ago
How? SNS can only handle at most 30K messages/sec, and only in certain regions - https://docs.aws.amazon.com/general/latest/gr/sns.html#:~:text=N.%20Virginia)%20Region-,30%2C000%20messages%20per%20second,-300%20messages%20per
upvoted 1 times
...
CCNPWILL
3 years, 7 months ago
'spikes as high as 100,000 each second.' SQS cant handle this. need kinesis. Go study buddy.
upvoted 35 times
AWSExplorer
3 years, 6 months ago
Correct, Also: It cannot be Amazon Kinesis Data Streams with a single shard bcoz ,it can retrieve ONLY up to 10 MB of data per call from a single shard, and up to 10,000 records per call. But in question we have 100,000 messages to process
upvoted 1 times
...
andwill1001
3 years, 6 months ago
There's is nothing in AWS documentation that confirms this. Only a small blip on FIFO messages per second. Decoupling with SQS is what makes sense here. A doesn't make any sense to me.
upvoted 3 times
...
noahsark
3 years, 6 months ago
Standard Queues - Unlimited Throughput: Standard queues support a nearly unlimited number of transactions per second (TPS) per API action. https://aws.amazon.com/sqs/features/
upvoted 2 times
...
...
...
jkwek
Highly Voted 3 years, 6 months ago
The answer is D. I am a full time MQ support guy before so i know this type of message queues designs very well. Usually large number of messages go into a topic and they will be consumed by many message queues who subscribed to them.
upvoted 19 times
...
BECAUSE
Most Recent 1 year, 11 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
Six_Fingered_Jose
2 years, 6 months ago
Selected Answer: D
Agree with D because it said one or more SQS
upvoted 2 times
...
Sinaneos
2 years, 7 months ago
Selected Answer: D
It's not possible to do the requirements with a single shard, so has to be D (although it makes more sense to use kinesis streams if there is no shard limitation)
upvoted 1 times
...
ahaz
2 years, 9 months ago
Selected Answer: D
A is out because Kinesis Data Analysis is not meant for digesting data. It is for querying streams. It gets data from and sends data to either Kinesis Data Stream or Firehose. B is out for obvious reasons. C is out because it mentions a single shard. For a single shard we have the limitation of 1 MB or 1000 messages/sec. The question says there might be 100,000 messages/sec. D is the answer.
upvoted 1 times
...
Philthetill
2 years, 9 months ago
D for decouple and divorce..queue
upvoted 1 times
...
naveenagurjara
2 years, 10 months ago
Selected Answer: D
SNS Fanout to SQS. Kinesis supports only 1000 per sec.
upvoted 3 times
...
mgari
3 years, 1 month ago
Selected Answer: D
decoupling=SQS
upvoted 2 times
...
wetorek
3 years, 2 months ago
Selected Answer: D
Every time you see Decoupling please choose SQS so the answer is D
upvoted 1 times
giandelv
2 years, 10 months ago
But in this case I can't see decoupling in the questions. So if D is correct there must be another reason
upvoted 2 times
...
...
jearl
3 years, 4 months ago
Q: What is a shard, producer, and consumer in Kinesis Data Streams? A shard has a sequence of data records in a stream. It serves as a base throughput unit of a Kinesis data stream. A shard supports 1 MB/second and 1,000 records per second for writes and 2 MB/second for reads. The shard limits ensure predictable performance, making it easy to design and operate a highly reliable data streaming workflow. A producer puts data records into shards and a consumer gets data records from shards. Consumers use shards for parallel data processing and for consuming data in the exact order in which they are stored. If writes and reads exceed the shard limits, the producer and consumer applications will receive throttles, which can be handled through retries.
upvoted 3 times
...
youthanasia
3 years, 5 months ago
When in doubt, fan out!! SNS + SQS for me. Answer D
upvoted 5 times
...
gargaditya
3 years, 5 months ago
D. A-incorrect as KDA can have source as KDS or KDF only,not direct from clients. C-KDS has max limit of 1 MB/s or 1000 messages /sec going in per shard and 2 MB/s or 5 messages/sec out per shard( per consumer in enhanced mode or this limit is shared across all consumers in Standard mode) Max size of message is 1 MB. 100 000 per second cannot be handled by KDS. NOTE-KDF would not fit either as 'matter of seconds' .KDF is 'near real time' not real time (60 seconds latency for buffer to fill) 'fluctuates significantly'--EC2 with ASG(A) or option D both can help. But the 'divorce from infrastructure' looks more like D D fits publish once,receive many SNS,Lambda, custom HTTP endpoint ,SMS, email,mobile alerts, KDF are valid targets(subscribers) of SNS. P.S.AWS queue(SQS) does not have limits on queue size. It only poses limit on inflight messages ie messages already consumed by consumers but not deleted.
upvoted 10 times
...
ajayjha123
3 years, 6 months ago
It should be D
upvoted 1 times
...
winnie23432
3 years, 6 months ago
why the hell is the answer wrong for this question too!! I am tired of the wrong answers
upvoted 6 times
...
ecastilla
3 years, 6 months ago
It seems not to be a use case of stream processing: stream in not mentioned and the number of messages varies drastically. B is boguous Ans is D
upvoted 1 times
...
WellsPham
3 years, 6 months ago
D "SNS Standard Topic" Maximum throughput: Standard topics support a nearly unlimited number of messages per second. https://aws.amazon.com/sns/features/ "SQS Standard Queue" Unlimited Throughput: Standard queues support a nearly unlimited number of transactions per second (TPS) per API action. https://aws.amazon.com/sqs/features/
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago