Google Cloud Professional Cloud Developer — Question 203
Your development team has built several Cloud Functions using Java along with corresponding integration and service tests. You are building and deploying the functions and launching the tests using Cloud Build. Your Cloud Build job is reporting deployment failures immediately after successfully validating the code. What should you do?
Answer options
- 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.
Correct answer: D
Explanation
The correct answer is D because the Cloud Build service account must have the necessary permissions to deploy Cloud Functions. If it lacks the Cloud Functions Developer role, it will not be able to perform the deployment, leading to failures. Options A, B, and C do not directly address permission issues that could cause deployment failures.