A content-sharing app will migrate from EC2/ALB blue/green deployments to API Gateway and Lambda. The team needs a deployment process that supports testing changes on a small subset of users (canary) before promoting them. Which deployment approach satisfies this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Use AWS CloudFormation to deploy API Gateway and Lambda functions using Lambda function versions. When code needs to be changed, update the CloudFormation stack with the new Lambda code and update the API versions using a canary release strategy. Promote the new version when testing is complete..
Why this is the answer
The correct answer leverages AWS CloudFormation for Infrastructure as Code and Lambda function versions with API Gateway's canary release strategy. CloudFormation allows declarative management of the entire stack, including API Gateway and Lambda. Lambda versions enable immutable deployments, and API Gateway's canary release feature directly supports routing a small percentage of traffic to a new Lambda version for testing before a full promotion. Incorrect options: AWS CDK is a valid IaC tool but the proposed Route 53 failover routing policy is not the native or most efficient way to manage canary releases for API Gateway and Lambda. API Gateway has built-in canary deployment features. Elastic Beanstalk is designed for deploying web applications on EC2, not directly for API Gateway and Lambda functions, making it an unsuitable choice for this serverless architecture. AWS OpsWorks is a configuration management service that uses Chef or Puppet, primarily for EC2 instances, and is not the native or recommended tool for deploying and managing serverless API Gateway and Lambda functions, especially for canary releases.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed