SNS SNS SWF Flashcards

1
Q

What is SQS?

A

Web service that gives access to a message queue to store messages while waiting for a computer to process them

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

SQS Message size

A

Up to 256Kb of text in any format

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

Downside of SQS

A

Not guaranteed first in first out

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

How does SQS pull task messages from the queue?

A

Asynchronously, receives named file, processes, completes and deletes

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

SQS timeout

A

12 hours visibility

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

SQS Billing size

A

at 64Kb chunks

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

Pricing for SQS

A

First million free per month

$.5 per 1 million each moth

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

SQS Default message visibility

A

30 seconds

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

To change visibility time

A

Use the ChangeMessageVisibility action to specify timeout time

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

Long polling

A

Way to retrieve messages, but doesn̥t until the poll times out.
For example ec2 sends a message to see if there are messages

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

Maximum long poll timeout

A

20 seconds

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

Polling in tight loops is burning CPU cycles and costing the company money, how would you fix this?

A

Long polling

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

Fanning out

A

Using SNS to pass along SQS messages to other SQS streams

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

SQS was the first service on the AWS platform?

A

TRUE

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

SQS What is the default visibility time out setting?

A

30 seconds

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

TF An SQS message can be delivered multiple times.

A

TRUE

17
Q

You are designing a new application which involves processing payments and delivering promotional emails to customers. You plan to use SQS to help facilitate this. You need to ensure that the payment process takes priority over the creation and delivery of emails. What is the best way to achieve this.

A

Use 2 SQS queues first with a priority for payments

18
Q

Your EC2 instances download jobs from the SQS queue, however they are taking too long to process them. What API call can you use to extend the length of time to process the jobs?

A

ChangeMessageVisibility

19
Q

What is the maximum long poll timeout?

A

20 seconds

20
Q

What amazon service can you use in conjunction with SQS to fan out” SQS messages to multiple queues.”

A

SNS

21
Q

SNS SF

A

Simple Notification Services

22
Q

SNS is

A

Mechanism for push notification system

23
Q

Differences of SNS and SQS

A

SQS pull/polls

SNS pushes

24
Q

SNS recipient grouping

A

Recipients are groups in topics

25
Q

SNS topics

A

Top is an access point for allowing recipients to dynamically subscribe to the same notification

26
Q

SNS Pricing

A

.50 per 1 million on SNS
.06 per 100K over HTTP
.75 per 100 on SMS
2.00 per 100k over email

27
Q

SNS General Data type

A

JSON

28
Q

TF SNS is pull based rather than push based?

A

FALSE

29
Q

SWF SF

A

Simple workflow service

30
Q

SWF Function

A

Coordinate work across distributed applications

31
Q

SWF Workers

A

Programs that get tasks, process and return results

32
Q

SWF Decider

A

Controls the coordination of tasks

33
Q

Biggest difference between SWF and SQS

A

In SWF the tasks are only deployed once every time

34
Q

SWF Domains

A

Parameters in JSON format sent to SWF

35
Q

TF

SWF consists of a domain, workers and deciders?

A

TRUE

36
Q

Maintaining your application̥s execution state (e.g. which steps have completed, which ones are running, etc.) is a perfect use case for SWF.

A

TRUE