Practice
1. In the context of anomaly detection, which of the following best describes the primary advantage of using an Isolation Forest over an Autoencoder?
easy
Solution
Step 1: Understand the strengths of Isolation Forests.
Isolation Forests are known for their simplicity and interpretability, as they isolate anomalies by randomly selecting a feature and then randomly selecting a split value between the maximum and minimum values of that feature.Step 2: Eliminate wrong options.
Isolation Forests require labeled data for training. is incorrect because Isolation Forests do not require labeled data. Isolation Forests can handle high-dimensional data better than Autoencoders. is incorrect because Autoencoders are generally better suited for high-dimensional data. Isolation Forests are more suitable for detecting anomalies in time-series data. is incorrect because Isolation Forests are not inherently designed for time-series data.Final Answer:
Option D -> Option DQuick Check:
Isolation Forests = simplicity and less feature engineering [OK]
Hint: Isolation Forests = simplicity and less feature engineering [OK]
Common Mistakes:
2. For a Guardrails System in LLMs, which metric is most appropriate to evaluate the effectiveness of content moderation?
easy
Solution
Step 1: Understand the importance of balance
F1 Score balances precision and recall, crucial for content moderation.Step 2: Eliminate wrong options
Accuracy doesn't account for class imbalance, precision alone ignores false negatives, and recall alone ignores false positives.Final Answer:
Option A -> Option AQuick Check:
F1 Score balances precision and recall. [OK]
Hint: F1 Score balances precision and recall. [OK]
Common Mistakes:
3. For a spam detection system, which metric is most appropriate to optimize for?
easy
Solution
Step 1: Understand the importance of balancing precision and recall
F1 Score balances precision and recall, which is crucial in spam detection.Step 2: Eliminate less balanced metrics
Accuracy (A) can be misleading with imbalanced data. Precision (B) and Recall (C) alone don't balance false positives and negatives.Final Answer:
Option A -> Option AQuick Check:
F1 balances precision and recall. [OK]
Hint: F1 balances precision and recall. [OK]
Common Mistakes:
4. 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:
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:
