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

A company has a mission-critical application on AWS that uses automatic scaling. The company wants the deployment lifecycle to meet the following parameters:

• The application must be deployed one instance at a time to ensure the remaining fleet continues to serve traffic.
• The application is CPU intensive and must be closely monitored.
• The deployment must automatically roll back if the CPU utilization of the deployment instance exceeds 85%.

Which solution will meet these requirements?

  • A. Use AWS CloudFormation to create an AWS Step Functions state machine and Auto Scaling lifecycle hooks to move to one instance at a time into a wait state. Use AWS Systems Manager automation to deploy the update to each instance and move it back into the Auto Scaling group using the heartbeat timeout.
  • B. Use AWS CodeDeploy with Amazon EC2 Auto Scaling Configure an alarm tied to the CPU utilization metric. Use the CodeDeployDefault OneAtAtime configuration as a deployment strategy. Configure automatic rollbacks within the deployment group to roll back the deployment if the alarm thresholds are breached.
  • C. Use AWS Elastic Beanstalk for load balancing and AWS Auto Scaling. Configure an alarm tied to the CPU utilization metric. Configure rolling deployments with a fixed batch size of one instance. Enable enhanced health to monitor the status of the deployment and roll back based on the alarm previously created.
  • D. Use AWS Systems Manager to perform a blue/green deployment with Amazon EC2 Auto Scaling. Configure an alarm tied to the CPU utilization metric. Deploy updates one at a time. Configure automatic rollbacks within the Auto Scaling group to roll back the deployment if the alarm thresholds are breached.
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 1 year, 2 months ago
Selected Answer: B
B is correct: < must be deployed one instance at a time> means codedeploy, which provides this option A: AWS Step Functions state machine does not provide deployment Functions C: Beanstalk does not work with EC2 D: AWS SSM does not provides deployment Functions
upvoted 5 times
...
tinyshare
Most Recent 5 months ago
Selected Answer: C
Why not C? Beanstalk can use CPU utilization metric for Auto Scaling.
upvoted 1 times
tinyshare
5 months ago
Sorry still B Although Beanstalk can use CPU utilization to auto scale Beanstalk can not use CPU utilization to roll back. The roll back is a manual re-deployment of the latest working version.
upvoted 3 times
...
...
jamesf
9 months ago
Selected Answer: B
B correct - CodeDeployDefault OneAtAtime configuration (One at a time, but not AllAtATime)
upvoted 2 times
...
Gomer
10 months ago
"B" "You can now monitor and automatically react to changes in your AWS CodeDeploy deployments using Amazon CloudWatch alarms." "Using CloudWatch with CodeDeploy, you can monitor metrics for Amazon EC2 instances or Auto Scaling groups being managed by CodeDeploy and then invoke an action if the metric you are tracking crosses a certain threshold for a defined period of time." "You can monitor metrics such as instance CPU utilization." "If the alarm is activated, CloudWatch initiates actions such as sending a notification to Amazon Simple Notification Service, stopping a CodeDeploy deployment, or changing the state of an instance (e.g. reboot, terminate, recover)." "CodeDeploy now also lets you automatically roll back a deployment when a deployment fails or when a CloudWatch alarm is activated." https://aws.amazon.com/about-aws/whats-new/2016/09/aws-codedeploy-introduces-deployment-monitoring-with-amazon-cloudwatch-alarms-and-automatic-deployment-rollback/
upvoted 3 times
...
c3518fc
1 year ago
Selected Answer: B
By using AWS CodeDeploy with Amazon EC2 Auto Scaling, configuring the CodeDeployDefault.OneAtAtime deployment strategy, and setting up automatic rollbacks based on a CloudWatch alarm for CPU utilization, this solution meets all the specified requirements. It ensures a controlled deployment process, monitors the CPU-intensive application, and automatically rolls back the deployment if the CPU utilization threshold is breached, providing a reliable and automated deployment lifecycle for the mission-critical application.
upvoted 3 times
...
dkp
1 year ago
Selected Answer: B
answer B
upvoted 3 times
...
davdan99
1 year, 3 months ago
Why not BeansTalk?
upvoted 3 times
tinyshare
5 months ago
Beanstalk can not use CPU utilization to roll back. The roll back is a manual re-deployment of the latest working version. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html
upvoted 1 times
...
...
csG13
1 year, 3 months ago
Selected Answer: B
It's B - the only one that fulfils all the requirements.
upvoted 4 times
...
PrasannaBalaji
1 year, 3 months ago
Selected Answer: B
B is correct
upvoted 3 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