Application Services Flashcards
What is Kinesis Analytics?
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
What is Kinesis
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 long can SQS messages be kept in the queue?
From 1 minute to 14 days, with a default of 4 days
If an SQS queue is producing messages faster than resources can consume them, what can you do?
Create an autoscaling group triggered by the number of messages in the queue to automatically scale up or down
What is the file format of SNS messages?
JSON
How are SWF Domains stored?
They are JSON files
How long do shards remain in Kinesis Streams?
24 hours (default) up to 7 days
How many transactions per second can be processed by a standard SQS queue?
Nearly unlimited
What is SQS Long Polling?
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
Is SQS pull or push based?
SQS is pull based, meaning the consuming resources are pulling messages from the queue
How many transactions per second can be processed by a fifo SQS queue?
300 per second
What do you do if API Gateway gives an error regarding the Same Origin Policy?
CORS must be enabled on the API Gateway
How do you prevent service attacks to API Gateway?
You can enable throttling in API Gateway
Is SNS pull or push based
SNS is push based, meaning it “pushes” notifications to consuming services such as email, text, CloudWatch, etc
What are the two types of SQS queues?
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
True or false: API Gateway requests can be logged in CloudWatch
True
What is SNS?
Simple Notification Service - Used to deliver notifications, such as CloudWatch alerts or emails, to subscribers based on conditions in AWS
What is Elastic Transcoder?
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
What is the Same Origin Policy?
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
Explain API Gateway caching
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
What are some indicators that a process should be using SWF instead of SQS?
Is there any human interaction?
Are there multiple interrelated steps to a single process?
What is a SWF Domain?
A set of tasks that make up a single workflow. You register SWF domains
Explain Kinesis Streams
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.
What are the different types of SWF actors?
Workflow Starters - An application that initiates a workflow
Workers - perform workflow tasks
Deciders - control the flow of activity in a workflow