Google Cloud Professional Cloud Developer — Question 287

You use Cloud Build to build and test container images prior to deploying them to Cloud Run. Your images are stored in Artifact Registry. You need to ensure that only container images that have passed testing are deployed. You want to minimize operational overhead. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because Binary Authorization ensures that only images that have passed specific tests can be deployed, thus enhancing security and compliance. Option A does not enforce testing prior to deployment, while C requires additional infrastructure with a GKE cluster, increasing operational overhead. Option D, while useful, does not provide the same level of enforcement as Binary Authorization.