exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 149 discussion

A company has microservices running in AWS Lambda that read data from Amazon DynamoDB. The Lambda code is manually deployed by developers after successful testing. The company now needs the tests and deployments be automated and run in the cloud. Additionally, traffic to the new versions of each microservice should be incrementally shifted over time after deployment.

What solution meets all the requirements, ensuring the MOST developer velocity?

  • A. Create an AWS CodePipeline configuration and set up a post-commit hook to trigger the pipeline after tests have passed. Use AWS CodeDeploy and create a Canary deployment configuration that specifies the percentage of traffic and interval.
  • B. Create an AWS CodeBuild configuration that triggers when the test code is pushed. Use AWS CloudFormation to trigger an AWS CodePipeline configuration that deploys the new Lambda versions and specifies the traffic shift percentage and interval.
  • C. Create an AWS CodePipeline configuration and set up the source code step to trigger when code is pushed. Set up the build step to use AWS CodeBuild to run the tests. Set up an AWS CodeDeploy configuration to deploy, then select the CodeDeployDefault.LambdaLinear10PercentEvery3Minutes option.
  • D. Use the AWS CLI to set up a post-commit hook that uploads the code to an Amazon S3 bucket after tests have passed Set up an S3 event trigger that runs a Lambda function that deploys the new version. Use an interval in the Lambda function to deploy the code over time at the required percentage.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
c3518fc
Highly Voted 6 months, 1 week ago
Selected Answer: C
This solution provides the following benefits: Automation: The entire process, from code push to testing and deployment, is automated, reducing manual effort and increasing developer velocity. Integration: By using AWS CodePipeline, CodeBuild, and CodeDeploy, you leverage fully managed services that are designed to work together seamlessly. Incremental Deployment: The CodeDeployDefault.LambdaLinear10PercentEvery3Minutes option ensures a smooth and controlled migration of traffic to the new versions of your microservices, minimizing the risk of downtime or disruption.
upvoted 6 times
...
PrasannaBalaji
Highly Voted 10 months ago
Selected Answer: C
Agree C is correct
upvoted 6 times
...
DanShone
Most Recent 7 months, 2 weeks ago
Selected Answer: C
C is correct
upvoted 3 times
...
Shasha1
7 months, 3 weeks ago
C There is no 'pre-commit' hook option in the Lambda deployment hook (Canary); only 'before allowing traffic' and 'after allowing traffic' options are available. Therefore, the 'LambdaLinear10PercentEvery3Minutes' option, which is a canary deployment method, enables a linear deployment strategy, gradually shifting traffic to the new versions at a rate of 10% every 3 minutes. https://medium.com/@Da_vidgf/canary-deployments-in-serverless-applications-b0f47fa9b409
upvoted 3 times
...
Chelseajcole
8 months, 2 weeks ago
if it is canary, why not a?
upvoted 1 times
...
thanhnv142
8 months, 3 weeks ago
A is correct: canary deployment
upvoted 1 times
GripZA
1 week, 2 days ago
canary won't meet requirements here since it will shift all traffic after time completes, whereas linear the amount of the traffic routed to the new version will be incremented according to the provided percentage and interval.
upvoted 1 times
...
...
twogyt
9 months, 2 weeks ago
Selected Answer: C
c is correct
upvoted 4 times
...
a54b16f
9 months, 3 weeks ago
Selected Answer: C
B is wrong, why would you trigger a pipeline when TEST code is pushed
upvoted 4 times
...
csG13
10 months ago
Selected Answer: C
Answer is C, canary deployment
upvoted 4 times
...
PrasannaBalaji
10 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago