GoogleGoogle
PROFESSIONAL-CLOUD-DEVELOPER · Question #254
PROFESSIONAL-CLOUD-DEVELOPER Question #254: Real Exam Question with Answer & Explanation
The correct answer is A: Update your code to process a received SIGTERM signal to gracefully disconnect from the. https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices- terminating-with-grace
Manage application reliability
Question
You noticed that your application was forcefully shut down during a Deployment update in Google Kubernetes Engine. Your application didn't close the database connection before it was terminated. You want to update your application to make sure that it completes a graceful shutdown. What should you do?
Options
- AUpdate your code to process a received SIGTERM signal to gracefully disconnect from the
- BConfigure a PodDisruptionBudget to prevent the Pod from being forcefully shut down.
- CIncrease the terminationGracePeriodSeconds for your application.
- DConfigure a PreStop hook to shut down your application.
Explanation
https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices- terminating-with-grace
Topics
#Graceful Shutdown#Kubernetes Pod Lifecycle#SIGTERM#Application Resilience
Community Discussion
No community discussion yet for this question.