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. For a session-based recommendation system, which metric is most appropriate to evaluate the model's ability to predict the next item in a sequence?
easy
Solution
Step 1: Identify metrics for ranking tasks
Precision@K is used to evaluate the relevance of the top-K recommended items.Step 2: Eliminate metrics for regression/classification
MAE and RMSE are for regression; F1 Score is for classification.Final Answer:
Option A -> Option AQuick Check:
Precision@K for ranking relevance. [OK]
Hint: Precision@K for ranking relevance. [OK]
Common Mistakes:
3. In a feed ranking system, should you prioritize using collaborative filtering or content-based filtering when user data is sparse?
medium
Solution
Step 1: Analyze data sparsity
When user data is sparse, collaborative filtering struggles due to lack of interaction data.Step 2: Eliminate wrong options
Collaborative filtering needs user interactions. Content-based filtering uses item features, making it suitable for sparse data.Final Answer:
Option B -> Option BQuick Check:
Content-based works with sparse data. [OK]
Hint: Content-based works with sparse data. [OK]
Common Mistakes:
4. As the number of concurrent experiments increases in an A/B testing platform, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling experiments.
More experiments generate more data, stressing storage.Step 2: Eliminate wrong options.
Dashboard and segmentation handle display and grouping, while randomization is not data-intensive.Final Answer:
Option A -> Option AQuick Check:
More experiments = more data. [OK]
Hint: More experiments = more data. [OK]
Common Mistakes:
5. As the number of users and ads increases tenfold in an ad auction system, which component is most likely to fail first?
hard
Solution
Step 1: Consider scale impact
With a tenfold increase in users and ads, the User Data Storage is likely to face capacity issues first due to the sheer volume of data.Step 2: Eliminate wrong options
- Ad Ranking Module: Computationally intensive but not storage-bound.
- Bid Management System: Handles bids, not directly affected by user volume.
- Network Bandwidth: Affects data transfer, but storage is a more immediate bottleneck.
Final Answer:
Option A -> Option AQuick Check:
Storage fails first with data volume increase. [OK]
Hint: Storage fails first with data volume increase. [OK]
Common Mistakes:
