SQS & SNS & SWF Flashcards

1
Q

SQS Visibility Time Out

A

12 Hrs

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

FIFO

A

Does not Offer FIFO. First In First Out. Although in the latest update it does.

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

SQS Message Delivery

A

Will attempt at least once to deliver all message in it’s queues.

Your system should be able to handle the same message multiple times.

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

SQS Max Size

A

256KB

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

SQS Pricing Model

A

1st million SQS requests per month are free.

50 cent per million requests per month afterwards.

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

SQS How many messages can a request send.

A

1-10 messages with a max size of 256KB

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

SQS How is it billed

A

Billed by 64KB chunk.

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

SQS Message order

A

Any order and received multiple times.

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

SQS Default Visibility Time Out

A

30 Seconds.

Can be extended by using the ChangeMessageVisibility Action.

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

SQS Max Time Out. Maximum Visibility.

A

12 Hours

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

SQS Long Polling

A

Doesn’t return a response until a message arrives in the Queue.

Cheaper

Times out in 20 seconds.

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

SQS Fanning Out

A

SNS topic is created. Then SQS queues the SNS topic. Messages sent to SNS will be fanned out to SQS Queues.

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

Maximum Retention Period

A

14 Days.

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

What is SNS

A

Simple Notification Service. WS sends notification from the cloud.

No polling and pushes notifications to subscribers.

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

SNS Topic

A

Access point allowing recepients to subscribe to copies of the same message. SNS formats themessage to the platform.

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

SNS Pricing Model

A
  • 50¢ per million requests
  • 6¢ per 100k HTTP
  • 75¢ 100k messages over SMS
  • $2 per 100k message over EMAIL
17
Q

SNS Protocols

A

HTTP(S),Email, SQS (Fanning), Application, Lambda

18
Q

What is SWF

A

WebService that coordinates multiple tasks across application components.

Consists of the following:
1- Domains
2- Workers
3- Deciders

19
Q

SWF Workers

A

Programs that interact with SWF to get tasks, process received tasks, and return results.

20
Q

SWF Decider

A

Program that controls coordination of tasks

21
Q

WorkFlow Maximum Timeout

A

1 year

22
Q

SWF vs SQS

A

Use SWF if it envolves Human Interaction (ie Warehouse example).

Maintains application state (SWF keeps track of all your tasks.)

23
Q

SQS Quiz Question: Polling is burning CPU Cycles and costing your company money. How do you reduce the costs?

A

Long Polling to 20 seconds. That way the queue holds on to a request for 20 seconds at a time rather than every 2 seconds before responding. 1 min = 3 responses otherwise 1 min = 30 responses.

24
Q

SQS: What Does ReceiveMessageWaitTime do?

A

set short and long polling

25
Q

SQS: What does ChangeMessageVisibility do?

A

used to request or extend more time before timeout.

26
Q

SNS - What command to use to get multiple device tokens

A

CreatePlatformEndpoint API