Practice
1. In the context of Ad Click-Through Rate Prediction, which component of the DLRM architecture is responsible for capturing interactions between dense and sparse features?
easy
Solution
Step 1: Identify the role of each component.
Embedding tables handle sparse features, fully connected layers process dense features, and batch normalization normalizes inputs.Step 2: Eliminate wrong options.
Embedding tables (A) and fully connected layers (C) do not specifically capture interactions. Batch normalization (D) is unrelated to feature interactions.Final Answer:
Option A -> Option AQuick Check:
Cross-product for interactions in DLRM. [OK]
Hint: Cross-product for interactions in DLRM. [OK]
Common Mistakes:
2. In the context of semantic search, which component is responsible for encoding both queries and documents into a shared vector space?
easy
Solution
Step 1: Identify the role of each component
Bi-Encoders encode both queries and documents into a shared vector space for efficient retrieval.Step 2: Eliminate wrong options
Cross-Encoders evaluate query-document pairs directly, Dense Retrievers use encoded vectors, Sparse Retrievers use traditional methods.Final Answer:
Option A -> Option AQuick Check:
Bi-Encoder = shared vector space [check]
Hint: Bi-Encoder = shared vector space [check]
Common Mistakes:
3. In an ML platform, when should you prefer batch processing over real-time processing for feature computation?
medium
Solution
Step 1: Analyze the constraints.
Batch processing is suitable when resources are limited and latency is not a priority.Step 2: Eliminate wrong options.
Options A, B, and D require real-time processing due to their need for immediacy.Final Answer:
Option A -> Option AQuick Check:
Batch for non-critical latency. [OK]
Hint: Batch processing suits non-critical latency scenarios. [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 user base grows 10x, which component of a 'People You May Know' system using graph-based link prediction is most likely to become a bottleneck?
hard
Solution
Step 1: Identify scaling challenges.
Graph-based systems often face computational challenges as they scale.Step 2: Evaluate options.
Data storage (A) can be managed with distributed systems. User interface rendering (C) is less affected by user base size. Network bandwidth (D) is a concern but not the primary bottleneck. Graph traversal (B) becomes computationally expensive as the graph size increases, making it the likely bottleneck.Final Answer:
Option B -> Option BQuick Check:
Graph traversal scales poorly with size. [OK]
Hint: Graph traversal scales poorly with size. [OK]
Common Mistakes:
