Practice
1. For a feed ranking system, which metric should be optimized to ensure users see the most relevant content?
easy
Solution
Step 1: Understand the goal of relevance
CTR measures how often users click on posts, indicating relevance.Step 2: Eliminate wrong options
Page load time affects performance, not relevance. Number of ads and total time spent are not direct indicators of content relevance.Final Answer:
Option A -> Option AQuick Check:
CTR indicates relevance. [OK]
Hint: CTR indicates relevance. [OK]
Common Mistakes:
2. For a semantic search system using a Bi-Encoder, which metric is most appropriate to evaluate the retrieval performance?
easy
Solution
Step 1: Understand retrieval evaluation metrics
Precision@K measures the relevance of the top K retrieved documents, which is crucial for retrieval tasks.Step 2: Eliminate wrong options
Accuracy and F1 Score are more suited for classification tasks, Mean Squared Error is for regression.Final Answer:
Option B -> Option BQuick Check:
Precision@K = retrieval relevance [check]
Hint: Precision@K = retrieval relevance [check]
Common Mistakes:
3. In an HNSW-based vector search system, what is a likely failure mode if the graph's maximum layer is not properly maintained?
medium
Solution
Step 1: Understand the role of the maximum layer.
The maximum layer affects traversal efficiency.Step 2: Eliminate wrong options.
Precision, recall, and memory usage are not directly affected by the maximum layer.Final Answer:
Option C -> Option CQuick Check:
Max layer affects traversal speed. [OK]
Hint: Max layer affects traversal speed. [OK]
Common Mistakes:
4. As a content-based filtering system scales to 10x more items, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Analyze scaling impact
Scaling to more items increases the demand for computing and updating item embeddings, making it a potential bottleneck.Step 2: Eliminate wrong options
A: User profile storage scales with users, not items. C: Recommendation generation is more affected by user scale. D: Interaction logging is more about user activity than item count.Final Answer:
Option A -> Option AQuick Check:
More items strain embedding computation. [OK]
Hint: More items strain embedding computation. [OK]
Common Mistakes:
5. As the user base of an ML platform grows 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling on each component.
Serving Infrastructure is directly impacted by increased user requests, making it a likely bottleneck.Step 2: Eliminate wrong options.
Model Training and Data Ingestion are less affected by user growth, and Feature Store scales with data, not users.Final Answer:
Option C -> Option CQuick Check:
Serving scales with user requests. [OK]
Hint: Serving scales with user requests. [OK]
Common Mistakes:
