Practice
1. For a bot detection system using behavioral signals, which metric is most appropriate to optimize for minimizing false positives?
easy
Solution
Step 1: Understand the goal of minimizing false positives.
Precision is the metric that focuses on reducing false positives.Step 2: Eliminate wrong options.
Recall focuses on false negatives; F1 balances precision and recall; accuracy can be misleading with imbalanced data.Final Answer:
Option C -> Option CQuick Check:
Minimize false positives = optimize precision [OK]
Hint: Minimize false positives = optimize precision [OK]
Common Mistakes:
2. In designing an agent system for dynamic environments, should you prioritize a reactive or deliberative planning approach?
medium
Solution
Step 1: Analyze environment characteristics
Dynamic environments require quick adaptation to changes.Step 2: Match approach to environment
Reactive planning is suited for quick responses, while deliberative planning is slower and more resource-intensive.Final Answer:
Option D -> Option DQuick Check:
Dynamic = Reactive for speed [OK]
Hint: Dynamic environments need reactive planning for speed. [OK]
Common Mistakes:
3. In a real-time fraud detection system, should you prioritize model complexity or latency, and why?
medium
Solution
Step 1: Consider the system's real-time requirement.
Real-time systems need quick decisions to prevent fraud.Step 2: Evaluate the trade-off between complexity and latency.
Latency is prioritized to ensure timely fraud detection.Final Answer:
Option B -> Option BQuick Check:
Real-time needs instant decisions. [OK]
Hint: Real-time needs instant decisions. [OK]
Common Mistakes:
4. In an ML platform, when should you prefer batch processing over real-time processing for feature computation?
medium
Solution
Step 1: Analyze the constraints.
Batch processing is suitable when resources are limited and latency is not a priority.Step 2: Eliminate wrong options.
Options A, B, and D require real-time processing due to their need for immediacy.Final Answer:
Option A -> Option AQuick Check:
Batch for non-critical latency. [OK]
Hint: Batch processing suits non-critical latency scenarios. [OK]
Common Mistakes:
5. As the user base grows 10x, which component of a 'People You May Know' system using graph-based link prediction is most likely to become a bottleneck?
hard
Solution
Step 1: Identify scaling challenges.
Graph-based systems often face computational challenges as they scale.Step 2: Evaluate options.
Data storage (A) can be managed with distributed systems. User interface rendering (C) is less affected by user base size. Network bandwidth (D) is a concern but not the primary bottleneck. Graph traversal (B) becomes computationally expensive as the graph size increases, making it the likely bottleneck.Final Answer:
Option B -> Option BQuick Check:
Graph traversal scales poorly with size. [OK]
Hint: Graph traversal scales poorly with size. [OK]
Common Mistakes:
