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
- A. Create an attestor and a policy. After a container image has successfully passed the regression tests, use Cloud Build to run Kritis Signer to create an attestation for the container image.
- B. Deploy Voucher Server and Voucher Client components. After a container image has successfully passed the regression tests, run Voucher Client as a step in the Cloud Build pipeline.
- C. Set the Pod Security Standard level to Restricted for the relevant namespaces. Use Cloud Build to digitally sign the container images that have passed the regression tests.
- D. Create an attestor and a policy. Create an attestation for the container images that have passed the regression tests as a step in the Cloud Build pipeline.
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.