Practice
1. In a production-scale embedding pipeline for text data, which component is responsible for converting raw text into numerical vectors?
easy
Solution
Step 1: Identify the role of each component.
The Tokenizer is responsible for converting raw text into tokens, which are then converted into numerical vectors.Step 2: Eliminate wrong options.
Data Loader handles data input, Feature Extractor processes features but not directly from raw text, and Batch Normalizer normalizes data batches.Final Answer:
Option C -> Option CQuick Check:
Tokenizer converts text to tokens. [OK]
Hint: Tokenizer converts text to tokens. [OK]
Common Mistakes:
2. For a delivery forecasting system, which metric is most appropriate to evaluate the accuracy of ETA predictions?
easy
Solution
Step 1: Identify the nature of the prediction task
ETA prediction is a regression task, focusing on continuous values.Step 2: Eliminate wrong options
F1 Score, AUC, and Precision are classification metrics. MAE is suitable for regression tasks.Final Answer:
Option C -> Option CQuick Check:
MAE for regression accuracy. [OK]
Hint: MAE for regression accuracy. [OK]
Common Mistakes:
3. In a search ranking system, when should you prefer a learning-to-rank model over a traditional BM25 algorithm?
medium
Solution
Step 1: Assess the data and resource context
Learning-to-rank models excel with rich interaction data.Step 2: Evaluate the constraints
BM25 is better for small datasets, interpretability, and limited resources.Final Answer:
Option D -> Option DQuick Check:
Use learning-to-rank with rich interaction data. [OK]
Hint: Use learning-to-rank with rich interaction data. [OK]
Common Mistakes:
4. 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:
5. As the user base of an ML platform grows 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling on each component.
Serving Infrastructure is directly impacted by increased user requests, making it a likely bottleneck.Step 2: Eliminate wrong options.
Model Training and Data Ingestion are less affected by user growth, and Feature Store scales with data, not users.Final Answer:
Option C -> Option CQuick Check:
Serving scales with user requests. [OK]
Hint: Serving scales with user requests. [OK]
Common Mistakes:
