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. In an anomaly detection system using an Autoencoder, what is a likely failure mode if the model is overfitting?
medium
Solution
Step 1: Understand overfitting in Autoencoders.
Overfitting occurs when the model learns the noise in the training data, leading to poor generalization.Step 2: Eliminate wrong options.
The model will fail to detect any anomalies. is incorrect because the model will still detect anomalies, but with poor accuracy. The model will have a high reconstruction error on the training data. is incorrect because overfitting typically results in low reconstruction error on training data. The model will require more labeled data to function correctly. is incorrect because labeled data is not required for Autoencoders.Final Answer:
Option A -> Option AQuick Check:
Overfitting = false positives increase [OK]
Hint: Overfitting = false positives increase [OK]
Common Mistakes:
3. When choosing between a Bi-Encoder and a Cross-Encoder for a semantic search task, which is more suitable for real-time retrieval and why?
medium
Solution
Step 1: Compare Bi-Encoder and Cross-Encoder
Bi-Encoders allow pre-computation of document embeddings, making them suitable for real-time retrieval.Step 2: Eliminate wrong options
Cross-Encoders evaluate pairs at query time, which is computationally expensive and not suitable for real-time retrieval.Final Answer:
Option A -> Option AQuick Check:
Bi-Encoder = pre-compute embeddings [check]
Hint: Bi-Encoder = pre-compute embeddings [check]
Common Mistakes:
4. As the data scale increases by 10x in an anomaly detection system using Isolation Forest, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Analyze the impact of data scale on Isolation Forest.
As data increases, the depth of trees in the Isolation Forest can increase, leading to longer training times.Step 2: Eliminate wrong options.
Memory usage due to storing more trees. is incorrect because memory usage is more affected by the number of trees, not directly by data scale. Inference time due to increased number of features. is incorrect because inference time is less affected by feature count in Isolation Forests. Data preprocessing time due to feature scaling. is incorrect because feature scaling is a preprocessing step that doesn't scale linearly with data size.Final Answer:
Option A -> Option AQuick Check:
10x data = tree depth increases, training slows [OK]
Hint: 10x data = tree depth increases, training slows [OK]
Common Mistakes:
5. As a recommendation system using neural collaborative filtering scales to 10x more users, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Consider the impact of scaling on neural CF.
Increased data volume significantly affects model training time.Step 2: Eliminate wrong options.
Options A and D are less likely bottlenecks as storage and feature extraction can be optimized. Real-time recommendation latency. is affected but not as critically as training time.Final Answer:
Option A -> Option AQuick Check:
Scaling = training time bottleneck [OK]
Hint: Scaling = training time bottleneck [OK]
Common Mistakes:
