Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Machine Learning Engineer practice bank has an additional 974 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your MLOps team is deploying Vertex AI Workbench (with custom kernels) and Colab Enterprise inside a VPC Service Controls perimeter. Administrators provision single-user Workbench instances for data scientists under these requirements:
roles/editor permissions.Which configuration set should you implement?
ainotebooks.restrictPublicIp enforced, grant users roles/aiplatform.serviceAgent on the project, include aiplatform.googleapis.com and dataform.googleapis.com in the perimeter with DNS peering routing *.notebooks.googleusercontent.com to 199.36.153.4/30 (restricted.googleapis.com), assign roles/aiplatform.colabEnterpriseUser, and remove that project-level role when offboarding users.This configuration attempts to secure notebook instances using the Compute Engine default service account, an organization policy restricting external IPs, a Google-managed service agent role, the Restricted Google APIs VIP (restricted.googleapis.com), and standard Colab Enterprise predefined roles.
iam.automaticIamGrantsForDefaultServiceAccounts is enforced, the Compute Engine default service account automatically receives roles/editor on the project, giving single-user Workbench users broad write access across project resources.roles/aiplatform.serviceAgent is reserved exclusively for Google-managed service agents. Granting it to human principals violates least-privilege principles; users instead require roles/iam.serviceAccountUser on a dedicated custom service account.*.notebooks.googleusercontent.com to 199.36.153.8/30 (private.googleapis.com), not 199.36.153.4/30 (restricted.googleapis.com).roles/aiplatform.colabEnterpriseUser includes dataform.repositories.list, exposing all project notebooks. Furthermore, removing project-level IAM roles leaves resource-level roles/dataform.codeOwner bindings intact on notebooks the user created.No scenario makes assigning roles/aiplatform.serviceAgent to human users valid; this approach would only be viable if replaced with a custom service account, private.googleapis.com DNS routing, a custom Colab role, and IAM Deny policies.
roles/iam.serviceAccountUser on it, configure IAM Conditions on the service account for device-level checks, add only aiplatform.googleapis.com and notebooks.googleapis.com to the VPC Service Controls perimeter, assign roles/aiplatform.colabEnterpriseUser to restrict visibility to user-created notebooks, and remove project-level IAM bindings during offboarding.This setup correctly attaches a custom service account with roles/iam.serviceAccountUser for single-user Workbench provisioning and removes external IPs, but relies on IAM Conditions for device checks, omits Dataform from the perimeter, and uses standard Colab Enterprise project roles.
aiplatform.googleapis.com and notebooks.googleapis.com leaves dataform.googleapis.com unprotected outside the perimeter or breaks perimeter-bound notebook storage operations.roles/aiplatform.colabEnterpriseUser grants dataform.repositories.list, allowing users to list all notebooks in the project regardless of creator or sharing settings.roles/dataform.codeOwner roles automatically granted when a user creates a Colab Enterprise notebook.*.notebooks.googleusercontent.com to private.googleapis.com (199.36.153.8/30), custom Workbench kernels fail inside VPC Service Controls.It would apply to a basic non-Colab Workbench setup without custom kernels or strict device-trust requirements, provided Dataform isolation and resource-level offboarding were not needed.
roles/iam.serviceAccountUser on it, enable proxy access without external IPs, apply Access Context Manager with Chrome Enterprise Premium, include aiplatform.googleapis.com and dataform.googleapis.com in the perimeter with DNS peering routing *.notebooks.googleusercontent.com to 199.36.153.8/30 (private.googleapis.com), assign Colab custom roles excluding dataform.repositories.list, and revoke offboarded users via IAM Deny policies or resource-level role removal.This defense-in-depth architecture combines least-privilege custom service accounts, private VPC networking with proxy access, Context-Aware Access, VPC Service Controls with specialized DNS peering, and granular Dataform/IAM governance across both Vertex AI Workbench and Colab Enterprise.
roles/editor, while granting the designated single user roles/iam.serviceAccountUser (iam.serviceAccounts.actAs) lets them launch and use the instance. Clearing external IPs blocks unsolicited inbound traffic while proxy access preserves secure browser connectivity to JupyterLab.aiplatform.googleapis.com and dataform.googleapis.com protects both runtimes and notebook storage inside the VPC Service Controls perimeter. Routing *.notebooks.googleusercontent.com to 199.36.153.8/30 (private.googleapis.com) ensures custom Workbench kernels operate properly inside the perimeter, while Access Context Manager with Chrome Enterprise Premium evaluates user and device attributes on every authentication.dataform.repositories.list prevents users from enumerating notebooks across the project. Because notebook creators automatically receive resource-level roles/dataform.codeOwner, pairing project-level revocation with IAM Deny policies or explicit per-notebook role removal guarantees zero residual access.Unlike predefined roles, default service accounts, or restricted.googleapis.com routing, every control directly resolves documented architectural behaviors and security edge cases for Vertex AI Workbench and Colab Enterprise.
ainotebooks.disableTerminal with Access Context Manager, include aiplatform.googleapis.com and dataform.googleapis.com in the perimeter while peering *.notebooks.googleusercontent.com to 199.36.153.4/30 (restricted.googleapis.com), grant Colab users roles/dataform.codeCreator at the project level, and delete their project IAM bindings upon offboarding.This configuration uses a custom service account, Access Context Manager, organization policies (ainotebooks.disableTerminal), and includes both aiplatform.googleapis.com and dataform.googleapis.com in the VPC Service Controls perimeter, while disabling Workbench proxy access and assigning roles/dataform.codeCreator.
*.notebooks.googleusercontent.com to 199.36.153.4/30 (restricted.googleapis.com) causes custom Workbench kernels to fail under VPC Service Controls; they must route to 199.36.153.8/30 (private.googleapis.com).roles/dataform.codeCreator still permits users to list the names of all code assets and notebooks in the project via the Dataform API or CLI.roles/dataform.codeOwner roles on user-created notebooks. Additionally, users provisioned a single-user instance by an administrator still need roles/iam.serviceAccountUser on the custom service account.ainotebooks.disableTerminal: Blocks terminal access inside JupyterLab for production hardening, which is separate from proxy connectivity.The team connected exclusively via private VPC SSH tunnels rather than JupyterLab proxy access, used standard kernels without custom kernel DNS requirements, and did not need strict notebook-listing isolation.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated