Practice
Solution
Step 1: Align metric with objective
To maximize revenue, the system should optimize for Expected Revenue, which considers both CTR and bid amounts.Step 2: Eliminate wrong options
- Click-through Rate (CTR): Measures engagement, not directly linked to revenue.
- Conversion Rate: Focuses on post-click actions, not directly on revenue.
- Ad Impressions: Measures visibility, not revenue.
Final Answer:
Option D -> Option DQuick Check:
Optimize Expected Revenue for revenue goals. [OK]
Solution
Step 1: Identify the component for real-time scoring.
The real-time scoring engine is designed to evaluate transactions as they occur.Step 2: Eliminate wrong options.
Batch processing engine (A) is for batch jobs, Data warehouse (C) is for storage, and Offline model training (D) is for model development.Final Answer:
Option A -> Option AQuick Check:
Real-time scoring needs a real-time engine. [OK]
Solution
Step 1: Identify the challenge of imbalanced datasets.
Imbalanced datasets can lead to biased models that favor the majority class.Step 2: Evaluate each option.
Use a simple logistic regression model: Logistic regression without addressing imbalance will likely be biased. Use a linear SVM without any modifications: Linear SVM also suffers from imbalance without adjustments. Ignore the imbalance and focus on feature engineering: Ignoring imbalance is not a solution. Apply SMOTE (Synthetic Minority Over-sampling Technique): SMOTE is specifically designed to handle imbalance by generating synthetic samples.Final Answer:
Option A -> Option AQuick Check:
SMOTE for imbalance handling. [OK]
Solution
Step 1: Identify key differences between models.
DLRM offers higher accuracy but is less interpretable than logistic regression.Step 2: Eliminate wrong options.
Training speed (B) and preprocessing time (D) are less critical than understanding model decisions. Feature engineering (C) is important but not the primary trade-off.Final Answer:
Option A -> Option AQuick Check:
DLRM: accuracy vs. interpretability trade-off. [OK]
Solution
Step 1: Consider the impact of scaling.
Network bandwidth is often the first bottleneck as user requests increase.Step 2: Eliminate wrong options.
Batching can handle more requests efficiently. KV Cache scales with memory, not users. Speculative Decoding affects processing, not network.Final Answer:
Option A -> Option AQuick Check:
Network bandwidth limits scale first. [OK]
