SNS Flashcards

1
Q

What is SNS?

A

Amazon Simple Notification Service (SNS) is a highly available, durable, secure, fully managed pub/sub messaging service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many event receivers can you define on SNS?

A

A lot (10 000 000 per topic)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do the event subscriptors listen to?

A

To an SNS topic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Who sends messages to an SNS topic?

A

The event publisher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What messages will get an SNS event subscriber?

A

all the messages in the topic (can filter)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many topics can you define on SNS?

A

A lot (100 000)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the possible SNS subscribers?

A
  • SQS
  • HTTP / HTTPS (with delivery retries – how many times)
  • Lambda
  • Emails
  • SMS messages
  • Mobile Notifications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What services can send data directly to SNS?

A

Many AWS services can send data directly to SNS for notifications
• CloudWatch (for alarms)
• Auto Scaling Groups notifications
• Amazon S3 (on bucket events)
• CloudFormation (upon state changes => failed to build, etc)
• Etc…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can you publish to SNS within your AWS server

A

Using SDK or CLI:
• Create a topic
• Create a subscription (or many)
• Publish to the topic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What can you use to publish to SNS for mobile apps SDK?

A
Direct Publish
o	Create a platform application
o	Create a platform endpoint
o	Publish to the platform endpoint
o	Works with Google GCM, Apple APNS, Amazon ADM…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Fan Out?

A
  • Push once in SNS, receive in all SQS queues that are subscribers
  • Fully decoupled, no data loss
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How is encryption in SNS?

A

o In-flight encryption using HTTPS API (Enabled by default)
o At-rest encryption using KMS keys (Disabled by default)
o Client-side encryption if the client wants to perform encryption/decryption itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How is SNS access regulated?

A
  • IAM policies to regulate access to the SNS API

- SNS Access Policies (similar to S3 bucket policies)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is useful for SNS Access Policies?

A

o Useful for cross-account access to SNS topics

o Useful for allowing other services (S3…) to write to an SNS topic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What limitation is present in Fan Out pattern?

A

SNS cannot send messages to SQS FIFO queues (AWS limitation)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a common case scenario for Fan Out pattern?

A
  • For the same combination of: event type (e.g. object create) and prefix (e.g. images/) you can only have one S3 Event rule
  • If you want to send the same S3 event to many SQS queues, use fan-out