Practice
1. In a spam detection system, which feature is most likely to be effective in identifying spam emails?
easy
Solution
Step 1: Identify effective features for spam detection
Keywords like 'free', 'win', or 'prize' are often used in spam emails.Step 2: Eliminate less effective features
Email length (A) and time of day (D) are not strong indicators of spam. Sender's domain (C) can be spoofed.Final Answer:
Option B -> Option BQuick Check:
Keywords often signal spam. [OK]
Hint: Keywords often signal spam. [OK]
Common Mistakes:
2. When choosing between Isolation Forest and Autoencoder for anomaly detection, which scenario favors using an Autoencoder?
medium
Solution
Step 1: Consider the strengths of Autoencoders.
Autoencoders are particularly effective for high-dimensional data due to their ability to learn complex representations.Step 2: Eliminate wrong options.
When the dataset is small and labeled. is incorrect because Autoencoders require more data to train effectively. When interpretability of the model is crucial. is incorrect because Autoencoders are less interpretable than Isolation Forests. When the dataset is large and unlabeled. is incorrect because Autoencoders are computationally intensive and may not be ideal for very large datasets.Final Answer:
Option C -> Option CQuick Check:
Autoencoder = high-dimensional data strength [OK]
Hint: Autoencoder = high-dimensional data strength [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 number of users and items increases in a session-based recommendation system, which component is likely to become a bottleneck first?
hard
Solution
Step 1: Consider scaling impacts
Real-time inference latency often becomes a bottleneck as the system scales, due to increased computational demands.Step 2: Eliminate less likely bottlenecks
Model training time and data storage can be managed with batch processing and scalable storage solutions; feature extraction is typically pre-computed.Final Answer:
Option C -> Option CQuick Check:
Inference latency scales poorly. [OK]
Hint: Inference latency scales poorly. [OK]
Common Mistakes:
5. As the dataset size increases 10x in a FAISS-based vector search system, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of dataset size increase.
Index storage will grow significantly, potentially becoming a bottleneck.Step 2: Eliminate wrong options.
Search algorithm, dimensionality reduction, and quantization are less affected by size increase compared to storage.Final Answer:
Option A -> Option AQuick Check:
Index storage grows with dataset size. [OK]
Hint: Index storage grows with dataset size. [OK]
Common Mistakes:
