Practice
1. In a real-time fraud detection system, which component is responsible for scoring transactions as they occur?
easy
Solution
Step 1: Identify the component for real-time scoring.
The real-time scoring engine is designed to evaluate transactions as they occur.Step 2: Eliminate wrong options.
Batch processing engine (A) is for batch jobs, Data warehouse (C) is for storage, and Offline model training (D) is for model development.Final Answer:
Option A -> Option AQuick Check:
Real-time scoring needs a real-time engine. [OK]
Hint: Real-time scoring needs a real-time engine. [OK]
Common Mistakes:
2. For a search ranking system, which metric is most appropriate to optimize for improving user satisfaction?
easy
Solution
Step 1: Understand user satisfaction in search
User satisfaction is often linked to how quickly the relevant result appears.Step 2: Choose the metric that reflects this
MRR measures the rank of the first relevant result, aligning with user satisfaction.Final Answer:
Option C -> Option CQuick Check:
MRR reflects user satisfaction in search. [OK]
Hint: MRR reflects user satisfaction in search. [OK]
Common Mistakes:
3. In a scenario where model accuracy is critical, which approach should be avoided to prevent potential accuracy degradation?
medium
Solution
Step 1: Understand the impact on accuracy.
Speculative Decoding can introduce errors by predicting future tokens.Step 2: Eliminate wrong options.
Batching and KV Cache do not inherently affect accuracy. Model Pruning reduces model size but can be controlled to maintain accuracy.Final Answer:
Option B -> Option BQuick Check:
Speculative Decoding risks accuracy for speed. [OK]
Hint: Speculative Decoding risks accuracy for speed. [OK]
Common Mistakes:
4. In a RAG system, when should you prefer a dense retriever over a sparse retriever?
medium
Solution
Step 1: Understand retriever types.
Dense retrievers are better for large, diverse corpora as they can capture semantic meaning more effectively.Step 2: Eliminate wrong options.
Sparse retrievers are more interpretable and efficient for small, domain-specific corpora.Final Answer:
Option D -> Option DQuick Check:
Dense for large, diverse data. [OK]
Hint: Dense for large, diverse data. [OK]
Common Mistakes:
5. As the user base grows 10x, which component of a hate speech detection system is most likely to become a bottleneck?
hard
Solution
Step 1: Consider the impact of scale
With a 10x increase in users, the system must handle significantly more inference requests.Step 2: Eliminate wrong options
Data preprocessing and feature extraction are typically batch processes, and model training is not affected by user scale.Final Answer:
Option D -> Option DQuick Check:
10x users = Inference bottleneck [OK]
Hint: 10x users = Inference bottleneck [OK]
Common Mistakes:
