
Answer-first summary for fast verification
Answer: Verify that the Cloud Build service account is assigned the Cloud Functions Developer role.
The deployment failure after successful code validation suggests a permissions issue. Cloud Build uses a service account to interact with other GCP services. If this service account lacks the necessary permissions (roles/cloudfunctions.developer) to deploy Cloud Functions, the deployment step in Cloud Build will fail. Option D addresses this by ensuring the service account has the required role. Other options (A, B, C) relate to quotas, build parameters, or transient errors, which are less likely given the scenario's context.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your development team has created multiple Cloud Functions in Java, along with integration and service tests. You are using Cloud Build to build, deploy, and execute the tests. The Cloud Build job reports deployment failures right after successful code validation. What steps should you take to resolve this?
A
Check the maximum number of Cloud Function instances.
B
Verify that your Cloud Build trigger has the correct build parameters.
C
Retry the tests using the truncated exponential backoff polling strategy.
D
Verify that the Cloud Build service account is assigned the Cloud Functions Developer role.
No comments yet.