Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 183

A company is building a microservices application that consists of many AWS Lambda functions. The development team wants to use AWS Serverless Application Model (AWS SAM) templates to automatically test the Lambda functions. The development team plans to test a small percentage of traffic that is directed to new updates before the team commits to a full deployment of the application.

Which combination of steps will meet these requirements in the MOST operationally efficient way? (Choose two.)

    Correct Answer: C, D

    To meet the given requirements, enabling gradual deployments through AWS SAM templates is essential as it allows for a controlled and continuous rollout of new updates, ensuring only a small percentage of traffic is initially directed to the new version. Setting the deployment preference type to Canary10Percent30Minutes is a fitting choice, as it directs 10% of the traffic to the new version for the first 30 minutes, allowing the development team to monitor and ensure stability before fully committing to the deployment. Thus, the combination of these steps ensures both operational efficiency and reliability in the deployment process.

Discussion
dillemanOptions: CD

C and D should be correct. Given that "The development team plans to test a small percentage of traffic that is directed to new updates before the team commits to a full deployment of the application." then Option D makes more sense than Option E.

PrakashM14Options: CD

C. Enable gradual deployments through AWS SAM templates. D. Set the deployment preference type to Canary10Percent30Minutes. Use hooks to test the deployment.

SerialiDrOptions: CD

C. Enable gradual deployments through AWS SAM templates: Gradual deployments allow you to safely deploy your application while exposing new versions to only a portion of your traffic. This approach is ideal for testing new updates in a production environment without impacting all users. AWS SAM supports the configuration of deployment preferences directly within the SAM template. D. Set the deployment preference type to Canary10Percent30Minutes. Use hooks to test the deployment: The Canary deployment type is suitable for gradually introducing a new version of the Lambda function. In this case, "Canary10Percent30Minutes" means that 10% of the traffic will be directed to the new version for 30 minutes. If no issues are detected, the rest of the traffic is shifted to the new version. The use of hooks allows for automated tests to run against the new deployment, ensuring its stability before full traffic shift.

c9ebec2Options: AD

A: test code during deploy https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-automated-tests.html D: Canary, to deploy a small percentage

AnandeshOptions: CD

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html You need to enable the gradual deployment first then only codeDeploy will invoke lambda function

65703c1Options: CD

CD is the correct answer.

KarBiswaOptions: AC

For A - https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-automated-tests.html#:~:text=You%20can%20use%20the%20sam%20local%20invoke%20command%20to%20manually%20test%20your%20code%20by%20running%20Lambda%20functions%20locally.%20With%20the%20AWS%20SAM%C2%A0CLI%2C%20you%20can%20easily%20author%20automated%20integration%20tests%20by%20first%20running%20tests%20against%20local%20Lambda%20functions%20before%20deploying%20to%20the%20AWS%20Cloud. C - https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html

KarBiswaOptions: CD

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html

KarBiswaOptions: AD

I will got A & D D is nice and clear no debates For A - https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-automated-tests.html#:~:text=You%20can%20use%20the%20sam%20local%20invoke%20command%20to%20manually%20test%20your%20code%20by%20running%20Lambda%20functions%20locally.%20With%20the%20AWS%20SAM%C2%A0CLI%2C%20you%20can%20easily%20author%20automated%20integration%20tests%20by%20first%20running%20tests%20against%20local%20Lambda%20functions%20before%20deploying%20to%20the%20AWS%20Cloud.

KarBiswa

changing the option to C, D

Digo30spOptions: CE

The correct answers are (C) and (E). (C) is the most important step because it allows you to deploy new Lambda function updates to a small percentage of your traffic. (E) is the second most important step because it allows you to test new Lambda function updates using hooks.