Google Cloud Professional Cloud Developer — Question 227

You work for a financial services company that has a container-first approach. Your team develops microservices applications. A Cloud Build pipeline creates the container image, runs regression tests, and publishes the image to Artifact Registry. You need to ensure that only containers that have passed the regression tests are deployed to Google Kubernetes Engine (GKE) clusters. You have already enabled Binary Authorization on the GKE clusters. What should you do next?

Answer options

Correct answer: A

Explanation

The correct answer is A because creating an attestor and policy is essential for enforcing Binary Authorization, and using Kritis Signer to generate an attestation after the regression tests ensures that only validated images are deployed. Options B and C do not address the requirement of creating an attestation linked to Binary Authorization, while option D, although partially correct, does not specify the use of Kritis Signer which is crucial for the attestation process.