ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 116 - Professional Cloud DevOps Engineer discussion

Report
Export

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
Answers
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
Answers
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
Answers
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
Answers
D.
Configure an alert to notify you whenever a Pod returns 403 errors
Suggested answer: B

Explanation:

The best option for ensuring continued operations until the microservice is fixed is to add a HTTP liveness probe to the microservice's deployment. A HTTP liveness probe is a type of probe that checks if a Pod is alive by sending an HTTP request and expecting a success response code. If the probe fails, Kubernetes will restart the Pod. You can add a HTTP liveness probe to your microservice's deployment by using a livenessProbe field in your Pod spec. This way, you can ensure that any Pod that returns 403 errors after running for more than five hours will be restarted automatically and resume normal operations.

asked 18/09/2024
Jonathan Moreno
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first