Application Services Flashcards

1
Q

What is SQS?

A

A message queue to de-couple applications

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

Is SQS pull or push based?

A

pull

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

What is the size of SQS messages?

A
  1. Can be up to 2gb, but need to use S3.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the SQS visibility timeout max?

A

12 hours

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

How long can SQS messages stay in queue?

A

1 min to 14 days. Default is 4 days

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

What is the SQS visibility timeout?

A

Amount of time that a message is invidible in queue after a reader picks up that message

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

What happens if an SQS job processes a message before the invisibility time out expires?

A

The message should be deleted from the queue by the job worker.

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

What happens if an SQS job does not complete before the visibility time out expires?

A

The message becomes visible again for another reader to process

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

What is the difference between SQS short and long polling?

A

Short polling will return a response immediately even if the queue is empty.

Long polling doesn’t return a response until a message arrives in the queue.

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

What are the SQS queue types?

A

FIFO or standard

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

What is the max retention for SWF?

A

1 year

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

Which message service presents a task orientated API?

A

SWF

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

Which message service offers a message orientated API?

A

SQS

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

Which message service ensure that a task is assigned only once and is never duplicated?

A

SWF

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

Which message service keeps track of events?

A

SWF

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

Which service requires application level tracking?

A

SQS

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

What are the three SWF actors?

A

Workflow starter

Deciders

Activity worker

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

What are SNS subscribers?

A

Subscribers are clients interested in receiving notifications from topics of interest; they can subscribe to a topic or be subscribed by the topic owner. Subscribers specify the protocol and end-point (URL, email address, etc.) for notifications to be delivered.

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

Which is a push based message service?

A

SNS

20
Q

What is elastic transcoder?

A

media transcoder in the cloud

21
Q

What are the three kinesis types?

A

stream

firehose

analytics

22
Q

What is kinesis streams?

A

Kinesis streams accepts streaming data and breaks up it into shards for each type of data. EC2 data consumers analyze the data inside the shards and outputs it to DynamoDB/S3/EMR/Redshift/etc…

23
Q

What is kinesis firehose?

A

Amazon Kinesis Data Firehose is the easiest way to load streaming data into data stores and analytics tools. It can capture, transform, and load streaming data into Amazon S3, Amazon Redshift, Amazon Elasticsearch Service, and Splunk, enabling near real-time analytics with existing business intelligence tools and dashboards you’re already using today. It is a fully managed service that automatically scales to match the throughput of your data and requires no ongoing administration. It can also batch, compress, and encrypt the data before loading it, minimizing the amount of storage used at the destination and increasing security.

24
Q

What service decouples application components to run independently?

A

SQS

25
Q

Which SQS queue type would you use if you need unlimited messages and best effort ordering?

A

standard

26
Q

Which SQS queue type would you use if you need unlimited messages and correct ordering?

A

FIFO

27
Q

Is SQS pull or push based?

A

Pull

28
Q

What AWS application service would you use to coordinate work across applications?

A

SWF

29
Q

What SWF component interacts with SWF to get tasks?

A

Workers

30
Q

What SWF component controls coordination of tasks

A

Deciders

31
Q

What SWF component would you use to isolate SWF worflows

A

Domains

32
Q

What AWS application service would you use to send notifications from the cloud to SMS or email?

A

SNS

33
Q

What AWS application service would you use to transcode media?

A

Elastic transcoder

34
Q

What AWS application service would you use to manage APIs?

A

API gw

35
Q

Can API gateway provide caching to improve performance?

A

Yes

36
Q

What AWS application service would you send streaming data to for analysis?

A

kinesis

37
Q

Which kinesis service would you use to accept data from multiple sources to store for 24 hours to 7 days that are then forwarded to consumers?

A

Streams

38
Q

Which kinesis service would you use to accept data from multiple sources to analyze in real time to then store in S3?

A

Firehose

39
Q

Which kinesis service would you use to perform SQL queries on kinesis streams or firehose?

A

analytics

40
Q

What is cognito

A

Provides login federation using FB, google , amazon

41
Q

How does cognito work?

A

Authenticates with web ID provider, recieve temporary token, exchange with AWS credentials to provide access by allowing them to assume role

42
Q

What is a cognito user pool?

A

User Pools are user based.

It handles things like user registration, authentication, and account recovery.

43
Q

What service does cognito identity pools provide?

A

Identity Pools provide temporary AWS credentials to access AWS services like S3 or DynamoDB.

44
Q

What is the difference between SNS and SQS?

A

SNS is a push notification service, whereas SQS is message system that requires worker nodes to poll a queue.

45
Q

What happens when you create a topic on Amazon SNS?

A

An Amazon Resource Name is created.

46
Q

What SNS Subscription endpoint Protocols are available?

A

HTTP/HTTPS (URL)

email (text)/email (json)

SQS Standard Queue

SMS Text messages