Section 16: AWS Serverless: SAM - Serverless Application Model Flashcards

1
Q

What does SAM stand for?

A

Serverless Application Model

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

In what language are SAM templates?

A

YAML

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

What differentiate a classic CloudFormation template from a SAM template?

A

The SAM template has a

Transform: โ€˜AWS::Serverless-2016-10-31โ€™

line in the template

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

What AWS resources does SAM help you deploy?

A

API Gateway
Lambda
DynamoDB
etc.

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

Where is the code uploaded to when deploying with SAM?

A

S3

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

Where does the CodeUri property of the definition of a Lambda function in the initial SAM template points to?

A

The directory containing the file which contains the handler method

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

Where does the CodeUri property of the definition of a Lambda function in the generated SAM template points to?

A

The code uploaded and encrypted to S3

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

What are the two commands to package/deploy SAM templates?

A

aws cloudformation package / sam package

aws cloudformation deploy / sam deploy

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

What are SAM Policy templates?

A

They are pre-made templates to apply permissions to your Lambda Functions (Those policies will be inline)

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

What is AWS SAM?

A

The AWS Serverless Application Model (AWS SAM) is an open-source framework that you can use to build serverless applications on AWS.

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