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 organization is deploying custom-trained models and tuned foundation models to Google Cloud Vertex AI for low-latency online inference. Workloads across multiple isolated consumer VPCs—including recently acquired networks with overlapping RFC 1918 IP address ranges—and on-premises clients connected via Cloud Interconnect to a transit VPC must invoke the endpoints privately.
You must enforce the following security and networking requirements:
Which architecture should you implement?
all-apis bundle doPrivate Service Connect (PSC) backends use a PSC network endpoint group (NEG) behind a Google Cloud load balancer to front supported published services with centralized certificates, URL routing, or Cloud Armor policies. The all-apis bundle and private.googleapis.com. VIP provide private network paths to all Google APIs, including services outside VPC Service Controls.
all-apis bundle and resolving *.googleapis.com. to private.googleapis.com. without restrictive VPC Service Controls service patterns permits private access to Google APIs that are not protected by VPC Service Controls, violating the requirement to restrict access strictly to VPC-SC-supported services.private.googleapis.com. (199.36.153.8/30) enables access to non-VPC-SC APIs, creating potential data exfiltration vectors compared to restricted.googleapis.com. (199.36.153.4/30) or the vpc-sc bundle.You were frontending a supported published service (such as Apigee or a custom VPC-hosted internal service) that supports PSC NEGs for centralized L7 load balancing, and your organization explicitly required private access to Google APIs not supported by VPC Service Controls.
In Google Cloud, a PSC endpoint is a regional forwarding rule assigned an internal IP address inside a specific VPC subnet. VPC firewall rules evaluate traffic strictly in ascending numerical order of priority, where lower integers represent higher precedence (for example, priority 1000 is evaluated before priority 65534).
DENY rule for 0.0.0.0/0 at priority 1000 and an ALLOW rule for tcp:443 to the PSC IPs at priority 65534 causes the deny rule to match first and drop all outbound traffic, completely blocking prediction and API requests to the PSC endpoints.1000) for specific ALLOW exceptions and lower priorities (larger numbers, such as 65534) for broad catch-all DENY rules.Instead of VPC Network Peering, the spoke VPCs were connected via Network Connectivity Center (NCC) VPC spokes with PSC propagation (without overlapping CIDRs) or each spoke had local forwarding rules, and the firewall priorities were reversed so 1000 allowed tcp:443 to the PSC IPs before 65534 denied all other egress.
Private Service Connect (PSC) establishes unidirectional, private connectivity from consumer VPCs and hybrid networks to Google-managed Vertex AI prediction endpoints using internal IP addresses assigned from regular consumer subnets. Pairing PSC prediction endpoints with a PSC endpoint for Google APIs (vpc-sc bundle), Cloud DNS private zones, egress firewall rules, VPC Service Controls, and IAM creates a defense-in-depth architecture for sensitive machine learning workloads.
ServiceAttachment. Deploying regional forwarding rules inside each consumer VPC and the transit VPC lets workloads with overlapping RFC 1918 ranges and on-premises clients over Cloud Interconnect reach the models privately.vpc-sc API bundle combined with private Cloud DNS zones redirecting *.googleapis.com. to the PSC IP restricts control-plane and data-plane API calls exclusively to VPC Service Controls-supported services, blocking access to unsupported Google APIs.65534) deny-all egress rule (0.0.0.0/0) blocks default internet paths, while a higher-priority (1000) allow rule permits tcp:443 solely to the PSC endpoint IPs. Separate consumer project allowlists on Vertex AI endpoints provision distinct ServiceAttachment resources to isolate tenant access, reinforced by VPC Service Controls perimeters and least-privilege IAM policies.Private Service Connect is the recommended architecture over Private Services Access because it avoids IP exhaustion, supports tuned foundation models and TLS, handles overlapping consumer subnets seamlessly, and integrates cleanly with vpc-sc API bundles and strict egress firewalling.
Private Services Access (PSA) establishes a private connection between a customer VPC network and Google's service producer VPC network using VPC Network Peering. It requires the consumer to reserve a dedicated internal IP address range for the service producer to provision tenant resources.
gcloud services vpc-peerings enable-vpc-service-controls removes the producer network's 0.0.0.0/0 default internet route and configures private DNS zones (googleapis.com, pkg.dev, gcr.io) for the producer.The workload only used custom-trained or AutoML tabular models without TLS requirements, resided in a single non-overlapping VPC network per project, and did not require transitive access from peered spoke VPCs or tuned foundation model serving.
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