Courseiva
Design for New Solutions →mediumMultiple Choice

Decoupling Microservices with Asynchronous Communication on AWS

A company is designing a new microservices architecture on AWS. They need to ensure that services can communicate asynchronously without direct coupling. Which AWS service should they use to decouple the services?

Quick Answer

Amazon SQS is the correct choice because it provides a fully managed message queue that enables asynchronous communication between microservices, allowing them to send, store, and receive messages without direct coupling. By decoupling the producer from the consumer, SQS ensures that services can operate independently, even if one is temporarily unavailable, which is the core principle of building resilient, loosely coupled architectures on AWS. On the SAP-C02 exam, this question tests your understanding of how to select the right decoupling pattern for microservices—SQS for pull-based, asynchronous messaging versus Amazon SNS for push-based fan-out or Kinesis for real-time streaming. A common trap is choosing SNS because it also decouples, but SNS requires subscribers to be active and does not buffer messages; SQS queues hold messages until consumed, making it the true decoupling service for asynchronous workloads. Memory tip: think “SQS = Queue, SNS = Notification”—if the consumer needs to poll at its own pace, always pick the Queue.

⚠ Common exam trap

A common mix-up: candidates confuse Amazon SNS (pub/sub) with Amazon SQS (queue), but SNS pushes messages to subscribers and does not provide a buffer for asynchronous decoupling, whereas SQS allows services to pull messages at their own pace, which is the key requirement for decoupling.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Amazon SQS

Amazon SQS is the correct choice because it provides a fully managed message queue that enables asynchronous communication between microservices, allowing them to send, store, and receive messages without direct coupling. Services can poll or receive messages from the queue at their own pace, ensuring that the producer and consumer are decoupled and can operate independently, even if one is temporarily unavailable.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    AWS Step Functions

    Why it's wrong here

    Step Functions orchestrates sequential workflows with explicit state transitions and waits for each task, so it does not provide the durable queue buffering that decouples producers from consumers. It is tempting for coordinating microservices, but it suits ordered, long-running business processes rather than asynchronous message passing.

  • ✗

    Amazon SNS

    Why it's wrong here

    SNS is pub/sub fan-out to subscribers; it does not persist messages for independent consumers, so services remain coupled to notification delivery. SNS suits broadcasting events to many endpoints, whereas decoupling requires a queue such as Amazon SQS holding messages until each consumer polls them.

  • ✓

    Amazon SQS

    Why this is correct

    Amazon SQS provides fully managed message queues that buffer messages between producers and consumers, so microservices publish without waiting for a response. This satisfies the asynchronous, loosely coupled communication constraint: services interact only through the queue, tolerating consumer failures and scaling independently without direct invocation or endpoint dependencies.

  • ✗

    Amazon Kinesis

    Why it's wrong here

    Kinesis ingests and streams real-time data for analytics; it does not provide durable queue-based decoupling with independent producers and consumers. It is tempting because it does decouple data producers from consumers, but that suits streaming pipelines, not request/response microservice messaging where Amazon SQS fits.

About these practice questions

This SAP-C02 question is part of Courseiva's 984-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on SAP-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is designing a new microservices architecture on AWS. They need to ensure that services can communicate asynchronously without tight coupling. Which AWS service should they use to decouple the services while providing durable message storage?

medium
  • A.Amazon SNS
  • B.Amazon EventBridge
  • C.Amazon Kinesis Data Streams
  • ✓ D.Amazon SQS

Why D: Amazon SQS (Simple Queue Service) is the correct choice because it provides a fully managed message queue that enables asynchronous communication between microservices, decoupling them so that producers and consumers operate independently. SQS offers durable message storage by persisting messages across multiple Availability Zones, ensuring messages are not lost even if a consumer fails. This aligns with the requirement for loose coupling and reliable message delivery.

Variation 2. A company is designing a new microservices architecture on AWS. They need to ensure that services can communicate asynchronously without tight coupling. Which AWS service should they use for message brokering?

medium
  • ✓ A.Amazon Simple Queue Service (SQS)
  • B.Amazon Simple Notification Service (SNS)
  • C.Amazon Kinesis Data Streams
  • D.AWS Step Functions

Why A: Amazon SQS is a fully managed message queuing service that enables asynchronous, decoupled communication between microservices. Producers send messages to a queue, and consumers poll and process them independently, so services don't need to know about each other or wait for responses. This directly satisfies the requirement for asynchronous communication without tight coupling.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.