Medium1 markMultiple Choice
Domain 2.3: DecouplingResilienceSNSSQSMicroservices

AWS SAA-C03 · Question 31 · Domain 2.3: Decoupling

A company is designing a microservices architecture. Service A needs to publish events that are consumed by Service B and Service C. Service B processes events immediately, while Service C batches them and processes them hourly. If Service C is down, events must not be lost. <br/><br/>Which TWO AWS services should be combined to build this architecture? (Select TWO.)

Answer options:

A.

Amazon SNS

B.

Amazon SQS

C.

AWS Step Functions

D.

Amazon Kinesis Data Firehose

E.

Amazon MQ

How to approach this question

Identify the 'fan-out' pattern, which uses SNS to publish to multiple SQS queues.

Full Answer

Amazon SNS<br/>Amazon SQS
This is the classic 'fan-out' pattern. Service A publishes a message to an Amazon SNS topic. Both Service B and Service C have their own Amazon SQS queues subscribed to that topic. SQS ensures the messages are buffered and not lost if a service is temporarily unavailable.

Common mistakes

Thinking SNS alone is enough. SNS does not buffer messages; if the consumer is down, the message is lost unless an SQS queue is used.

Practice the full AWS SAA-C03 Practice Exam 4

65 questions · hints · full answers · grading

More questions from this exam