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

A company runs a website by using an Amazon Elastic Container Service (Amazon ECS) service that is connected to an Application Load Balancer (ALB). The service was in a steady state with tasks responding to requests successfully.

A DevOps engineer updated the task definition with a new container image and deployed the new task definition to the service. The DevOps engineer noticed that the service is frequently stopping and starting new tasks because the ALB healtth checks are failing.

What should the DevOps engineer do to troubleshoot the failed deployment?

  • A. Ensure that a security group associated with the service allows traffic from the ALB.
  • B. Increase the ALB health check grace period for the service.
  • C. Increase the service minimum healthy percent setting.
  • D. Decrease the ALB health check interval.
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
Srikantha
4 weeks, 1 day ago
Selected Answer: B
When the DevOps engineer deploys a new version of the ECS service (e.g., with a new container image), the ECS tasks might take some time to become healthy and respond to ALB health checks successfully. During this period, the ALB health checks could fail if they are not given enough time to detect the new tasks' readiness. By increasing the ALB health check grace period, the engineer ensures that the new tasks have enough time to start up and become healthy before the ALB marks them as unhealthy. This can prevent the tasks from frequently stopping and starting due to health check failures.
upvoted 2 times
...
DKM
1 month, 2 weeks ago
Selected Answer: B
aws elbv2 modify-target-group-attributes \ --target-group-arn <target-group-arn> \ --attributes Key=health_check.grace_period,Value=<desired-value>
upvoted 1 times
...
Ky_24
4 months, 2 weeks ago
Selected Answer: B
B - ALB health check is failing the new task
upvoted 4 times
...
eugene2owl
4 months, 3 weeks ago
Selected Answer: B
"A" is wrong because in the question it's said that Engineer has only updated image in the task definition. So he could not affect security group. "B" might be correct explanation, because new Docker container (based on a new image) takes longer time to start. So increasing a grace period might help to eventually get a successful health-check result and quit restarting the container.
upvoted 4 times
...
awsarchitect5
6 months ago
Selected Answer: B
B
upvoted 4 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