SAM Flashcards
This deck aims to help retain concepts related to the AWS SAM framework.
What is the AWS open-source framework for building serverless applications, provides shorthand syntax to define functions, APIs, databases, and event source mappings?
Serverless Application Model (SAM)
What SAM resource allows you to embed a serverless application from the AWS Serverless Application Repository?
AWS::Serverless::Application
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?
AutoPublishAlias
What commands are used to deploy a Node.js serverless application using AWS SAM?
Use sam package
followed by sam deploy
What types of Deployment Preferences does Serverless Application Model support for gradually deploying serverless applications?
Canary10Percent5Minutes
Canary10Percent10Minutes
Canary10Percent15Minutes
Canary10Percent30Minutes
Linear10PercentEvery1Minute
Linear10PercentEvery2Minutes
Linear10PercentEvery3Minutes
Linear10PercentEvery10Minutes
AllAtOnce
Can AWS SAM be used for local testing?
Yes, AWS SAM can be used to test serverless applications locally
What command is used to start the local lambda endpoint in AWS SAM?
sam local start-lambda
command in the directory that contains the AWS SAM template
How can an integration test be performed against a local Lambda endpoint?
By configuring the AWS SDK to send a Lambda Invoke API call