SAM Flashcards

This deck aims to help retain concepts related to the AWS SAM framework.

1
Q

What is the AWS open-source framework for building serverless applications, provides shorthand syntax to define functions, APIs, databases, and event source mappings?

A

Serverless Application Model (SAM)

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

What SAM resource allows you to embed a serverless application from the AWS Serverless Application Repository?

A

AWS::Serverless::Application

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

Which property of the AWS::Serverless::Function resource creates an alias, publishes a new version of Lambda code, and directs event sources to this alias?

A

AutoPublishAlias

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

What commands are used to deploy a Node.js serverless application using AWS SAM?

A

Use sam package followed by sam deploy

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

What types of Deployment Preferences does Serverless Application Model support for gradually deploying serverless applications?

A
  • Canary10Percent5Minutes
  • Canary10Percent10Minutes
  • Canary10Percent15Minutes
  • Canary10Percent30Minutes
  • Linear10PercentEvery1Minute
  • Linear10PercentEvery2Minutes
  • Linear10PercentEvery3Minutes
  • Linear10PercentEvery10Minutes
  • AllAtOnce
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Can AWS SAM be used for local testing?

A

Yes, AWS SAM can be used to test serverless applications locally

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

What command is used to start the local lambda endpoint in AWS SAM?

A

sam local start-lambda command in the directory that contains the AWS SAM template

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

How can an integration test be performed against a local Lambda endpoint?

A

By configuring the AWS SDK to send a Lambda Invoke API call

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