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.
A financial services firm is deploying a proprietary fraud-detection system on Google Cloud using Vertex AI datasets, custom training pipelines, Model Registry, and online prediction endpoints. Existing Vertex AI models and endpoints were previously created in a sandbox project without customer-managed encryption keys (CMEK) or network restrictions. Before moving to production, the security team mandates the following controls:
199.36.153.4/30), and prevent unauthorized copying of training data or model weights.Which architecture should you implement?
pypi.org so pipelines can install Python dependencies dynamically at runtime, and deploy models to Private Service Connect endpoints while attaching IAM policies directly to the private endpoint resources. Update the existing Vertex AI models and training pipelines in place to attach CMEK keys from a central security project, grant key administrators roles/cloudkms.admin and roles/storage.objectViewer to verify key functionality, assign roles/aiplatform.admin to the pipeline service account, and retain Admin Activity logs in the ML project's _Default log bucket.This option attempts to modify existing Vertex AI models and pipelines in place for CMEK, configure a VPC Service Controls egress rule for pypi.org, attach IAM policies directly to Private Service Connect (PSC) endpoint resources, grant broad administrative roles, and keep default logs inside the ML project.
encryptionSpec.pypi.org. Pip installs from the public internet fail with timeouts unless packages are pre-built into containers or hosted in Artifact Registry.roles/aiplatform.admin to the pipeline service account allows it to modify production endpoints, and granting key administrators roles/storage.objectViewer violates KMS separation of duties.logging.sinks.update or logging.logEntries.delete).pypi.org, and direct IAM on PSC endpoints) are technically unsupported on Google Cloud.gcloud services vpc-peerings enable-vpc-service-controls) to remove the producer 0.0.0.0/0 route and use restricted.googleapis.com (199.36.153.4/30), and pre-package pipeline dependencies in custom containers (install_kfp_package=False). Recreate the datasets, pipelines, and models with CMEK stored in a dedicated security project where key administrators lack decryption permissions, deploy models to new Private Service Connect endpoints created after perimeter enforcement, apply dedicated least-privilege service accounts with IAM Conditions, and export Data Access audit logs for aiplatform.googleapis.com and Cloud KMS via hierarchical sinks to a restricted logging project alongside API gateway rate limiting.This solution combines VPC Service Controls, Private Service Connect (PSC), customer-managed encryption keys (CMEK), least-privilege IAM, and Data Access audit logging to create strict network, cryptographic, identity, and observability boundaries around Vertex AI assets.
gcloud services vpc-peerings enable-vpc-service-controls removes the producer VPC's 0.0.0.0/0 default internet route and configures private Cloud DNS zones resolving to the restricted VIP (199.36.153.4/30). Pre-building dependencies into containers (install_kfp_package=False) avoids blocked pypi.org downloads, and deploying to new PSC endpoints created after perimeter enforcement ensures private serving.aiplatform.googleapis.com and Cloud KMS, exporting them via hierarchical log sinks to an isolated logging project, and enforcing rate limiting via Apigee or API Gateway protect against log tampering and expose anomalous query bursts indicative of model inversion.Unlike partial configurations using private.googleapis.com, pre-perimeter endpoints, or retroactive key updates, this design accounts for Vertex AI's exact VPC-SC networking, container build, and CMEK creation constraints while establishing end-to-end observability.
*.googleapis.com to private.googleapis.com (199.36.153.8/30) without modifying service networking peerings, and retain the existing shared public endpoint to avoid deployment downtime. Recreate the training pipelines with CMEK keys stored in the same ML project, grant the pipeline service account roles/aiplatform.user and roles/cloudkms.cryptoKeyEncrypterDecrypter, and enable Vertex AI request-response logging with default Admin Activity audit logs to monitor for model inversion.This approach places the ML project inside a VPC Service Controls perimeter while routing traffic through private.googleapis.com (199.36.153.8/30), retaining pre-existing shared public endpoints, co-locating Cloud KMS keys in the ML project, and relying on request-response logging with default Admin Activity audit logs.
0.0.0.0/0 default route to the internet gateway and does not resolve Google APIs to the restricted VIP (199.36.153.4/30).private.googleapis.com (199.36.153.8/30) provides private routing without enforcing VPC Service Controls perimeter boundaries.This design keeps VPC Service Controls permanently in dry-run mode, relies on Cloud NAT for PyPI access, fronts an existing Vertex AI endpoint with Cloud Armor, restricts CMEK enforcement solely to Cloud Storage buckets, and uses HTTP WAF logs instead of Data Access audit logs.
aiplatform.googleapis.com API calls unaudited.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