Bitzu

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

Single choice

Which AWS service is a fully managed message queue that lets one component store messages until another component is ready to process them?

  1. Amazon SNS
  2. AWS Step Functions
  3. Amazon SQS
  4. 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.

Select all that apply

Which statements about Amazon SQS are correct?

  1. It pushes each message to email and SMS subscribers
  2. It decouples the component that sends work from the one that does it
  3. It stores messages indefinitely until someone reads them
  4. It buffers traffic spikes so consumers can process at their own pace
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CLF-C02 topics in this module