Lambda Flashcards

1
Q

T or F

Lambda is a computer service where you can upload your code and create a Lambda function.

A

True

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

T or F

Lambda takes care of provisioning and managing servers that you use to run the code.

A

true

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

T or F

With Lambda, you don’t have to worry about operating systems, patching, scaling, etc. You cna use Lambda in the following ways.

A

True

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

T or F

As an event driven compute service where AWS Lambda runs your code in response to events. These events could be changes to data in an AWS bucket or an AZ dynamoDB table.

A

True

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

T or F

As a compute service to run your code in response to HTTP requests using API GW or API calls made using AWS SDKs.

A

True

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

What languages does Lambda use?

  1. nodejs
  2. java
  3. python
  4. C#
  5. Go
A

All of the above

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

Pricing

T or F

of requests

first 1 million requests are free.

$.20 per 1 million requests thereafter

Duration is calculated from the time your code begins executing until it returns or otherwise temrinates, rounded up to the nearest 100ms. The price depends on the amount of money you allocate to your function. You are charged .00001667 for every GB-second used.

A

True

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

Why Lambda?

  1. no servers
  2. continuous scaling
  3. super cheap
A

all of the above

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

T or F

Lambda scales up not out automatically.

A

False

Lambda scales out (not up) automatically

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

T or F

Lambda functions are independent, 1 event = 1 function

A

True

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

T or F

Lambda is serverless

A

True

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

T or F

Lambda functions cannot trigger other lambda functions

A

false.

Lambda functions can trigger other lambda functions, 1 event can = x functions if functions trigger other functions.

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

T or F

Lambda can do things globally. You can use it to back up S3 to other S3 buckets.

A

true

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

WHen you use _____ in Lambda, you can publish one or more versions of your Lambda function. AS a result, you can work with different variations of your Lambda function in your development workflow, such as development, beta, and prod. Each Lambda function version has a unique ARN. After you publish, it is immutable (can’t be changed)

A

versioning

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

AWS Lambda maintains your latest function code in the ______ version. When you update your function code, AWS Lambda replaces the code in teh ____ version of teh Lambda code.

A

$LATEST

$LATEST

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

You can refer to this function using its ______. There are 2 _____ associated with this internal version.

A

ARN and ARNs (Amazon Resource Name)

17
Q

This function ARN wiht the version suffix

arn:aws:lambda:aws-region:acct-id:function:helloworld:$LATEST

A

Qualified ARN

18
Q

The function ARN without the version suffix:

arn:aws:lambda:aws-region:acct-id:function:helloworld

A

Unqualified ARN

19
Q

After initially creating a Lambda function (the $LATEWT version), you can publish a version 1 of it. By creating an _____ named PROD that points to version 1, you can now use the PROD alias to invoke version 1 of the Lambda function.

A

ALIAS

20
Q

How do you update Lambda’s in production.

A

You can update the code (the $LATEST version) with all of your improvements and then publish another stable version (V2). You can promote V2 to prod by remapping the PROD alias so that it paints to V2. If you find something wrong, you can easily roll back the prod version to V1 by remapping the PROD alias so that it points to V1.

21
Q

T or F

You can have multiple versions of Lambda functions

A

True

22
Q

T or F

The latest version of your Lambda will use $LATEST

A

True

23
Q

T or F

Qualified version will not use $LATEST, but the unqualified will use it.

A

False

The qualified version will use $LATEST, unqualified will not use it.

24
Q

T or F

Versions are immutable (can’t be changed)

A

True

25
Q

T or F

You can split traffic using alias to diff version

A

True

26
Q

T or F

you can’t split traffic with $LATEST, instead crete an alias to $LATEST

A

true

27
Q

This allows you to visualize and test your serverless apps.

A

Steps Functions

28
Q

_____ provides a graphical console to arrange and visualize the components of your app as a series of steps. This makes it simple to build and run multistep apps.

A

Step Functions

29
Q

_____ auto triggers and tracks each step and retries when there are errors, so your app executes in order and as expected. They also log the state of each step, so when things do go wrong, you can diagnose and debug problems quickly.

A

Step functions.

30
Q

T or F

Step functions are a great way to visualize your serverless application

A

True

31
Q

T or F

Step functions automatically trigger and tracks each step

A

True

32
Q

T or F

Step functions log the state of each step, so if something goes wrong, you can track what went wrong and where.

A

True

33
Q

sam =

A

serverless application model

34
Q

what does AWS SAM do?

A

it is a cloudformation extension optimized for serverless apps

functions, apis, tables.