A developer is building a serverless application by using AWS Serverless Application
Model (AWS SAM) on multiple AWS Lambda functions.
When the application is deployed,
the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version.
Which change to the AWS SAM template will meet these requirements?
- Set the Deployment Preference Type to Canary10Percent10Minutes. Set the
AutoPublishAlias property to the Lambda alias. - Set the Deployment Preference Type to Linear10PercentEvery10Minutes. Set
AutoPublishAlias property to the Lambda alias. - Set the Deployment Preference Type to Canary10Percent10Minutes. Set the
PreTraffic and PostTraffic properties to the Lambda alias. - Set the Deployment Preference Type to Linear10PercentEvery10Minutes. Set
PreTraffic and PostTraffic properties to the Lambda alias.
Reveal Solution Next Question