Binary Authorization Attestor Implementation

PCDOE By islever Editorial Last updated

Securing the deployment pipeline.

Short answer

C Enable Binary Authorization on the GKE cluster, create a Cloud KMS keyring and attestor, and use the key to create an attestation after the build.

Question

You have a CI/CD pipeline set up in Cloud Build that builds container images. These containers are stored in Artifact Registry. You need to ensure that only images built by the Cloud Build pipeline in your production project are deployed to your Google Kubernetes Engine (GKE) cluster. You want to minimize the amount of manual effort required for implementation and maintenance. What should you do?
  1. Enable Binary Authorization on the GKE cluster. Create a Cloud Run function triggered by Artifact Registry INSERT events to verify that pushed containers have the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.
  2. Configure Artifact Registry to only allow the Cloud Build service account to push containers.
  3. Enable Binary Authorization on the GKE cluster. Create a Cloud Key Management Service (Cloud KMS) keyring and the built-by-cloud-build attestor. After Cloud Build pushes the container, use the key to create an attestation. Update the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor. Correct Answer
  4. Enable Binary Authorization on the GKE cluster. Configure the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.

Key Takeaways

The exam tests the complete lifecycle of Binary Authorization, revealing the common trap of skipping the infrastructure setup (KMS key, attestor creation) and image signing steps required before policies can function.

This question addresses securing GKE deployments using Binary Authorization and Cloud KMS attestors to ensure only pipeline-built images are deployed. It establishes that creating the attestor and signing images is a prerequisite for policy enforcement.

Common mistake: Option D is the most frequent incorrect choice because it assumes the attestor exists or that configuring the policy alone is sufficient, ignoring the operational requirement to sign images with the created key.

Expert Analysis

Why the Answer Is Correct

Option C is correct because it provides the complete, minimal-effort solution for implementing attestation. It involves enabling Binary Authorization, setting up the necessary cryptographic identity (Cloud KMS keyring and attestor), and integrating the signing process into the CI/CD pipeline (implied by 'After Cloud Build pushes...'). Without the key and the actual signature, no image can be verified.

Why the Other Options Are Wrong

Option A suggests using Cloud Run functions for verification, which adds unnecessary manual maintenance and complexity compared to native Binary Authorization integration. Option B restricts push access but does not prevent an attacker from pushing directly or bypassing controls if permissions change; it also doesn't leverage the specific 'built-by-cloud-build' attestor concept. Option D configures the policy but fails to create the attestor or sign the images, rendering the policy useless as no valid attestations would exist.

Community Comment Notes

Commenters emphasized that D is a trap, noting that "imply updating the Binary Authorization policy without creating the Cloud KMS key... will cause all deployments to fail". The consensus highlights that the physical/digital assets (key, attestor, signature) must exist before the policy can enforce them.

Exam Strategy

Always verify that the prerequisites for a security control (like keys, certificates, or identities) are explicitly included in the answer option. In PCDOE questions about 'secure deployment', look for options that cover both the configuration of the guardrail and the implementation of the mechanism being guarded.

Frequently Asked Questions

Why is Option D insufficient for Binary Authorization?

Option D configures the policy but does not create the attestor or sign the images. Without signatures, no image passes the policy check.

Does Binary Authorization require manual intervention?

No, when integrated with Cloud Build, the signing process can be automated via the pipeline, minimizing manual effort as requested.

More PCDOE FAQ →

Discussion 2 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 2

  1. nbeeckx 👍 1 Answered C
    D is incorrect. imply updating the Binary Authorization policy without creating the Cloud KMS key, configuring the attestor, and signing the built images via Cloud Build will cause all deployments to fail because no valid attestations exist for Binary Authorization to verify.
  2. rage99 👍 1 Answered D
    D. Enable Binary Authorization on the GKE cluster. Configure the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Practice All PCDOE Questions

Access 75 questions with complete answers and detailed explanations.

View Full PCDOE Practice Test →

← Back to PCDOE Study Guide