Topic 1 Question 211
You need to configure a Deployment on Google Kubernetes Engine (GKE). You want to include a check that verifies that the containers can connect to the database. If the Pod is failing to connect, you want a script on the container to run to complete a graceful shutdown. How should you configure the Deployment?
Create two jobs: one that checks whether the container can connect to the database, and another that runs the shutdown script if the Pod is failing.
Create the Deployment with a livenessProbe for the container that will fail if the container can't connect to the database. Configure a Prestop lifecycle handler that runs the shutdown script if the container is failing.
Create the Deployment with a PostStart lifecycle handler that checks the service availability. Configure a PreStop lifecycle handler that runs the shutdown script if the container is failing.
Create the Deployment with an initContainer that checks the service availability. Configure a Prestop lifecycle handler that runs the shutdown script if the Pod is failing.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: B👍 4TNT872022/12/04
- 正解だと思う選択肢: D
D could be the right answer
👍 2kisswd2022/12/04 - 正解だと思う選択肢: B
B is the answer.
👍 2zellck2022/12/21
シャッフルモード