Professional Cloud Developer Practice Questions

Google Cloud Professional Cloud Developer exam preparation

Professional Cloud Developer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Cloud Developer free question 3 / 10 · Domain 1: Designing highly scalable, secure, and reliable cloud-native applications

During an incident an engineer must roll out an image on GKE that Binary Authorization blocks, and the team does not want to rewrite the cluster-wide policy for it. How is breakglass invoked for that deployment?

  1. By restarting the cluster with a start-up setting that removes its admission controller for the duration of the deployment
  2. By marking the image in Artifact Registry as approved, so Binary Authorization treats it as compliant with the policy
  3. By importing a temporary policy that turns enforcement off for the cluster until the incident is over and then importing the old one
  4. By adding a label with a break-glass policy flag to the Pod specification of the deployment
Show the answer and explanation

Answer: D

Why this is correct
Breakglass provides an emergency escape hatch that lets you override Binary Authorization policy enforcement so that an image the policy would disallow can be deployed. It follows the recommendations of the Kubernetes admission controller specification, which is why it is requested in the workload itself: to enable breakglass you add a label field to the Pod specification with a break-glass policy flag. The use of breakglass is then recorded in Cloud Audit Logs.

Why the other options are wrong
"By importing a temporary policy that turns enforcement off for the cluster until the incident is over and then importing the old one" … Breakglass is an escape hatch for the deployment itself and does not depend on rewriting the policy. The page switches it on with a label in the Pod specification.
"By marking the image in Artifact Registry as approved, so Binary Authorization treats it as compliant with the policy" … Breakglass is for deploying an image that the policy blocks. Making an image meet the policy is a different mechanism, and the page enables breakglass through the Pod specification.
"By restarting the cluster with a start-up setting that removes its admission controller for the duration of the deployment" … The page says the feature is implemented consistent with the Kubernetes admission controller specification. The controller stays in place, and a label on the Pod asks it to allow the image.

Key point
Breakglass is a per-deployment request carried in the Pod specification, not a change of the cluster policy.

Go to the Professional Cloud Developer practice app (10 free questions; purchase unlocks all questions)

See the full practice set