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 real-time recommendation system, which metric should the ML platform optimize to ensure timely and relevant suggestions?
easy
Solution
Step 1: Understand the system's requirement.
Real-time systems need to provide timely responses, making latency crucial.Step 2: Eliminate wrong options.
MAE measures error, Precision and Recall focus on accuracy, not speed.Final Answer:
Option A -> Option AQuick Check:
Real-time needs low latency. [OK]
Hint: Real-time systems prioritize low latency. [OK]
Common Mistakes:
3. In a news feed system, should you prioritize collaborative filtering or content-based filtering when user data is sparse?
medium
Solution
Step 1: Analyze data availability
When user data is sparse, content-based filtering is more effective as it relies on item attributes rather than user interactions.Step 2: Eliminate wrong options
A: Collaborative filtering struggles with sparse data. C: It captures preferences well but needs data. D: Computational power is not the main concern here.Final Answer:
Option A -> Option AQuick Check:
Content-based works with sparse user data. [OK]
Hint: Content-based works with sparse user data. [OK]
Common Mistakes:
4. In an HNSW-based vector search system, what is a likely failure mode if the graph's maximum layer is not properly maintained?
medium
Solution
Step 1: Understand the role of the maximum layer.
The maximum layer affects traversal efficiency.Step 2: Eliminate wrong options.
Precision, recall, and memory usage are not directly affected by the maximum layer.Final Answer:
Option C -> Option CQuick Check:
Max layer affects traversal speed. [OK]
Hint: Max layer affects traversal speed. [OK]
Common Mistakes:
5. As a recommendation system scales to 10x the user base, which component is most likely to fail first in maintaining diversity and freshness?
hard
Solution
Step 1: Analyze scalability challenges
The diversity re-ranking layer may struggle to maintain performance under increased load.Step 2: Eliminate wrong options
User profiling (A) and content ingestion (C) are less directly impacted by user scale. Collaborative filtering (D) may slow down but doesn't directly affect diversity.Final Answer:
Option A -> Option AQuick Check:
Diversity re-ranking struggles with scale [OK]
Hint: Diversity re-ranking struggles with scale [OK]
Common Mistakes:
