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 200 discussion

A DevOps team uses AWS CodePipeline, AWS CodeBuild, and AWS CodeDeploy to deploy an application. The application is a REST API that uses AWS Lambda functions and Amazon API Gateway. Recent deployments have introduced errors that have affected many customers.

The DevOps team needs a solution that reverts to the most recent stable version of the application when an error is detected. The solution must affect the fewest customers possible.

Which solution will meet these requirements with the MOST operational efficiency?

  • A. Set the deployment configuration in CodeDeploy to LambdaAllAtOnce. Configure automatic rollbacks on the deployment group. Create an Amazon CloudWatch alarm that detects HTTP Bad Gateway errors on API Gateway. Configure the deployment group to roll back when the number of alarms meets the alarm threshold.
  • B. Set the deployment configuration in CodeDeploy to LambdaCanary10Percent10Minutes. Configure automatic rollbacks on the deployment group. Create an Amazon CloudWatch alarm that detects HTTP Bad Gateway errors on API Gateway. Configure the deployment group to roll back when the number of alarms meets the alarm threshold.
  • C. Set the deployment configuration in CodeDeploy to LambdaAllAtOnce. Configure manual rollbacks on the deployment group. Create an Amazon Simple Notification Service (Amazon SNS) topic to send notifications every time a deployment fails. Configure the SNS topic to invoke a new Lambda function that stops the current deployment and starts the most recent successful deployment.
  • D. Set the deployment configuration in CodeDeploy to LambdaCanary10Percent10Minutes. Configure manual rollbacks on the deployment group. Create a metric filter on an Amazon CloudWatch log group for API Gateway to monitor HTTP Bad Gateway errors. Configure the metric filter to invoke a new Lambda function that stops the current deployment and starts the most recent successful deployment.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
thanhnv142
Highly Voted 8 months, 2 weeks ago
Selected Answer: B
B is correct: A and C: <CodeDeploy to LambdaAllAtOnce>: Replacing all at once would not allow roll back D: Metric filter cannot trigger lambda. Additionally, this options is a manual work
upvoted 8 times
...
c3518fc
Most Recent 6 months ago
Selected Answer: B
Option B provides the most operationally efficient solution by combining canary deployments, automatic rollbacks, and CloudWatch alarms to detect and respond to issues quickly while minimizing customer impact.
upvoted 3 times
...
dkp
6 months, 2 weeks ago
Selected Answer: B
Answer B
upvoted 3 times
...
ogerber
7 months, 1 week ago
Selected Answer: B
Its B, 100%
upvoted 3 times
...
Ramdi1
8 months, 2 weeks ago
Selected Answer: C
option C - LambdaAllAtOnce: Rolling back everything at once minimizes the window for potential customer impact compared to canary deployments. Manual rollbacks: While automatic rollbacks may seem faster, they can be triggered by false positives, leading to unnecessary rollbacks and service disruptions. Manual rollbacks offer more control and allow the team to assess the situation before reverting. SNS notifications: Alerts about failing deployments are crucial for quick response. Lambda function for rollback: Automating the rollback process with a Lambda function triggered by SNS notification streamlines the operation and reduces manual intervention. Starts the most recent successful deployment: This ensures reverting to a known-good state without manual selection, saving time and avoiding errors.
upvoted 1 times
Ramdi1
8 months, 2 weeks ago
Here's how the other options fall short:   Option A: While LambdaAllAtOnce is good, automatic rollbacks based on alarms might be triggered by transient issues, leading to unnecessary disruptions. Option B: Canary deployments are beneficial for testing, but rolling back 10% at a time might not be efficient if the error affects all users. Also, relying on automatic rollbacks has the same drawbacks as mentioned in A. Option D: While manual control is good, relying solely on CloudWatch logs and a separate Lambda function for stopping and starting deployments adds complexity and requires more manual intervention compared to the streamlined SNS-triggered rollback in option C.
upvoted 1 times
c3518fc
6 months ago
don't say rubbish with confidence. B is the answer
upvoted 1 times
...
...
...
Chelseajcole
8 months, 3 weeks ago
D. Rolling deployment with the option to stop once it detects any errors.
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