nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #228

PROFESSIONAL-CLOUD-DEVELOPER Question #228: Real Exam Question with Answer & Explanation

Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #228. The question stem and answer options stay visible for context.

Managing Application Deployments and Lifecycle on GKE

Question

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?

Options

  • ACreate two jobs: one that checks whether the container can connect to the database, and another
  • BCreate the Deployment with a livenessProbe for the container that will fail if the container can't
  • CCreate the Deployment with a PostStart lifecycle handler that checks the service availability.
  • DCreate the Deployment with an initContainer that checks the service availability. Configure a

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.

Topics

#Kubernetes Liveness Probes#GKE Deployments#Container Health Checks#Graceful Shutdown
Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions