Practice
1. In an A/B testing platform for ML models, which component is responsible for ensuring that users are consistently assigned to the same variant across multiple sessions?
easy
Solution
Step 1: Identify the role of each component.
The Session Persistence Layer ensures consistent user assignment across sessions.Step 2: Eliminate wrong options.
Randomization Engine assigns variants initially, User Segmentation Module groups users, and Experiment Dashboard displays results.Final Answer:
Option D -> Option DQuick Check:
Session consistency needs persistence. [OK]
Hint: Session consistency needs persistence. [OK]
Common Mistakes:
2. For a fine-tuning pipeline using RLHF, which metric is most appropriate to evaluate the alignment of model outputs with human preferences?
easy
Solution
Step 1: Understand the purpose of RLHF
RLHF aims to align model outputs with human preferences, which is best evaluated by a reward score reflecting human feedback.Step 2: Eliminate wrong options
A: Accuracy is too generic. B: Precision is for binary classification. D: F1 Score is for balance between precision and recall, not alignment.Final Answer:
Option B -> Option BQuick Check:
Reward Score reflects human feedback. [OK]
Hint: Reward Score reflects human feedback. [OK]
Common Mistakes:
3. When evaluating LLMs, why might you choose human evaluation over LLM-as-Judge?
medium
Solution
Step 1: Compare human evaluation and LLM-as-Judge
LLM-as-Judge can be biased by its training data, while human evaluation can provide diverse perspectives.Step 2: Eliminate wrong options
Human evaluation is not faster or more scalable, and it is more subjective than LLM-as-Judge.Final Answer:
Option D -> Option DQuick Check:
LLM-as-Judge bias vs. human diversity. [OK]
Hint: LLM-as-Judge bias vs. human diversity. [OK]
Common Mistakes:
4. In a visual search system, when should you prefer using an Approximate Nearest Neighbor (ANN) index over an exact search method?
medium
Solution
Step 1: Consider the trade-offs
ANN is preferred when low latency is crucial because it speeds up search at the cost of some accuracy.Step 2: Eliminate wrong options
Exact matches require exact search, small datasets don't benefit much from ANN, and one-dimensional search doesn't need ANN complexity.Final Answer:
Option A -> Option AQuick Check:
ANN for speed, not exactness. [OK]
Hint: ANN for speed, not exactness. [OK]
Common Mistakes:
5. As the number of images in a visual search system scales up by 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze scaling impact
The ANN index is likely to become a bottleneck as it handles search queries, which increase with more data.Step 2: Eliminate wrong options
Embedding model scales with compute, serving layer handles requests, and network bandwidth is less likely to be the first bottleneck.Final Answer:
Option A -> Option AQuick Check:
ANN index struggles first with scale. [OK]
Hint: ANN index struggles first with scale. [OK]
Common Mistakes:
