A developer is configuring a CI/CD pipeline using AWS CodeDeploy for a serverless API hosted on AWS Lambda and integrated with Amazon API Gateway. The deployment process must adhere to the following requirements:
* Production traffic must be shifted in two stages: an initial of traffic is routed to the new version, followed by the remaining after a -minute evaluation period.
* Prior to routing any production traffic to the new version, a test function must run to verify that the new version can successfully write to an Amazon DynamoDB table.
* If the test function fails, or if a CloudWatch alarm for errors on the new version is triggered during the evaluation period, the deployment must immediately roll back.
Which TWO actions must the developer perform to configure the deployment?
- Set the deployment configuration in AWS CodeDeploy to CodeDeployDefault.LambdaCanary10Percent15MinutesAnswer
- Specify a validation Lambda function under the BeforeAllowTraffic hook in the AppSpec file to verify database connectivityAnswer
- CSpecify a validation Lambda function under the BeforeInstall hook in the AppSpec file to verify database connectivity
- DSet the deployment configuration in AWS CodeDeploy to CodeDeployDefault.LambdaLinear10PercentEvery15Minutes
- ESpecify a validation Lambda function under the AfterAllowTraffic hook in the AppSpec file to verify database connectivity