Examtopics

Professional Cloud Developer
  • Topic 1 Question 237

    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?

    • Update your code to process a received SIGTERM signal to gracefully disconnect from the database.

    • Configure a PodDisruptionBudget to prevent the Pod from being forcefully shut down.

    • Increase the terminationGracePeriodSeconds for your application.

    • Configure a PreStop hook to shut down your application.


    シャッフルモード