PROFESSIONAL-CLOUD-DEVELOPER · Question #254
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 w
Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #254. The question stem and answer options stay visible for context.
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.
Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer
You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.