AWS Cloud Developer: Serveless Introduction Flashcards

1
Q

Faas

A

FaaS : Function as a service: write code in individual functions and deploy them to a platform to be executed

Split application into small functions
Event driven
Pay per invocation
Rest is handled by a cloud provider

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

Serverless Components

A

FaaS : Function as a service: write code in individual functions and deploy them to a platform to be executed

Datastores: Storage of data

Messaging: Send messages from one application to another

Services: Services that provide functionalities where we don’t need to manage servers; i.e. authentication, ML, video processing

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

popular use cases for FaaS

A
mobile/web backends
Real-time streaming
files processing
services glue
-receiving events from services
-interact with other services accordingly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

lambda function

A

a single function connected to an event source running in AWS Lambda.

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

What parameters can we directly configure for an AWS Lambda function?

A

Amount of RAM

Function timeout

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

AWS Lambda limitations

A

At most 3GB of memory per execution

Functions can run no more that 15 minutes

Can only write files to /tmp folder

Limited number of concurrent executions(1000 by default)

Event size up to 6 MB

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

The downside of using lambda functions

A

Lamda function are volitile meaning, they only linger for 15 minutes after use. Even during continues use, environments are rotated every 4 hours. This means that lambda environments cannot maintain state or persistant connections.

State needs to be stored with other services such as databases

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

How many concurrent executions can a lambda function run?

A

1000

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

3 common lambda invocation types

A

Request/response
Asynchronous invocation
Using AWS CLI

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

When is an event sent to a Lambda function added to a Dead Letter Queue?

A

if an asynchronous invocation fails after three unsuccessful attempts

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