Discover which AWS service uses the publish-subscribe (pub/sub) model for asynchronous communication. Learn why Amazon SNS is the correct answer for the AWS Certified Cloud Practitioner CLF-C02 exam.
Table of Contents
Question
Which AWS service uses a combination of publishers and subscribers?
A. AWS Lambda
B. Amazon Simple Notification Service (Amazon SNS)
C. Amazon CloudWatch
D. AWS CloudFormation
Answer
B. Amazon Simple Notification Service (Amazon SNS)
Explanation
Amazon Simple Notification Service (Amazon SNS) is a service that offers fully managed pub/sub messaging. Pub/sub messaging is a pattern that uses a combination of publishers and subscribers.
Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service that facilitates asynchronous communication between systems using the publish-subscribe (pub/sub) model. Here’s how it works:
- Publishers send messages to an Amazon SNS topic, which acts as a communication channel.
- Subscribers register to receive messages from the topic using various supported endpoints, such as email, SMS, HTTP/HTTPS, AWS Lambda, or Amazon SQS.
- When a message is published to the topic, all subscribers receive a copy of the message asynchronously, enabling decoupled communication between distributed systems.
This architecture is ideal for use cases like sending notifications or triggering workflows in response to events.
Why Not the Other Options?
A. AWS Lambda: While Lambda can process events and trigger functions, it does not inherently implement a pub/sub model like Amazon SNS.
C. Amazon CloudWatch: CloudWatch is primarily used for monitoring and logging, not for pub/sub messaging.
D. AWS CloudFormation: This service is used for infrastructure as code to provision and manage AWS resources but does not involve publishers and subscribers.
Amazon SNS stands out as the quintessential pub/sub service in AWS, making it the correct answer.
Amazon AWS Certified Cloud Practitioner CLF-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Cloud Practitioner CLF-C02 exam and earn Amazon AWS Certified Cloud Practitioner CLF-C02 certification.