Practice
1. In a news feed system designed for personalization at scale, which component is primarily responsible for filtering content based on user preferences?
easy
Solution
Step 1: Identify the role of each component
The Recommendation Engine is responsible for filtering and suggesting content based on user preferences.Step 2: Eliminate wrong options
A: Content Delivery Network is for content distribution, not personalization. C: Load Balancer manages traffic, not content filtering. D: Data Warehouse stores data, not directly involved in real-time personalization.Final Answer:
Option C -> Option CQuick Check:
Recommendation Engine filters content for users. [OK]
Hint: Recommendation Engine filters content for users. [OK]
Common Mistakes:
2. In an ad auction system, if the ads are not being displayed as expected, which failure mode is most likely?
medium
Solution
Step 1: Identify the symptom
If ads are not displayed as expected, latency in fetching user data can cause delays, leading to missed ad opportunities.Step 2: Eliminate wrong options
- Incorrect bid values: Affects ranking, not display.
- Data leakage: Affects model accuracy, not display.
- Overfitting: Affects model performance, not display timing.
Final Answer:
Option B -> Option BQuick Check:
Latency affects ad display timing. [OK]
Hint: Latency affects ad display timing. [OK]
Common Mistakes:
3. In a hate speech detection system, should you prioritize using a deep learning model over a simpler model like logistic regression when computational resources are limited?
medium
Solution
Step 1: Evaluate resource constraints
When computational resources are limited, simpler models like logistic regression are more efficient and interpretable.Step 2: Eliminate wrong options
Deep learning models may perform better but require more resources, and simpler models can handle large datasets with proper techniques.Final Answer:
Option C -> Option CQuick Check:
Limited resources = Simpler models [OK]
Hint: Limited resources = Simpler models [OK]
Common Mistakes:
4. When designing a session-based recommendation system, why might you choose a Transformer model over an RNN?
medium
Solution
Step 1: Compare model capabilities
Transformers are known for effectively capturing long-range dependencies due to their attention mechanism.Step 2: Eliminate incorrect reasons
Transformers are not necessarily faster for small datasets; RNNs are not more interpretable or require less preprocessing.Final Answer:
Option D -> Option DQuick Check:
Transformers for long-range dependencies. [OK]
Hint: Transformers for long-range dependencies. [OK]
Common Mistakes:
5. As the user base scales 10x, which component of a DLRM-based CTR prediction system is most likely to become a bottleneck?
hard
Solution
Step 1: Consider scaling effects on components.
Embedding tables grow with user and feature diversity.Step 2: Eliminate wrong options.
Preprocessing (A) and inference (B) scale with compute resources. Storage (D) is less critical than real-time constraints.Final Answer:
Option D -> Option DQuick Check:
Embedding tables grow with scale. [OK]
Hint: Embedding tables grow with scale. [OK]
Common Mistakes:
