AWS Certified Cloud Practitioner / Question #1095 of 719

Question #1095

Which AWS service facilitates asynchronous communication between distributed applications by allowing publishers to broadcast messages to multiple subscribers via topics?

A

AWS Lambda

B

Amazon Simple Notification Service (Amazon SNS)

C

Amazon CloudWatch

D

AWS CloudFormation

Explanation

Amazon Simple Notification Service (SNS) is designed for pub/sub messaging, where publishers broadcast messages to topics, and subscribers receive those messages asynchronously. This decouples applications, enabling scalable and flexible communication.

- Why B is correct: SNS's core functionality is to manage topics and deliver messages to multiple subscribers (e.g., Lambda, SQS, HTTP endpoints).
- Why others are incorrect:
- A (Lambda): Executes code in response to events but does not handle message broadcasting.
- C (CloudWatch): A monitoring service, not a messaging system.
- D (CloudFormation): Infrastructure-as-code tool for resource provisioning, unrelated to messaging.

Key Points: SNS uses topics for pub/sub, supports multiple protocols, and enables decoupled architectures. Remember 'pub/sub' and 'broadcast to multiple subscribers' as SNS keywords.

Answer

The correct answer is: B