Practice
1. In the context of a feed ranking system for social media platforms, which component is primarily responsible for determining the order of posts shown to a user?
easy
Solution
Step 1: Identify the role of each component
The ranking algorithm is responsible for determining the order of posts based on relevance and user preferences.Step 2: Eliminate wrong options
Data ingestion pipeline collects data, feature extraction module processes features, and user interface displays the results but does not determine order.Final Answer:
Option A -> Option AQuick Check:
Ranking algorithm orders posts. [OK]
Hint: Ranking algorithm orders posts. [OK]
Common Mistakes:
2. In a spam detection system, which feature is most likely to be effective in identifying spam emails?
easy
Solution
Step 1: Identify effective features for spam detection
Keywords like 'free', 'win', or 'prize' are often used in spam emails.Step 2: Eliminate less effective features
Email length (A) and time of day (D) are not strong indicators of spam. Sender's domain (C) can be spoofed.Final Answer:
Option B -> Option BQuick Check:
Keywords often signal spam. [OK]
Hint: Keywords often signal spam. [OK]
Common Mistakes:
3. 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:
4. At 10x data scale in a fine-tuning pipeline using SFT, RLHF, and DPO, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze the impact of scaling on each component
DPO involves handling and optimizing large volumes of data, which can become a bottleneck as data scales.Step 2: Eliminate wrong options
B: SFT scales with model size, not data volume. C: RLHF is more about feedback processing, not data volume. D: Deployment infrastructure is affected by model size, not data volume.Final Answer:
Option A -> Option AQuick Check:
DPO bottlenecks with data scale. [OK]
Hint: DPO bottlenecks with data scale. [OK]
Common Mistakes:
5. 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:
