Practice
1. In a search ranking system, which component is primarily responsible for determining the relevance of a document to a query?
easy
Solution
Step 1: Identify the role of each component
The ranking algorithm is responsible for determining the relevance of documents to a query.Step 2: Eliminate wrong options
Indexing module organizes data, query parser interprets queries, and crawler collects data.Final Answer:
Option B -> Option BQuick Check:
Ranking algorithm determines relevance. [OK]
Hint: Ranking algorithm determines relevance. [OK]
Common Mistakes:
2. Which metric is most appropriate for evaluating the performance of a Two-Tower Model for Retrieval?
easy
Solution
Step 1: Identify the goal of the retrieval model
The goal is to rank items effectively for users, making ranking metrics like Precision at K suitable.Step 2: Eliminate wrong options
Mean Squared Error (MSE) (MSE) is for regression tasks. F1 Score (F1 Score) is for classification tasks. Log Loss (Log Loss) is also for classification tasks.Final Answer:
Option D -> Option DQuick Check:
Use ranking metrics like Precision at K. [OK]
Hint: Use ranking metrics like Precision at K. [OK]
Common Mistakes:
3. In a visual search system using image embeddings, which component is responsible for transforming images into a fixed-size vector representation?
easy
Solution
Step 1: Identify the role of each component
The image embedding model is responsible for converting images into vector representations.Step 2: Eliminate wrong options
ANN index is for searching, serving layer is for delivering results, and database storage is for storing data.Final Answer:
Option C -> Option CQuick Check:
Embeddings come from the embedding model. [OK]
Hint: Embeddings come from the embedding model. [OK]
Common Mistakes:
4. In a recommendation system designed to avoid filter bubbles, what is a likely failure mode if the diversity re-ranking layer is not properly tuned?
medium
Solution
Step 1: Identify the impact of poor tuning
Poor tuning can lead to irrelevant recommendations, reducing user engagement.Step 2: Eliminate wrong options
Increased computational cost (A) and latency (D) are technical issues, not directly related to user engagement. Overfitting (C) is more about personalization than diversity.Final Answer:
Option A -> Option AQuick Check:
Poor tuning reduces engagement due to irrelevant content [OK]
Hint: Poor tuning reduces engagement due to irrelevant content [OK]
Common Mistakes:
5. As a news feed system scales to 10x more users, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze scaling challenges
The Recommendation Engine processes user data to generate personalized feeds, which becomes computationally intensive as user numbers grow.Step 2: Consider other components
B: Content Delivery Network scales well with caching. C: User Interface is less affected by user count. D: Data Storage can be expanded more easily than processing power.Final Answer:
Option B -> Option BQuick Check:
Recommendation Engine struggles first with user scale. [OK]
Hint: Recommendation Engine struggles first with user scale. [OK]
Common Mistakes:
