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. In a feed ranking system, should you prioritize using collaborative filtering or content-based filtering when user data is sparse?
medium
Solution
Step 1: Analyze data sparsity
When user data is sparse, collaborative filtering struggles due to lack of interaction data.Step 2: Eliminate wrong options
Collaborative filtering needs user interactions. Content-based filtering uses item features, making it suitable for sparse data.Final Answer:
Option B -> Option BQuick Check:
Content-based works with sparse data. [OK]
Hint: Content-based works with sparse data. [OK]
Common Mistakes:
3. When deploying a fine-tuning pipeline at scale, should you prioritize using RLHF or DPO for optimizing model performance, and why?
medium
Solution
Step 1: Understand the roles of RLHF and DPO
RLHF aligns outputs with human preferences, while DPO ensures high-quality data input, which is foundational for any model training.Step 2: Eliminate wrong options
A: RLHF improves alignment, not accuracy directly. C: RLHF does not reduce computational costs. D: DPO does not simplify architecture but improves data quality.Final Answer:
Option D -> Option DQuick Check:
Data quality is foundational; prioritize DPO. [OK]
Hint: Data quality is foundational; prioritize DPO. [OK]
Common Mistakes:
4. In an ML monitoring platform, what is a likely failure mode if the alerting system is not properly calibrated?
medium
Solution
Step 1: Understand the role of alerting calibration
Proper calibration ensures alerts are meaningful and not overly sensitive.Step 2: Identify the failure mode
If not calibrated, the alerting system may trigger retraining too often, leading to unnecessary computational costs.Final Answer:
Option A -> Option AQuick Check:
Over-alerting = Frequent retraining [OK]
Hint: Over-alerting = Frequent retraining [OK]
Common Mistakes:
5. As the number of users and items grows significantly, which component of a Two-Tower Model for Retrieval is likely to become a bottleneck first?
hard
Solution
Step 1: Consider the scaling impact on components
As users and items grow, computing similarity scores between all pairs becomes computationally expensive.Step 2: Eliminate wrong options
User embedding computation and B scale linearly with users and items. Model training time is affected but not as immediately as similarity computation.Final Answer:
Option A -> Option AQuick Check:
Similarity computation scales poorly with size. [OK]
Hint: Similarity computation scales poorly with size. [OK]
Common Mistakes:
