Applications Flashcards

1
Q

SQS - Simple Queuing system

A

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

Allows you to decouple the components of an app so they run independently

Messages can contain up to 256kb of text in any format

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

SQS queue types

A

Standard

FIFO

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

Standard queue type

A

default queue type

allows for nearly unlimited # of transactions per second

guarantee a message is delivered at least once

  • may be delivered out of order
  • may be delivered more than once

best effort ordering

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

FIFO queue

A

exactly once processing

sent order of messages preserved

limited to 300 transactions per second

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

SQS pull vs push

A

SQS is pull based, you need an EC2 instance pulling messages from the queue

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

SQS message retention period

A

1 minute to 14 days

default: 4 days

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

Visibility timeout

A

amount of time message is ‘invisible’ in queue after a reader picks up the message

If job is processed before timeout, job is deleted from queue. If not, it becomes visible and another reader will process it

timeout max: 12 hours

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

SQS long vs short polling

A

long polling: will wait until there is something to pull from the queue or timeout is reached

short polling: will return immediately, even if queue is empty

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

SWF - Simple workflow services

A

Way of coordinating work across distributed app components

tasks = invocations of processing steps that can be performed by code, web service calls, human actions, and scripts

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

SWF vs SQS

A

If there is human interaction -> use SWF

max retention period:

  • SQS = 14 days
  • SWF = 1 year

API

  • SQS = message oriented
  • SWF = task oriented
SQS = handle duplicated messages and ensure message only processed once
SWF = task assigned only once and Never duplicated
SWF = keeps track of all tasks and events in an app
SQS = need to implement own app-level tracking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SWF actors

A

workflow starter - app that can start a workflow

deciders - control the activity tasks in a workflow execution

activity workers - carry out the activity tasks

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

SNS - Simple notification service

A

makes it easy to set up, operate, and send notifications from the cloud

publishes messages from an app and immediately deliver them to subscribers or other apps

instant push-based delivery

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

SNS notification delivery

A

direct to mobile devices

via SMS or email to SQS queues or any HTTP endpoint

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

SNS topic

A

An access point for allowing recipients to subscribe for identical copies of the same notification

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

SNS vs SQS

A

both are messaging systems in AWS

SNS = push
SQS = pull/poll
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Elastic transcoder

A

media transcoder in the cloud

convert media files into different formats

17
Q

Kinesis

A

platform to send streaming data to

provides capability to load and analyst data

18
Q

kinesis types

A

kinesis streams

kinesis fireshose

kinesis analytics

19
Q

kinesis streams

A

stores data for 24 hours (default) up to 7 days

stores data in shards

Consumers (EC2 instances) access data in shards

20
Q

kinesis firehose

A

no consistent storage; no data persistence

need to process storage as data comes in

21
Q

kinesis analytics

A

works with streams and firehose

analyzes data in either streams or firehose on the fly w/in kinesis

22
Q

Web identify federation

A

lets you give users access to AWS resources after authenticating with an identity provider like amazon, facebook, or google

23
Q

Cognito

A

Amazons web identity federation service

provides temp creds that map to an IAM role

syncs user data for multiple devices

recommended for all mobile apps aws services

24
Q

Cognito recommended approach

A

user authenticates w/ facebook/google/etc
gets auth token
sends token to cognito
cognito provides access to AWS environment

25
Q

Cognito user pools

A

directories used to manage sign-up and sign-in functionality

email address/password

26
Q

JWT - JSON web token

A

generated by a successful authentication

27
Q

Cognito identity pools

A

provide temp AWS creds to access AWS services like S3 or dynamoDB

actual granting of access to AWS resources

28
Q

Cognito syncing

A

push syncing to push updates and sync user data across multiple devices

Works via SNS

29
Q

DLQ - dead letter queue

A

like a lost and found for unclaimed messages

SNS - messages failed to deliver are sent to an SQS queue and held for analysis/reprocessing

SQS - messages sent to SQS that exceed the queues maxReceiveCount

Lambda - when failure occurs, will retry twice. If still failing, will send to DLQ

30
Q

Fanout patter

A

send a message to an SNS topic and have multiple SQS queues pull from the single SNS topic

31
Q

S3 event notifications

A

allows you to receive notifications when certain events happen in a bucket

Can send to: SQS, SNS, Lambda

Can use filters

May miss an event notification -> enable versioning

32
Q

S3 events that can trigger event notification

A
Object created
Object removed
Object restored
RRS Object lost 
Replication
-failure
-exceed 15 min