SAM Flashcards

1
Q

What is SAM?

A

The AWS Serverless Application Model (SAM) is an open-source framework built on CloudFormation for building serverless applications

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

How is all configuration written in SAM?

A

YAML code

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

What can Serverless Application Model (SAM) use to deploy Lambda Functions?

A

CodeDeploy

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

What are the required sections of SAM?

A

SAM requires the Transform and Resources sections

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

What supports SAM from CloudFormation?

A

Supports anything from CloudFormation: Outputs, Mappings, Parameters, Resources…

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

What can help you to run Lambda, API Gateway and DynamoDB locally?

A

SAM can help you to run Lambda, API Gateway, DynamoDB locally

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

What are SAM commands to know?

A

Commands to know:
o sam build
o sam package
o sam deploy

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

What is used for SAM command sam build?

A

sam build: fetch dependencies and create local deployment artifacts

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

What is used for SAM command sam package?

A

sam package / aws cloudformation package: package and upload to Amazon S3, generate CF template

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

What is used for SAM command sam deploy?

A

sam deploy / aws cloudformation deploy: deploy to CloudFormation

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

How can you define IAM policies in SAM?

A

SAM Policy templates for easy IAM policy definition

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

What are main SAM Types?

A

o Type: AWS::Serverless::Function // Lambda
o Type: AWS::Serverless::Api // API Gateway
o Type: AWS::Serverless::SimpleTable // DynamoDB

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