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.
An enterprise insurer processes thousands of multi-page prior-authorization PDFs daily using Cloud Run, the Document AI API with custom extractors, and Gemini models on Agent Platform. Telemetry reveals three production bottlenecks:
Which optimization strategy should you implement?
SemanticCacheLookup and SemanticCachePopulate policies backed by Vector Search in front of Document AI and Gemini endpoints, disable PDF preprocessing to preserve raw scan fidelity, and route all requests to the largest available Gemini model without confidence thresholds.Apigee SemanticCacheLookup and SemanticCachePopulate policies integrate with Vector Search to embed incoming text prompts, retrieve previously generated responses for semantically similar queries, and bypass redundant LLM invocations. Routing to the largest available foundation model prioritizes maximum reasoning capacity on every call.
This strategy would be appropriate for a customer-facing knowledge-base chatbot answering high volumes of repetitive, stateless natural-language questions where slight phrasing differences should return the same cached guidance.
Unlike semantic caching (which caches full query-response pairs), context caching on Agent Platform caches only the shared prefix tokens (the policy manual) while still evaluating each patient's unique clinical payload fresh.
vLLM on GKE Spot VMs, tuning gpu_memory_utilization and GKE Inference Gateway prefix-cache routing instead of page filtering or confidence thresholds.vLLM on GKE DoServing self-hosted open-weight models on Google Kubernetes Engine (GKE) with vLLM, 4-bit quantization, Spot VMs, and GKE Inference Gateway reduces GPU memory footprints, lowers compute costs through preemptible hardware, and routes requests across replicas using prefix-cache awareness and KV-cache metrics.
gpu_memory_utilization), and custom OCR pipelines violates architectural efficiency.This architecture would be appropriate when an organization requires self-hosted open-weight model control on GKE, has dedicated MLOps engineering to manage GPU clusters, and pairs reserved baseline capacity with Spot VMs for burst traffic.
This integrated optimization pattern combines request payload optimization for document parsing, prefix context caching and reserved capacity for foundation model inference, and confidence-based routing for selective human-in-the-loop (HITL) verification. Together, these techniques balance API spend, response latency, and prediction quality across multi-stage document intelligence pipelines.
429 quota exhaustion errors during traffic spikes.Unlike prompt truncation, generic semantic caching, or migrating to self-hosted quantized models, this approach preserves the specialized accuracy of Document AI and Gemini while targeting the exact drivers of cost, TTFT latency, and adjudication risk.
PromptTokenLimit policies to truncate prompts exceeding 8,000 tokens.PromptTokenLimit Policies DoBatch inference executes large volumes of non-urgent predictions asynchronously at discounted per-request rates compared to online serving. In Apigee API proxies, PromptTokenLimit and LLMTokenQuota policies enforce hard limits on the number of tokens permitted per request or consumer to prevent runaway generative AI spend.
PromptTokenLimit strips essential policy rules or patient clinical evidence, causing incorrect medical determinations.PromptTokenLimit is a governance guardrail that rejects or caps oversized payloads; it does not compress or cache repeated context intelligently.This pattern would fit an offline analytics pipeline processing historical claim archives where interactive latency is unnecessary, clinical prompts are naturally concise, and PromptTokenLimit is used solely to block malformed or abusive user inputs.
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