Applications Services Summary Flashcards

1
Q

SQS is an important part of the exam. What is it?

Read the FAQ’s for it

A

Pull-based message queuing system

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

Size of SQS messages?

A

256KB

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

What’s the visibility timeout for SQS?

A

Amount of time message is marked as invisible in the queue after a reader picks it up.

Message is deleted from queue if job is processed before timeout expires.

Otherwise message becomes visible again so another reader can process it.

Can result in same message delivered twice

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

How long can messages stay in the queue?

A

default is 4 days

can configure from 1 minute to 14 days

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

What is the visibility timeout maximum?

A

12 hours

If you need store messages longer than that, don’t use SQS

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

Does SQS guarantee messages will be processed at least once?

A

yes

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

How does long polling differ from short polling?

A

short polling returns immediately but constantly polls the queue even if queue is empty

Long polling doesn’t return a response until a message is in the queue, or until long poll times out

Long polling can cost less than short polling

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

What are 2 types of SQS Queues?

A

Standard and FIFO

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

Retention Period for SWF vs SQS

A

SQS - 14 days

SWF - 1 year

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

API difference of SWF vs SQS

A

SWF - task-oriented

SQS - message-oriented

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

How do SWF and SQS deal with duplicated messages?

A

SWF ensures task only assigned once

SQS can have duplicated messages, you need to handle it

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

Compare tracking in SWF vs SQS

A

SWF Tracks all tasks and events

SQS you need to do your own trackingt

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

3 types of actors

A

Workflow Starter - application that starts a workflow

Deciders - Controls flow of tasks in workflow execution. If something finishes in workflow, decider chooses what to do next

Activity Workers - carries out activity tasks

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

Types of SNS Subscribers

A
http, https
email
email-JSON
SQS
Application
Lambda function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

SNS vs SQS

A

Both are messaging services in AWS

SNS - push based
SQS - pull based (polls)

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

What is elastic transcoder?

A

media transcoder in the cloud

pay based on minutes you transcode and resolution

17
Q

Core Kinesis Services

A

Streams
Firehose
Analytics

18
Q

Streams

A

data producers send data to streams

streams split into shards

shards pipe data to consumers (EC2 instances)

19
Q

Firehose

A

data producers send data to firehose

can query data with lambda
firehose sends data straight to S3

20
Q

Analytics

A

Lets you do SQL queries on streams or firehose