Application Services Flashcards

1
Q

What is Kinesis Analytics?

A

Service which allows you to run SQL queries against data inside Kinesis Streams or Firehose, and then use the query to store the data in S3, Redshift, or an Elasticsearch Cluster

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

What is Kinesis

A

It used to consume huge amounts of data. A platform in AWS to send your streaming data to. Kinesis makes it easy to load and analyze streaming data, and allows you to make custom applications.

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

How long can SQS messages be kept in the queue?

A

From 1 minute to 14 days, with a default of 4 days

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

If an SQS queue is producing messages faster than resources can consume them, what can you do?

A

Create an autoscaling group triggered by the number of messages in the queue to automatically scale up or down

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

What is the file format of SNS messages?

A

JSON

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

How are SWF Domains stored?

A

They are JSON files

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

How long do shards remain in Kinesis Streams?

A

24 hours (default) up to 7 days

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

How many transactions per second can be processed by a standard SQS queue?

A

Nearly unlimited

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

What is SQS Long Polling?

A

It is a way to retrieve messages from a queue that might be empty. With regular polling, SQS returns an immediate response, but with long polling, SQS doesn’t return a response until a message arrivesor the long polling time out

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

Is SQS pull or push based?

A

SQS is pull based, meaning the consuming resources are pulling messages from the queue

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

How many transactions per second can be processed by a fifo SQS queue?

A

300 per second

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

What do you do if API Gateway gives an error regarding the Same Origin Policy?

A

CORS must be enabled on the API Gateway

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

How do you prevent service attacks to API Gateway?

A

You can enable throttling in API Gateway

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

Is SNS pull or push based

A

SNS is push based, meaning it “pushes” notifications to consuming services such as email, text, CloudWatch, etc

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

What are the two types of SQS queues?

A

1`. Standard queue (default) - A message is guaranteed to be delivered, but there might occasionally be a duplicate, and it has best-effort ordering, so messages may not be processed in the order they were sent
2. Fifo queues - Guarantees messages will be processed in the same order they were sent and exactly once

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

True or false: API Gateway requests can be logged in CloudWatch

A

True

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

What is SNS?

A

Simple Notification Service - Used to deliver notifications, such as CloudWatch alerts or emails, to subscribers based on conditions in AWS

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

What is Elastic Transcoder?

A

A media transcoder in the cloud. It allows you to convert media files from an original source format to different formats that work on other devices

19
Q

What is the Same Origin Policy?

A

A common web application concept. Under this policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both pages have the same origin

20
Q

Explain API Gateway caching

A

Responses from requests to API Gateway can be cached for a specified TTL time. If the same request comes in within that time, API Gateway returns the cached response, preventing another ping to the endpoint

21
Q

What are some indicators that a process should be using SWF instead of SQS?

A

Is there any human interaction?

Are there multiple interrelated steps to a single process?

22
Q

What is a SWF Domain?

A

A set of tasks that make up a single workflow. You register SWF domains

23
Q

Explain Kinesis Streams

A

Sources, such as mobile devices, computers, EC2 instances, IoT devices, send data into Kinesis Streams. Data is stored in Shards. You then have EC2 instances that are data consumers, that do processing on the shards, then they send the data to DynamoDB, S3, EMR, Redshift, etc.

24
Q

What are the different types of SWF actors?

A

Workflow Starters - An application that initiates a workflow
Workers - perform workflow tasks
Deciders - control the flow of activity in a workflow

25
Q

What is the maximum retention period for an SWF workflow?

A

1 year

26
Q

What are some differences between SQS and SWF?

A

SQS is messae-oriented, SWF is task-oriented
SWF guarantees tasks will br processed exactly once. SWF monitors the progress of tasks and execution state. With SQS you have to keep track of this yourself

27
Q

How do components retrieve SQS messages?

A

Using the SQS API

28
Q

What is API Gateway?

A

It’s a portal for collecting HTTP requests and forwarding them to some internal process such as a Lambda function or EC2 Instance

29
Q

What is SWF?

A

Simple Workflow Service. A service which lets you create a workflow of discrete steps that will be processed in sequence and that can span multiple resources.

30
Q

How large can SQS messages be, and what can they contain?

A

they can be any text format and up to 256 Kb

31
Q

What is SQS Visibility Time Out?

A

The amount of time a message in invisible in the queue after it was picked up. If the message is processed, it is deleted. If not, it becomes visible in the queue again. The Visibility Time Out determines how long SQS will leave a message in the invisible state

32
Q

What is an SNS Topic?

A

A collection of subscribers which can have multiple endpoint types. SNS can send a message to a topic, then all the subscribers to the topic will receive that message in whatever format needed

33
Q

What is the SQS Visibility Time Out maximum?

A

12 hours

34
Q

What are the three core Kinesis services?

A

Kinesis Streams
Kinesis Firehose
Kinesis Analytics

35
Q

True of false: SQS guarantees that every message will be processed at least once

A

True. With Fifo queues it guarantees it will be processed exactly once

36
Q

What is SQS?

A

Simple Query Service. Gives access to a message queue that can be used to queue messages that one component in the application generates to be consumed by another component

37
Q

What are shards?

A

Individual piece of data received by Kinesis Streams and stored in EC2 instances for processing

38
Q

What is streaming data?

A

Data that is generated continuously by thousands of data sources, in many very small packets. Examples includes social media, online gaming, Uber, IoT sensor data

39
Q

What is Kinesis Firehose?

A

Service which consumes streaming data, then automatically processes it using Lambda and sends it off to S3

40
Q

How is SNS charged?

A

Pay-as-you-go, depending on delivery method. Email is more expensive than text, which is more expensive than HTTP etc.

41
Q

What is the difference between Kinesis Streams and Kinesis Firehose?

A

Streams collects data in shards, which are then consumed by EC2 resources for processing. Firehose automates the processing of streaming data

42
Q

True or false: API Gateway scales automatically

A

True

43
Q

What are some possible SNS endpoints?

A
HTTP/S
Email, Email-JSON
SQS
Text messages (SMS)
Lambda functions