Professional Cloud DevOps Engineer Practice Questions

Google Cloud Professional Cloud DevOps Engineer exam preparation

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

Professional Cloud DevOps Engineer free question 4 / 10 · Domain 2: Building, implementing, and maintaining CI/CD pipelines, including continuous testing, for application, infrastructure, and ML workloads

A pipeline uses the open source Cloud Build step that signs an image with a Cloud KMS key and creates a Binary Authorization attestation. Which roles does the Cloud Build service account need?

  1. Binary Authorization Attestor Viewer, Cloud KMS CryptoKey Signer/Verifier, and Notes Attacher
  2. Owner on the project, letting the steps of the pipeline reach the signing key and the registry
  3. Binary Authorization Policy Editor, Cloud KMS Admin, and Artifact Registry Administrator
  4. Cloud Build Editor, Secret Manager Secret Accessor, and Cloud Deploy Releaser on the project
Show the answer and explanation

Answer: A

Why this is correct
The step signs the image with a key in Cloud KMS, creates the attestation, and uploads it to Binary Authorization. The guide lists three roles for the Cloud Build service account: Binary Authorization Attestor Viewer to read the attestor, Cloud KMS CryptoKey Signer/Verifier to sign with the key, and Artifact Analysis Notes Attacher to attach the attestation to the note.

Why the other options are wrong
"Binary Authorization Policy Editor, Cloud KMS Admin, and Artifact Registry Administrator" … These roles are broader than the step needs and do not include the permission to attach notes. The documented roles let it read the attestor, sign with the key, and attach the note.
"Cloud Build Editor, Secret Manager Secret Accessor, and Cloud Deploy Releaser on the project" … These roles cover builds, secrets, and releases. The attestation step needs to read the attestor, sign with the KMS key, and attach the attestation note.
"Owner on the project, letting the steps of the pipeline reach the signing key and the registry" … A basic role is far broader than the three roles in the guide, which is the least privilege that the step needs.

Key points
Attestation pipelines work best with a dedicated service account that holds just these three roles.

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

See the full practice set