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

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.