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.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: A
While a PodDisruptionBudget can help protect a Pod from being forcibly terminated during a deployment update, it does not ensure a graceful shutdown of the application. Option A, updating the code to handle SIGTERM signals, is the recommended way to ensure a graceful shutdown in the event of a termination.
👍 2mrvergara2023/02/04 - 正解だと思う選択肢: B👍 1TNT872023/02/01
- 正解だと思う選択肢: A
i would choose A
👍 1Pime132023/02/19
シャッフルモード