Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 181 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 (?) , you can switch to a simple comment.
Switch to a voting comment New
Buruguduystunstugudunstuy
Highly Voted 1 year, 11 months ago
Selected Answer: A
Option B, using Amazon Simple Notification Service (SNS), would not be suitable for this use case, as SNS is a pub/sub messaging service that is designed for one-to-many communication, rather than point-to-point communication between specific microservices. Option C, using an AWS Lambda function to pass messages, would not be suitable for this use case, as it would require the data producers and data consumers to have a direct connection and invoke the Lambda function, rather than being decoupled through a message queue. Option D, using an Amazon DynamoDB table with DynamoDB Streams, would not be suitable for this use case, as it would require the data consumers to continuously poll the DynamoDB Streams API to detect new table entries, rather than being notified of new data through a message queue.
upvoted 19 times
Buruguduystunstugudunstuy
1 year, 11 months ago
Hence, Option A is the correct answer. 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.
upvoted 10 times
...
...
cookieMr
Highly Voted 1 year, 4 months ago
Selected Answer: A
A. Creating an Amazon SQS queue allows for asynchronous communication between microservices, decoupling the data producers and consumers. It provides scalability, flexibility, and ensures that data processing can happen independently and at a desired pace. B. Amazon SNS is more suitable for pub/sub messaging, where multiple subscribers receive the same message. It may not be the best fit for sequential data processing. C. Using AWS Lambda functions for communication introduces unnecessary complexity and may not be the optimal solution for sequential data processing. D. Amazon DynamoDB with DynamoDB Streams is primarily designed for real-time data streaming and change capture scenarios. It may not be the most efficient choice for sequential data processing in a microservices architecture.
upvoted 6 times
...
scar0909
Most Recent 8 months, 2 weeks ago
Selected Answer: A
A for sure
upvoted 2 times
...
reviewmine
9 months ago
Selected Answer: A
To Decouple a monolithic application - SQS - SQS standard - not in order - SQS FIFO - in order
upvoted 3 times
...
upliftinghut
10 months ago
Selected Answer: A
Data is processed sequentially, but the order of results does not matter => SQS; if order matters => SQL FIFO
upvoted 2 times
...
Cloud_A
10 months, 2 weeks ago
Selected Answer: A
A is the answer.
upvoted 2 times
...
TariqKipkemei
1 year, 2 months ago
Selected Answer: A
Data is processed sequentially, but the order of results does not matter = Amazon Simple Queue Service
upvoted 2 times
...
Guru4Cloud
1 year, 3 months ago
Selected Answer: A
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. For asynchronous communication between decoupled microservices, an SQS queue is the most appropriate service to use. SQS provides a scalable, highly available queue to buffer messages between producers and consumers. The order of processing does not matter, so a queue model fits well. The consumers can scale independently to process messages from the queue.
upvoted 4 times
...
omoakin
1 year, 6 months ago
BBBBBBBBB
upvoted 1 times
...
Bmarodi
1 year, 6 months ago
Selected Answer: A
SQS for decoupling a monolithic architecture, hence option A is the right answer.
upvoted 2 times
...
Madhuaws
1 year, 7 months ago
it also says 'the order of results does not matter'. Option B is correct.
upvoted 1 times
...
asoli
1 year, 8 months ago
Selected Answer: A
The answer is A. B is wrong because SNS cannot send events "directly" to ECS. https://docs.aws.amazon.com/sns/latest/dg/sns-event-destinations.html
upvoted 2 times
...
user_deleted
1 year, 8 months ago
Selected Answer: B
it deosn;t say it is one-one relationships , SNS is better
upvoted 3 times
markw92
1 year, 5 months ago
watch out for this sentence in the question..."Data needs to process sequentially...."
upvoted 3 times
...
...
career360guru
1 year, 11 months ago
Selected Answer: A
Best answer is A. Though C or D is possible it requires additional components and integration and so they are not efficient. Assuming that rate of incoming requests is within limits that SQS can handle A is best option.
upvoted 2 times
...
k1kavi1
1 year, 11 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
Shasha1
1 year, 11 months ago
answer is B. An Amazon Simple Notification Service (Amazon SNS) topic can be used for communication between the microservices in this scenario. The data producers can be configured to publish notifications to the topic, and the data consumers can be configured to subscribe to the topic and receive notifications as they are published. This allows for asynchronous communication between the microservices, Question here focus on communication between microservices
upvoted 2 times
...
xua81376
2 years ago
We need decoupling so ok to use SQS
upvoted 3 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 ...