2-Serverless Flashcards

1
Q

How is Lambda charged?

A

You pay per request and by duration (rounded up to 100ms)

Duration pricing is based on memory allocation

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

How can Lambda versions be managed?

A

Once a version is created, it is immutable.

Therefore, create aliases and change the version that they reference

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

How is the most recent Lambda version denoted?

A

It automatically has the $LATEST alias applied to it

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

What is the ARN for a Lambda function?

A

arn:aws:lambda:[region]:[account]:function:[name]:[version/alias]

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

How can traffic to Lambda functions be split?

A

Based on aliases. Note that traffic can’t be split on the $LATEST alias

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

What is a key requirement for custom API Gateway domains?

A

They must have an SSL/TLS certificate defined in the AWS Certificate Manager

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

What protocols does API Gateway support?

A

It’s usually used with REST but can be configured as a SOAP passthrough

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

In the context of API Gateway, how does CORS work?

A

Setting a CORS policy defines the result of the OPTIONS call the client makes when considering whether to accept resources from that API

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

How can API Gateways be automatically configured?

A

The API Gateway Import feature allows Swagger v2 files to be imported

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

What are the default limits for API Gateway

A

A maximum of 10,000 requests per second to a single Gateway

Not more than 5,000 concurrent requests across a whole account

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

What happens if the API Gateway throttling limits are exceeded?

A

It returns Error 429: Too many requests

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

What are Step Functions?

A

A service to coordinate components in a serverless application. It retries if any errors occur

Three step types are supported: sequential, branching and parallel

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

What is Amazon X-Ray?

A

A service that collects data about an application and the AWS services / web services it uses

It integrates with ELB, Lambda, API Gateway, EC2 and Elastic Beanstalk

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