Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can you configure the unit testing process to ensure that code in a Cloud Source Repositories repository cannot be deployed to Cloud Functions (via a specific service account) without first passing all unit tests?
A
Configure Cloud Build to deploy the Cloud Function. If the code passes the tests, a deployment approval is sent to you.
B
Configure Cloud Build to deploy the Cloud Function, using the specific service account as the build agent. Run the unit tests after successful deployment.
C
Configure Cloud Build to run the unit tests. If the code passes the tests, the developer deploys the Cloud Function.
D
Configure Cloud Build to run the unit tests, using the specific service account as the build agent. If the code passes the tests, Cloud Build deploys the Cloud Function.