Practice
1. For a fraud detection system, which metric is most appropriate to optimize for minimizing false positives?
easy
Solution
Step 1: Understand the impact of false positives.
Minimizing false positives means correctly identifying non-fraudulent transactions.Step 2: Choose the metric that reflects this goal.
Precision is the metric that focuses on reducing false positives.Final Answer:
Option C -> Option CQuick Check:
Precision reduces false positives. [OK]
Hint: Precision reduces false positives. [OK]
Common Mistakes:
2. In a model registry, what is the primary purpose of model versioning?
easy
Solution
Step 1: Understand model versioning purpose
Model versioning is primarily about tracking changes and updates to models.Step 2: Eliminate wrong options
To improve model accuracy over time is incorrect because versioning doesn't directly improve accuracy. To ensure models are always deployed is wrong because versioning doesn't ensure deployment. To automatically optimize hyperparameters is incorrect as versioning isn't about hyperparameter optimization.Final Answer:
Option C -> Option CQuick Check:
Versioning = Tracking changes [OK]
Hint: Versioning = Tracking changes [OK]
Common Mistakes:
3. For a two-stage retrieval system, which metric is most appropriate to evaluate the candidate generation stage?
easy
Solution
Step 1: Identify the goal of candidate generation
The goal is to ensure relevant items are included, making recall a critical metric.Step 2: Eliminate wrong options
Precision (Precision) is less critical here as it focuses on the proportion of relevant items retrieved. F1 Score (F1 Score) balances precision and recall, but recall is more crucial. Mean Reciprocal Rank (Mean Reciprocal Rank) is more relevant for ranking evaluation.Final Answer:
Option D -> Option DQuick Check:
Recall ensures relevant items aren't missed. [OK]
Hint: Recall ensures relevant items aren't missed. [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 number of concurrent users increases tenfold, which component of the LLM serving infrastructure is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling.
Network bandwidth is often the first bottleneck as user requests increase.Step 2: Eliminate wrong options.
Batching can handle more requests efficiently. KV Cache scales with memory, not users. Speculative Decoding affects processing, not network.Final Answer:
Option A -> Option AQuick Check:
Network bandwidth limits scale first. [OK]
Hint: Network bandwidth limits scale first. [OK]
Common Mistakes:
