Section 19: Serverless overview Flashcards

(58 cards)

1
Q

Lambda pricing model

A

Per request and compute time

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

With Lambda how can you improve CPU and network

A

increase ram

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

AWS lambda supports these two languages

A

Node.js
Python

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

Main Lambda integrations

A

API Gateway
Kinesis
DynamoDB
S3
CloudFront
CloudWatch events
CloudWatch logs
SNS
SQS
Cognito

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

Lambda limits per region for memory allocation

A

128mb-10gb(1mb increments)

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

Lambda execution limits per region for max execution time

A

900 seconds(15 minutes)

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

Lambda execution limits per region for variables

A

4kb

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

Lambda execution limits per region for temp disk capacity

A

512mb to 10gb

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

Lambda execution limits per region for concurrent executions

A

1000(can be increased)

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

Lambda deployment limits per region for compressed deployment size

A

50mb

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

Lambda deployment limits per region for uncompressed deployment size

A

250mb

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

With lambda throttling synchronous invocation throttle will return this error

A

429

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

With lambda throttling asynchronous invocation throttle will return this error

A

retry automatically and then go to DLQ

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

With aws lambda this type of concurency can cause latency with new requests

A

cold start

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

With aws lambda you can use this concurrency to avoid cold starts

A

provisioned concurrency

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

A feature that improves your lambda functions performance to to 10x at no extra cost for java, python & .net

A

SnapStart

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

Two types of edge functions that cloudfront provides

A

cloudfront functions
Lamda@Edge

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

What type of requests from a client does cloudfront functions support?

A

Viewer request
Viewer response

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

What type of requests from a client does Lambda@Edge support?

A

Viewer request
Viewer response
Origin Request
Origin Response

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

Runtimes supported by CloudFront functions

A

Javascript

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

Runtimes supported by Lamda@Edge

A

Node.js
Python

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

Difference between CloudFront functions and Lamda@Edge in terms of # of requests per second

A

Cloudfront Functions = millions
Lambda@Edge = thousands

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

Cloudfront functions use cases

A

Cache Key normalization

Header manipulation

URL rewrites

Request authentication

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

Lamda2Edge use cases

A

Adjustable CPU or memory

3rd party code libraries

Network access to use external services for processing

25
Three benefits of an RDS proxy
Improves scalability by polling and sharing database connections Improves availability by reducing the failover time and preserving connections Improves security by enforcing IAM authentication
26
In regards to lambda working with RDS proxy, where do lambda functions need to be deployed?
In your own VPC. RDS proxies aren't publicy accessible
27
Invoking lambda functions from within your DB instance is supported by these two sql databases
RDS for PostgreSQL Aurora MySQL
28
To allow invoking of lambda functions from within your DB you must allow this and have this.
outbound traffic to your lambda function Required permissions to invoke the lambda function
29
RDS event notifications only give details about this but not this
Event about the database itself Not the data itself
30
Is a dynamo db SQL?
No
31
Dynamo DB peformance
single-digit millisecond
32
Dynamo is made of these?
Tables
33
Each dynamo db has this key
Primary
34
Max size of a Dynamo DB item?
400kb
35
Dynamo DB supported data types
Scalar Document Set Types
36
If using Dynamo DB you can rapidly evolve this
Schemas
37
Dynamo DB R/W capacity mode for predictable workloads
Provisioned mode
38
Dynamo DB R/W capacity mode for unpredictable workloads
On-Demand mode
39
With DynamoDB you can use this to solve read congestion
DynamoDB accelerator(DAX)
40
Dynamo DB streams retention
24 hours
41
Kinesis Data Streams retention
1 year
42
With dynamo DB this table is replicated across regions
Global
43
Dynamo DB Time to Live use cases
Web Session handling regulatory
44
DynamoDB PITR recovery time window range
1-35 days
45
DynamoDB backup for long-term retention
On-Demand backups
46
With this Dynamo DB backup you can have it configured and managed in AWS backup
On-Demand
47
To export a dynamo db data to S3 you must enable this
PITR(Point in time recovery)
48
API Gateway integrations
Lambda Functions HTTP AWS Services
49
This type of API gateway deployment is for global clients
edge optimized
50
This type of API gateway deployment is for clients expected to be in the same region
Regional
51
This type of API gateway deployment is for non public access only to your vpc
Private
52
This authentication service for API gateway can be used to authenticate external users
Cognito
53
A way to build a serverless visual workflow to orchestrate lambda functions
Step Functions
54
Sign in functionality for external aws app users
cognito user pools
55
Sign in functionality to allow external users to access aws recources directly
Cognito identity pools(Federated)
56
A serverless database of users for your web and mobile apps
Cognito user pool
57
Cognito users pools integrate with these two services
API Gateway Application Load Balancer
58