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 ML engineering team operates a real-time two-tower recommendation system on Gemini Enterprise Agent Platform experiencing p99 latency spikes under the following conditions:
FeatureView syncs saturate CPU.Which configuration should the team implement to minimize online lookup latency and resolve serving bottlenecks?
COSINE_DISTANCE with minReplicaCount set to 1 per shard, enable Apigee SemanticCacheLookup for entity feature caching, and review Active Assist recommendations to trace real-time latency spikes.Vertex AI Feature Store (Legacy) is the predecessor managed Bigtable feature store model, COSINE_DISTANCE directly computes angular distance between unnormalized vectors, Apigee SemanticCacheLookup caches LLM responses for semantically similar prompts, and Active Assist generates periodic optimization insights across Google Cloud resources.
COSINE_DISTANCE incurs higher compute latency than DOT_PRODUCT_DISTANCE paired with UNIT_L2_NORM. Additionally, setting minReplicaCount to 1 per shard violates the minimum two-replica requirement for Agent Platform SLA coverage and leaves no autoscaling buffer for traffic spikes.SemanticCacheLookup matches natural-language prompt embeddings to cached generative AI outputs, which is unsuitable for deterministic, exact-key entity feature lookups better served by Memorystore.minReplicaCount=1) risk downtime during maintenance or zone disruptions.minReplicaCount=1 would be acceptable for non-production development endpoints without SLA requirements, Apigee SemanticCacheLookup would be used in front of generative AI API proxies to cache repetitive LLM prompts, and Active Assist would be used for periodic post-deployment cost and idle-resource optimization.
FeatureOnlineStore with Bigtable online serving (setting max_node_count for sync bursts and staggering off-peak FeatureView syncs), cache hot lookups in Memorystore over Private Service Connect, tune a Vector Search index with DOT_PRODUCT_DISTANCE, UNIT_L2_NORM, fewer larger shards, and maxReplicaCount scaling at 60% CPU/memory, and monitor endpoint inference metrics, Cloud Monitoring, and Cloud Trace.This architecture pairs Agent Platform Feature Store using Bigtable online serving for high-volume tabular features with Agent Platform Vector Search for low-latency approximate nearest neighbor (ANN) embedding retrieval. Memorystore provides an in-memory cache for hot entity lookups, Private Service Connect eliminates public network hops, and Cloud Monitoring plus Cloud Trace deliver end-to-end observability across the serving layer.
max_node_count accommodates sync bursts, while staggering FeatureView sync schedules across off-peak windows (paired with timestamp-partitioned BigQuery sources) prevents concurrent sync jobs from saturating CPU during peak serving traffic.distanceMeasureType as DOT_PRODUCT_DISTANCE with FeatureNormType set to UNIT_L2_NORM computes cosine similarity using the most latency-optimized distance operation. Selecting fewer, larger shards processes fewer candidate sets per query, reducing both average latency and p99 variability. Setting minReplicaCount to at least 2 per shard meets SLA availability requirements, while autoscaling maxReplicaCount when CPU or memory exceeds 60% absorbs load spikes.max_node_count) and replica autoscaling (maxReplicaCount) dynamically handle sync and query surges.Unlike deprecated Optimized online serving or brute-force vector scans, this topology separates structured feature lookups from ANN indexing so each workload scales independently on purpose-built infrastructure while providing full distributed tracing and shard telemetry.
FeatureOnlineStore with Optimized online serving over a public endpoint for both tabular features and embeddings, enable continuous data sync on FeatureView resources, tune the vector index with a larger number of smaller shards, and run scheduled FeatureMonitorJob checks to diagnose serving latency bottlenecks.Optimized online serving is a legacy serving mode in Agent Platform Feature Store that previously supported co-located embedding retrieval, while continuous data sync streams incremental BigQuery additions into a FeatureView. Smaller shards partition a Vector Search index across more nodes, and FeatureMonitorJob executes scheduled statistical profiling on registered features.
FeatureMonitorJob detects data anomalies and feature drift in the Feature Registry; it does not track serving RPC latency, queue depth, or CPU/memory saturation.FeatureView after creation.Continuous data sync would be appropriate for append-only BigQuery tables in us, eu, or us-central1 backed by Bigtable online serving, smaller shards would be suitable when maximizing recall is more important than tail latency, and FeatureMonitorJob would be used to detect upstream data drift rather than serving bottlenecks.
FeatureView syncs, deploy embeddings to a Vector Search brute-force index with leafNodeEmbeddingCount set to 20,000, enable Agent Platform context caching for hot tabular entity lookups, and track model FLOPs utilization (MFU) to isolate serving bottlenecks.A brute-force index performs an exhaustive linear scan over all stored embeddings to return exact nearest neighbors, while leafNodeEmbeddingCount controls how many vectors reside in each tree leaf during ANN indexing. Context caching stores repeated prompt tokens for generative AI models, and model FLOPs utilization (MFU) measures accelerator compute efficiency.
FeatureView syncs during peak traffic dramatically spikes Bigtable CPU utilization while online inference queries are competing for the same cluster resources, severely degrading p99 lookup latency.leafNodeEmbeddingCount to 20,000 exceeds the recommended 15,000 ceiling, degrading both query latency and recall quality.FeatureOnlineStore.A brute-force index would be appropriate offline to establish a ground-truth recall baseline when tuning ANN parameters, context caching would be used for Gemini LLM workloads with large repeated prompt contexts, and MFU (alongside goodput) would be tracked to optimize accelerator efficiency during model training.
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