Which deployment strategy will meet these requirements?
Use AWS CDK to deploy API Gateway and Lambda functions. When code needs to be changed, update the AWS CloudFormation stack and deploy the new version of the APIs and Lambda functions. Use a Route 53 failover routing policy for the canary release strategy.
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.
Use AWS Elastic Beanstalk to deploy API Gateway and Lambda functions. When code needs to be changed, deploy a new version of the API and Lambda functions. Shift traffic gradually using an Elastic Beanstalk blue/green deployment.
Use AWS OpsWorks to deploy API Gateway in the service layer and Lambda functions in a custom layer. When code needs to be changed, use OpsWorks to perform a blue/green deployment and shift traffic gradually.
Explanations:
AWS CDK is a tool to deploy infrastructure, but it does not natively support serverless deployment strategies with Lambda and API Gateway. Route 53 failover routing is typically used for failover, not gradual traffic shifting like a canary release.
AWS CloudFormation supports deploying Lambda function versions and API Gateway stages. A canary release strategy can be implemented using Lambda traffic shifting, allowing gradual traffic migration, which meets the requirement of testing new features on a subset of users.
AWS Elastic Beanstalk is designed for application management in environments like EC2, not serverless applications. It does not natively support serverless Lambda or API Gateway deployments, nor does it align with the serverless architecture shift.
AWS OpsWorks is used for configuration management and deployment of EC2-based applications, not serverless applications. It does not directly support Lambda or API Gateway deployment or a canary release strategy for serverless applications.