SNS 알림

애플리케이션 통합 연관 문항 41개

발행-구독 알림. 하나의 메시지를 여러 대상에 팬아웃

이게 뭔가요? / What is this?

SNS는 저장소가 아니라, 메시지 하나를 여러 구독자에게 동시에 뿌려주는 발행-구독 방식의 관리형 알림 서비스입니다. 하나의 공지를 확성기로 방송하거나 단체 우편 발송 명단에 동시에 보내는 것과 같아서, 구독하고 있는 모든 대상(큐·이메일·문자 등)이 같은 메시지를 한 번에 받습니다.

개요 / Overview

SNS는 토픽에 발행된 메시지를 여러 구독자(SQS 큐, Lambda, HTTP, 이메일, SMS)에게 동시에 보냅니다. "한 이벤트를 여러 시스템이 각자 처리해야 한다"는 문제의 정답입니다.

동작 원리 / How it works

SNS는 발행-구독 모델입니다. 발행자가 토픽에 메시지를 올리면 모든 구독자에게 밀어 보냅니다(푸시). 구독자는 SQS 큐, Lambda, HTTP/S 엔드포인트, 이메일, SMS, 모바일 푸시가 될 수 있습니다. 구독별 필터 정책을 걸면 관심 있는 메시지만 받게 해 불필요한 호출을 줄입니다.

푸시 모델이라 구독자가 느리면 재시도가 일어나고, 최종적으로 실패하면 유실될 수 있습니다. 그래서 신뢰성이 필요하면 SNS 토픽에 SQS 큐를 구독시켜 큐가 버퍼 역할을 하게 합니다 — 이것이 팬아웃 패턴이 SNS 단독보다 자주 정답인 이유입니다.

시험은 무엇을 보는가 / What the exam is testing

시험 신호는 "하나의 이벤트를 여러 시스템이 각자 처리해야 한다"입니다. 여기에 "유실되면 안 된다"가 붙으면 SNS + SQS 팬아웃이 정답이 됩니다.

시험 포인트 / Exam points

팬아웃 패턴

SNS 토픽에 여러 SQS 큐를 구독시키면 각 소비자가 자기 속도로 처리하면서도 메시지를 잃지 않습니다. 시험의 대표적 정답 구조입니다.

SQS와의 구분

SQS는 하나의 메시지를 하나의 소비자가 가져가는 큐, SNS는 하나의 메시지를 모든 구독자가 받는 브로드캐스트입니다.

메시지 필터링

구독마다 필터 정책을 걸어 관심 있는 메시지만 받게 할 수 있어 불필요한 처리를 줄입니다.

자주 틀리는 함정 / Common traps

고객에게 보내는 대량 서식 메일에 SNS를 고르는 것 — SES가 정답입니다. SNS 이메일은 운영 알림용입니다.

📝 이 개념 문제 풀기

Amazon SNS

Integration 41 related questions

Publish-subscribe notifications fanning one message out to many targets

이게 뭔가요? / What is this?

SNS is not a storage service — it is a managed publish-subscribe notification service that broadcasts one message to many subscribers at once. It is like announcing something over a loudspeaker or sending one mailing to an entire distribution list: every subscriber (queues, email, SMS, and more) receives the same message simultaneously.

개요 / Overview

SNS delivers a message published to a topic to many subscribers at once — SQS queues, Lambda, HTTP, email, or SMS. It answers "several systems must each handle the same event".

동작 원리 / How it works

SNS is publish-subscribe: a publisher posts to a topic and SNS pushes to every subscriber. Subscribers can be SQS queues, Lambda, HTTP/S endpoints, email, SMS, or mobile push. Per-subscription filter policies deliver only relevant messages, cutting wasted invocations.

Because it pushes, a slow subscriber triggers retries and an ultimate failure can lose the message. So when reliability matters, subscribe SQS queues to the topic and let them buffer — the reason the fan-out pattern beats bare SNS in most correct answers.

시험은 무엇을 보는가 / What the exam is testing

The signal is "several systems must each handle the same event". Add "must not be lost" and the answer becomes SNS with SQS fan-out.

시험 포인트 / Exam points

The fan-out pattern

Subscribing several SQS queues to one SNS topic lets each consumer work at its own pace without losing messages — a signature exam answer.

Versus SQS

SQS is a queue where one consumer takes each message; SNS is a broadcast where every subscriber receives it.

Message filtering

Per-subscription filter policies deliver only relevant messages, cutting wasted processing.

자주 틀리는 함정 / Common traps

Choosing SNS for bulk formatted customer email — SES is the answer; SNS email is for operational alerts.

📝 Practice this concept

AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.