CloudGuild · Blog · Cheat sheets · Lessons · Certifications

Amazon SQS & SNS — Messaging and Notification Services: When to Use What (And How the Exam Tests It)

Learn when to use Amazon SQS and SNS for messaging and notifications, plus how to tackle related questions on the SAA-C03 exam.

In the world of cloud architecture, choosing the right messaging service is crucial. Amazon SQS and SNS serve different purposes, and understanding when to use each can impact your application’s performance and reliability.

When to Choose Amazon SQS

We opt for Amazon SQS when decoupling application components is necessary. This service excels in buffering workloads and ensuring message delivery with at-least-once guarantees. Use SQS when:

SQS Options: Standard vs. FIFO

Feature SQS Standard Queue SQS FIFO Queue
Delivery Guarantee At-least-once delivery Exactly-once processing
Order Unordered Ordered
Throughput Unlimited Limited to 300 transactions per second
Cost Generally lower Higher due to ordering guarantees

When to Choose Amazon SNS

Amazon SNS is ideal for scenarios where you need to push notifications to multiple endpoints. It supports fan-out messaging patterns, making it suitable when:

SNS Features

Key Architectural Decisions

Choosing between SQS and SNS involves considering key architectural decisions:

Gotchas & Exam Traps

Be aware of common pitfalls that can trip you up on the exam:

How the Exam Tests This

The SAA-C03 exam assesses your knowledge of SQS and SNS through specific patterns:

The Rule to Remember

Choose SQS for decoupling and reliable message delivery, and SNS for immediate notifications to multiple endpoints.

For further practice, Take the free SAA-C03 mock exam.

Take a free mock exam →