Applications Flashcards

1
Q

What is CloudFormation?

A

A way of scripting your cloud environment. You can use quick start to use a bunch of cloudformation templates built by AWS solutions architects allowing you to create complex environments quickly

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

What is ElasticBeanstalk?

A

Automatically completes capacity provisioning, load balancing and scaling just add code!

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

What SQS?

A

Simple Queuing Service (pull based)

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

Why use SQS?

A

Allows you to decouple your infrastructure if allows messages to be sent and kept in a queue.

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

How long can messages in SQS be kept in a queue?

A

1 min to 14 days

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

What are the types of SQS?

A

1) Standard

2) FIFO

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

Is order guaranteed in Standard SQS?

A

No, order is not guaranteed and there can be duplications

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

Is order guaranteed in FIFO SQS?

A

Yes, order is strictly maintained and messages are delivered once and only once

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

What is visibility time out in SQS?

A

Visibility time out is the time that the messages in the SQS are invisible in the queue after a reader picks up that message

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

What happens in SQS when the job is processed before the visibility timeout expires?

A

The message will be deleted from the queue

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

What happens in SQS when a job is NOT process within the visibility timeout period?

A

The message will become visible in the queue again and another reader will process it

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

What is the maximum visibility time out in SQS?

A

12 hours

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

Does SQS guarantee that your message will be processed once?

A

Yes

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

What is SQS long polling?

A

A way to retrieve messages from your SQS queues. Long polling doesn’t return a response until a message arrives in the queue or the long poll times out

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

Why use SQS long polling?

A

It is cheaper

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

How does SQS short polling work?

A

Short polling returns a response immediately even if the message is empty

17
Q

What is SWF service?

A

Simple Workflow Service –> a way of managing workflows in the cloud

18
Q

What are the 3 actors in SWF service?

A

1) Workflow starters –> e.g. an app that can start initiate a workflow
2) Deciders –> Controllers of the flow of activity tasks in a workflow. e.g. is something has finished or has failed in a workflow then the decider decides what to do next
3) Activity workers –> Carry out activity tasks

19
Q

What is the retention period of tasks in SWF service?

A

up to 1 year

20
Q

What is the key difference between SQS and SWF?

A

SWF is a task oriented API where as SQS is message orientated

21
Q

Will SWF duplicate tasks?

A

No tasks are never duplicated and tasks are only ever processed once

22
Q

What is the main benefit of using SWF over SQS?

A

SWF tracks all tasks and events whereas SQS requires you to implement your own application level tracking especially if your application uses multi queues

23
Q

What is SNS?

A

Simple Notification Service (push based) it allows messaging capabilities for apps within AWS env. e.g. email, sms, etc…

24
Q

What are the benefits of using SNS?

A

1) Simple APIs and easy to integrate
2) inexpensive
3) Flexible message delivery methods

25
Q

What is the difference between SNS and SQS?

A

Both messaging, but SQS = pull (poll) SNS = push

26
Q

What is an Elastic transcoder?

A

Service that allows conversion of file formats e.g. media on tablets, mobile, mobiles e.t.c.

27
Q

What is API gateway?

A

AP gateway is a way to access your AWS infratructure

28
Q

Does API gateway have caching capability?

A

Yes, to improve performance

29
Q

What are the benefits of using API gateway?

A

1) Low cost and scales automatically
2) Can throttle API gateway to prevent attacks
3) Can log access to cloud watch

30
Q

What must you have enabled if you are using JS or AJAX that use multiple domains?

A

CORS –> Cross origin resource sharing. Must be enforced by clients browser

31
Q

What is Kinesis?

A

Kinesis is a mehod of capturing and analyzing data in real time

32
Q

What are the 3 types of kinesis?

A

1) Streams –> persists data for 24 hours. Sores in streams
2) Firehose –> analysis of data in real time. Uses lambda and stored in S3
3) Analytics –> Helps with analysis in both streams and firehose

33
Q

What is Cognito?

A

Allows users to authenticate users using a web identify provider e.g. Facebook, google or Amazon

34
Q

What are the 3 steps in Cognito authentication?

A

1) User authenticates with web identity provider
2) Cognito receives authentication token}
3) Token exchanged for temporary access to AWS credentials allowing them to access to assume an IAM role

35
Q

what is a user pool in Cognito?

A

User based. Used for user registration authentication, registration and account recover

36
Q

What is a identity pool in Cognito?

A

Authorizes access to your AWS resources