DVA-C02 Domain 3—Deployment
Explore deployment solutions for AWS serverless applications using AWS SAM, Lambda aliases, and API Gateway. Understand how to manage multiple environments without code changes, implement safe rollbacks, and optimize deployment packages for efficiency. Learn deployment strategies such as canary and blue/green to shift traffic gradually and automate rollbacks, ensuring scalable and reliable production environments.
We'll cover the following...
Question 11
A company is deploying a serverless REST API using AWS SAM, API Gateway, and Lambda. The team wants to deploy the same template to dev, staging, and production environments while meeting the following requirements:
Each environment must point to a different Lambda version.
No code changes are allowed between environments.
Rollbacks must be fast and safe.
Which two solutions best meet these requirements? (Select any two options.
A. Use Lambda aliases for each environment and reference them from API Gateway.
B. Create separate SAM templates for dev, staging, and prod.
C. Use API Gateway stage variables to dynamically reference Lambda ...