Generative AI Leader Practice Question: Business Strategies for Generative AI Solutions
Exhibit
ERROR: (gcloud.ai.platform.predict) PERMISSION_DENIED: Permission 'aiplatform.endpoints.predict' denied on resource 'projects/my-project/locations/us-central1/endpoints/123456' (or resource may not exist).
Refer to the exhibit. A user receives this error when trying to get predictions from a Vertex AI endpoint. What is the most likely cause?
⚠ Common exam trap
Google Cloud exam questions often test the distinction between resource existence errors (404) and authorization errors (403), so candidates mistakenly choose 'endpoint does not exist' when the actual error is a permissions failure.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The user lacks necessary IAM permissions
The error message indicates an authorization failure when calling the Vertex AI endpoint. The most likely cause is that the user's IAM principal lacks the necessary permissions, such as `aiplatform.endpoints.predict`, to invoke the endpoint. Even if the endpoint and model are correctly deployed, missing IAM roles (e.g., Vertex AI User or custom role) will block prediction requests.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The endpoint does not exist
Why it's wrong here
Would show NOT_FOUND, not PERMISSION_DENIED.
- ✗
The endpoint is in a different region
Why it's wrong here
Would produce a different error.
- ✓
The user lacks necessary IAM permissions
Why this is correct
PERMISSION_DENIED indicates missing permissions.
- ✗
The model is not deployed
Why it's wrong here
Would produce a different error.
Go deeper
Related to this question
About these practice questions
One of 683 original Generative AI Leader practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.