SAM Flashcards

1
Q

What can SAM help you run locally?

A

Lambda, API Gateway, DynamoDB

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

How can SAM deploy Lambda functions?

A

Using CodeDeploy

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

What in the template indicates it is a SAM template?

A

Transform Header: Transform: ‘AWS::Serverless-2016-10-31’

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

What command packages and deploys?

A

sam deploy

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

How can you Quickly sync local changes to AWS Lambda without re-deploying infrastructure?

A

sam sync –watch

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

What are the important features of SAM Deploy?

A

SAM framework natively uses
CodeDeploy to update Lambda
functions
* Traffic Shifting feature
* Pre and Post traffic hooks
features to validate deployment
(before the traffic shift starts and
after it ends)
* Easy & automated rollback using
CloudWatch Alarms

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

What command Locally Invokes a Lambda Function?

A

sam local invoke

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

When using sam local invoke, if the function makes API calls to AWS, what do you need to do?

A

use the correct –profile option

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