CLF-C02 ยท Integration, developer, end-user and management services
Application integration: SQS, SNS, EventBridge, Step Functions, API Gateway
Amazon SQS queues, Amazon SNS pub/sub notifications, Amazon EventBridge event buses, AWS Step Functions workflows and Amazon API Gateway, and picking one for messaging or alerts.
Key points
- Amazon SQS: queue; consumers pull messages later, decoupling parts (4 days by default, up to 14).
- Amazon SNS: publish/subscribe; one message pushed to many subscribers (email, SMS, Lambda, SQS).
- Amazon EventBridge: event bus; rules route events from AWS services, SaaS, your code to targets.
- AWS Step Functions: multi-step workflows as a state machine.
- Amazon API Gateway: publishes, secures REST, HTTP, WebSocket APIs.
Source: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
Practice questions
Which AWS service is a fully managed message queue that lets one component store messages until another component is ready to process them?
- Amazon SNS
- AWS Step Functions
- Amazon SQS
- Amazon API Gateway
Show answer
Answer: C. Amazon SQS
Amazon SQS holds messages in a queue until a consumer polls and deletes them. Amazon SNS pushes messages to subscribers immediately instead of storing them for later pickup.
Which statements about Amazon SQS are correct?
- It pushes each message to email and SMS subscribers
- It decouples the component that sends work from the one that does it
- It stores messages indefinitely until someone reads them
- It buffers traffic spikes so consumers can process at their own pace
- FIFO queues keep messages in the order they were sent
Show answer
Answer: B. It decouples the component that sends work from the one that does it, D. It buffers traffic spikes so consumers can process at their own pace, E. FIFO queues keep messages in the order they were sent
SQS decouples producers from consumers, and a queue absorbs bursts so a slow consumer can catch up. FIFO queues preserve order. SQS is pull-based (consumers poll), it does not push to email subscribers, and messages are not kept forever: the maximum retention is 14 days.
Amazon SNS and Amazon SQS do the same job, so choosing between them makes no difference to how messages are delivered.
Show answer
Answer: False
False. SNS pushes each message to all subscribers immediately (one-to-many). SQS stores messages until a consumer pulls them (a queue, typically one consumer per message). They are often combined: an SNS topic can fan out into several SQS queues.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
