SAM for Serverless Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Programming Concepts

What you'll be asked

  1. Which command is used to initialize a new AWS SAM project locally?
  2. What is the primary purpose of the 'sam build' command in a serverless workflow?
  3. When testing locally, which command simulates an API Gateway endpoint to trigger your Lambda functions?
  4. In a template.yaml file, which section is used to define the shared properties (like Runtime or MemorySize) for all Lambda functions in the project?
  5. You are debugging a SAM application and need to pass environment variables to your local Lambda execution without modifying the template.yaml file. Which flag should you use with 'sam local invoke'?

Answers and explanations come after you submit.