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

A company has a legacy data processing application that runs on Amazon EC2 instances. Data is processed sequentially, but the order of results does not matter.
The application uses a monolithic architecture. The only way that the company can scale the application to meet increased demand is to increase the size of the instances.
The company's developers have decided to rewrite the application to use a microservices architecture on Amazon Elastic Container Service (Amazon ECS).
What should a solutions architect recommend for communication between the microservices?

  • A. Create an Amazon Simple Queue Service (Amazon SQS) queue. Add code to the data producers, and send data to the queue. Add code to the data consumers to process data from the queue.
  • B. Create an Amazon Simple Notification Service (Amazon SNS) topic. Add code to the data producers, and publish notifications to the topic. Add code to the data consumers to subscribe to the topic.
  • C. Create an AWS Lambda function to pass messages. Add code to the data producers to call the Lambda function with a data object. Add code to the data consumers to receive a data object that is passed from the Lambda function.
  • D. Create an Amazon DynamoDB table. Enable DynamoDB Streams. Add code to the data producers to insert data into the table. Add code to the data consumers to use the DynamoDB Streams API to detect new table entries and retrieve the data.
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
Robert_B
Highly Voted 3 years, 3 months ago
Selected Answer: A
SQS to decouple.
upvoted 11 times
...
BlassArun
Highly Voted 3 years, 4 months ago
Ans is A
upvoted 8 times
...
ahaz
Most Recent 2 years, 8 months ago
Selected Answer: D
Since we are talking about multiple microservices, it is possible that more than one micro service need to react to a certain event. I would say A is out because of this. The answer should be between B and D. I would go with B as it adds the Dynamo DB as an event store in between.
upvoted 2 times
ahaz
2 years, 8 months ago
B in the last sentence is obviously a typo :D I meant D is the answer in my opinion
upvoted 1 times
Fdes
2 years, 8 months ago
SQS queues can have multiple consumers
upvoted 1 times
...
...
...
slcheng
2 years, 9 months ago
Selected Answer: A
Vote A
upvoted 2 times
...
etheng1970
2 years, 10 months ago
Selected Answer: A
both A and D is workable, i select A because it is potentially cheaper solution.
upvoted 2 times
...
SDikeman62
3 years, 1 month ago
Why not C, It is microservices architecture. No where it mentions of decoupling.
upvoted 2 times
...
DriVen
3 years, 1 month ago
Selected Answer: A
A! "the order of the findings is irrelevant." - this would lead us to decouple applications which is AWS best practice D also seems good, but also a bit off topic from the main question
upvoted 3 times
DriVen
3 years, 1 month ago
Actually...the question is not detailed enough, so based on https://serverlessfirst.com/serverless-inter-service-communication/ I would actually go for D here, mainly because SQS can only have 1 sub,
upvoted 2 times
...
...
Siraf
3 years, 2 months ago
Answer is B. Fanout
upvoted 2 times
allanm
2 years, 10 months ago
Fanout to what services? The architecture just needs to be changed to accomodate a queue to hold the messages for the application to be processed along with decoupling. Answer is clearly SQS (A)
upvoted 1 times
...
...
osel
3 years, 3 months ago
Selected Answer: A
FIFO Queue = Queue has Limited throughput (300 msg/s without batching, 3000 msg/s with batching whereby up-to 10 msg per batch operation; Msg duplicates not allowed in the queue (exactly-once delivery); Msg order is preserved (FIFO); Queue name must end with .fifo
upvoted 5 times
...
RandomLettersAndNumbers
3 years, 3 months ago
Selected Answer: B
I vote for B, as there may be several consumers of the same data. So this may require broadcasting data, instead of point to point message queue.
upvoted 2 times
...
Dsb86
3 years, 4 months ago
Selected Answer: A
I would choose A, SQS, but I guess D also works fine.
upvoted 4 times
...
Rickywsiek
3 years, 4 months ago
Selected Answer: A
I believed is A
upvoted 2 times
...
hmc929
3 years, 4 months ago
A is the answer
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