Practice
1. For an LLM serving system focused on minimizing response time, which metric should be prioritized?
easy
Solution
Step 1: Identify the goal.
Minimizing response time directly relates to reducing latency.Step 2: Eliminate wrong options.
Throughput measures volume, not speed. Accuracy is about correctness, not speed. Memory Usage affects capacity, not response time.Final Answer:
Option A -> Option AQuick Check:
Minimize latency to cut response time. [OK]
Hint: Minimize latency to cut response time. [OK]
Common Mistakes:
2. In the context of recommendation systems, which of the following best describes collaborative filtering?
easy
Solution
Step 1: Understand collaborative filtering.
Collaborative filtering relies on user-item interaction data to make recommendations.Step 2: Eliminate wrong options.
Options A, B, and D describe content-based or demographic-based approaches, not collaborative filtering.Final Answer:
Option A -> Option AQuick Check:
Collaborative = user-item interactions [OK]
Hint: Collaborative = user-item interactions [OK]
Common Mistakes:
3. As the user base scales 10x, which component of a DLRM-based CTR prediction system is most likely to become a bottleneck?
hard
Solution
Step 1: Consider scaling effects on components.
Embedding tables grow with user and feature diversity.Step 2: Eliminate wrong options.
Preprocessing (A) and inference (B) scale with compute resources. Storage (D) is less critical than real-time constraints.Final Answer:
Option D -> Option DQuick Check:
Embedding tables grow with scale. [OK]
Hint: Embedding tables grow with scale. [OK]
Common Mistakes:
4. As the number of users and items increases in a session-based recommendation system, which component is likely to become a bottleneck first?
hard
Solution
Step 1: Consider scaling impacts
Real-time inference latency often becomes a bottleneck as the system scales, due to increased computational demands.Step 2: Eliminate less likely bottlenecks
Model training time and data storage can be managed with batch processing and scalable storage solutions; feature extraction is typically pre-computed.Final Answer:
Option C -> Option CQuick Check:
Inference latency scales poorly. [OK]
Hint: Inference latency scales poorly. [OK]
Common Mistakes:
5. As the volume of emails increases 10x, which component of a spam detection system is most likely to fail first?
hard
Solution
Step 1: Consider scalability of components
Real-time inference engines often struggle with increased load due to latency constraints.Step 2: Eliminate components less affected by scale
Feature extraction (A) and data storage (D) can be scaled horizontally. Model training (B) is not real-time.Final Answer:
Option C -> Option CQuick Check:
Inference engines struggle with scale. [OK]
Hint: Inference engines struggle with scale. [OK]
Common Mistakes:
