A team has Lambda microservices that read from DynamoDB. Developers manually deploy code after tests. They now require cloud-based automated testing and deployment, with traffic to new versions shifted incrementally after deployment. Which approach delivers these requirements while maximizing developer velocity?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a CodePipeline that triggers on source pushes. Use CodeBuild in the build step to run tests. Use CodeDeploy for deployment and choose the CodeDeployDefault.LambdaLinear10PercentEvery3Minutes option for traffic shifting..
Why this is the answer
The correct approach leverages CodePipeline for end-to-end automation, triggering on source pushes for immediate feedback. CodeBuild is integrated into the pipeline's build stage to execute tests, ensuring code quality before deployment. CodeDeploy is the ideal service for deploying Lambda functions with automated traffic shifting, and the CodeDeployDefault.LambdaLinear10PercentEvery3Minutes option directly fulfills the requirement for incremental, percentage-based traffic shifting, maximizing developer velocity by automating a complex deployment strategy. The other options are less optimal: The first option incorrectly suggests a post-commit hook triggers CodePipeline after tests pass, which is not a standard CodePipeline trigger mechanism. CodePipeline typically triggers on source changes. The second option introduces unnecessary complexity by using CloudFormation to trigger CodePipeline and doesn't explicitly mention a build/test step within the pipeline. The fourth option relies on a custom, complex, and error-prone solution using AWS CLI, S3 events, and a custom Lambda for deployment and traffic shifting, which is less robust and scalable than using CodeDeploy's built-in capabilities.
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