exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 23 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 23
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A DevOps Engineer must track the health of a stateless RESTful service sitting behind a Classic Load Balancer. The deployment of new application revisions is through a CI/CD pipeline. If the service's latency increases beyond a defined threshold, deployment should be stopped until the service has recovered.
Which of the following methods allow for the QUICKEST detection time?

  • A. Use Amazon CloudWatch metrics provided by Elastic Load Balancing to calculate average latency. Alarm and stop deployment when latency increases beyond the defined threshold.
  • B. Use AWS Lambda and Elastic Load Balancing access logs to detect average latency. Alarm and stop deployment when latency increases beyond the defined threshold.
  • C. Use AWS CodeDeploy's MinimumHealthyHosts setting to define thresholds for rolling back deployments. If these thresholds are breached, roll back the deployment.
  • D. Use Metric Filters to parse application logs in Amazon CloudWatch Logs. Create a filter for latency. Alarm and stop deployment when latency increases beyond the defined threshold.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
amzngenius
Highly Voted 3 years, 6 months ago
A: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html https://docs.aws.amazon.com/codedeploy/latest/userguide/deployments-stop.html
upvoted 22 times
secreatUser
3 years, 6 months ago
Perfect answer with explanation.
upvoted 2 times
...
Arnaud92
2 years, 6 months ago
but you need the deployment ID to stop a deployment, so you mean you have to get it before with list-deployments command?
upvoted 1 times
...
...
Raj9
Highly Voted 3 years, 6 months ago
A - correct B - this might work but has additonal overhead of a lambda and will depende on how frequently lambda is run. Although minimal but additonal cost of lambda. This won't give QUICKEST detection time. C - MinimumHealthyHosts may not be directly correlated with latency. Latency might be more due to network or other issues even if 100% of hosts are healthy. D - why do this when a ready made option is available https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html
upvoted 10 times
...
z_inderjot
Most Recent 1 year, 4 months ago
Selected Answer: A
A is the right answer , since it is readily available , we don't have to spend time creating the metrics from logs
upvoted 1 times
...
frizzolo
1 year, 7 months ago
Selected Answer: A
Vote for A
upvoted 1 times
...
bhui
1 year, 10 months ago
Selected Answer: D
We need QUICKEST detection time, not easiest deployment. Option A can only do per minute. Option D can go for second-level detection.
upvoted 1 times
...
nicat
1 year, 11 months ago
Selected Answer: D
Which of the following methods allow for the QUICKEST detection time? Amazon CloudWatch Metrics: By default, CloudWatch metrics have a minimum resolution of 1 minute. This means that data points for metrics are collected at one-minute intervals. However, you can enable high-resolution custom metrics with a resolution of 1 second. Amazon CloudWatch Logs: CloudWatch Logs does not have a predefined minimum interval for log data collection. Log events can be sent to CloudWatch Logs in near real-time, allowing for timely analysis and monitoring.
upvoted 2 times
...
Tika01
2 years, 1 month ago
Selected Answer: A
This method allows for the quickest detection time since it relies on CloudWatch metrics provided by Elastic Load Balancing. These metrics are already being collected and aggregated by AWS, so there is no need to set up additional monitoring infrastructure. By creating a CloudWatch alarm on the average latency metric and setting a threshold, the DevOps Engineer can quickly detect when latency increases beyond a defined threshold and stop deployment until the service has recovered.
upvoted 1 times
...
hoomaan
2 years, 2 months ago
A- is Correct, it is quick as metrics could be updated every 1 minutes C- cannot be the answer https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_MinimumHealthyHosts.html when we are talking about delay the loadbalancer could consider that endpoint as healthy and deployment will go through!
upvoted 1 times
...
DevOpsJagadGuru
2 years, 2 months ago
A. Use Amazon CloudWatch metrics provided by Elastic Load Balancing to calculate average latency. Alarm and stop deployment when latency increases beyond the defined threshold is the method that allows for the quickest detection time. When using Amazon CloudWatch metrics provided by Elastic Load Balancing, metrics are collected every minute, which is the most frequent metric collection interval available. This means that the latency metric will be updated frequently, allowing for a quick detection time when latency increases beyond the defined threshold. In contrast, the other options may have longer detection times as they involve additional steps such as collecting logs or waiting for a certain number of healthy hosts before rolling back a deployment.
upvoted 1 times
...
Sabreen_Salama
2 years, 2 months ago
the answer is A
upvoted 1 times
...
Piccaso
2 years, 2 months ago
Selected Answer: A
A is the most straightforward solution. B: Lambda and Elastic Load Balancing, is manual solution. C and D look weird
upvoted 1 times
...
Bulti
2 years, 3 months ago
The correct answer is A. When setting up CodeDeploy as a Deployment Provider you can specify the alarm based on a CloudWatch Metric (custom or built-in) and stop the deployment if an alarm threshold is exceeded.
upvoted 1 times
...
Chinta
2 years, 5 months ago
A IS THE CORRECT ONE
upvoted 2 times
...
ducluanxutrieu
2 years, 6 months ago
Selected Answer: A
I'll go with A
upvoted 2 times
...
colinquek
2 years, 8 months ago
Selected Answer: A
A is the way to go here
upvoted 2 times
...
blueorca
3 years, 2 months ago
Selected Answer: A
A, existing metric would be faster than going over the fuss of creating a new one
upvoted 2 times
...
xxxdolorxxx
3 years, 5 months ago
I also vote for A.
upvoted 2 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