PDE Preparing and Using Data for Analysis Practice Question
A company uses Vertex AI Workbench notebooks for data exploration and model development. They want to ensure that the notebook environment can access BigQuery data using the same permissions as the user's Google Cloud account. What is the recommended setup?
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
✓
Create a service account with BigQuery access and attach it to the notebook instance.
Vertex AI Workbench notebooks can use user-managed notebooks with user credentials. By setting the 'User-managed notebook' type and using the 'Add service account' option, you can grant the notebook instance a service account with appropriate BigQuery permissions. Alternatively, you can use the built-in 'Use the same identity as the user' option which uses the user's credentials via OAuth. However, the recommended approach for production is to use a service account for consistent permissions.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a Cloud Functions proxy to authenticate to BigQuery from the notebook.
Why it's wrong here
Unnecessary extra complexity; the notebook can directly authenticate.
- ✓
Create a service account with BigQuery access and attach it to the notebook instance.
Why this is correct
Best practice: use a service account for consistent, granular permissions that are not tied to a specific user.
- ✗
Log in to the notebook using the user's Google Cloud credentials via oauth2client.
Why it's wrong here
While possible, this relies on the user's personal credentials and may not be suitable for production or sharing.
- ✗
Grant the Compute Engine default service account BigQuery access.
Why it's wrong here
The default service account may not have the required permissions by default, and it's better to create a dedicated service account.
Go deeper
Related to this question
About these practice questions
One of 890 original PDE 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 PDE 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 PDE exam.