exam questions

Exam Professional Cloud DevOps Engineer All Questions

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

Exam Professional Cloud DevOps Engineer topic 1 question 120 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 120
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You have an application that runs in Google Kubernetes Engine (GKE). The application consists of several microservices that are deployed to GKE by using Deployments and Services. One of the microservices is experiencing an issue where a Pod returns 403 errors after the Pod has been running for more than five hours. Your development team is working on a solution, but the issue will not be resolved for a month. You need to ensure continued operations until the microservice is fixed. You want to follow Google-recommended practices and use the fewest number of steps. What should you do?

  • A. Create a cron job to terminate any Pods that have been running for more than five hours.
  • B. Add a HTTP liveness probe to the microservice's deployment.
  • C. Monitor the Pods, and terminate any Pods that have been running for more than five hours.
  • D. Configure an alert to notify you whenever a Pod returns 403 errors.
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
Jason_Cloud_at
Highly Voted 6 months, 1 week ago
Selected Answer: B
Liveness probes are used to monitor the health of containers inside pods. They can identify application instances that have failed, even if the pod appears to be operational, If a liveness probe detects an unhealthy state, Kubernetes kills the container and tries to redeploy it. If the probe succeeds, no action is taken and no events are logged.
upvoted 8 times
...
xhilmi
Most Recent 4 months, 3 weeks ago
Selected Answer: B
The recommended solution is (option B) Add a HTTP liveness probe to the microservice's deployment. By implementing a liveness probe, the Kubernetes system periodically checks the specified endpoint of the microservice to determine its health. If the microservice becomes unresponsive or encounters the 403 errors, Kubernetes will automatically restart the Pod. This approach ensures continuous operations by proactively detecting and addressing issues, minimizing manual intervention. It aligns with Google-recommended practices for handling service health and availability in a Kubernetes environment with minimal steps and complexity.
upvoted 2 times
...
mshafa
6 months ago
B is Answer.
upvoted 1 times
...
ManishKS
7 months ago
Answer should be B
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