A dataset contains highly imbalanced classes and the cost of false negatives is much higher than false positives. You need to set up training and thresholding so the deployed system meets business constraints. Which approach is most appropriate?
Answer
Apply class-weighting or cost-sensitive training and select an operating threshold using a metric aligned to business risk (e.g., recall for the positive class or expected cost)
Explanation
Class-weighting/cost-sensitive objectives help train for asymmetric errors. Threshold tuning on the aligned metric ensures the business constraint is reflected at inference time.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You deploy a model behind an AWS endpoint and observe that accuracy drops after a new application release. You also see no significant feature drift. Which deeper root-cause analysis is most likely to uncover the issue?
View question →
A customer requires model artifacts and data to remain encrypted end-to-end, including within managed training and hosting. Which statement is most accurate for achieving this in AWS ML workflows?
View question →
A customer uses a custom container in SageMaker for training. The model must run in a private network with controlled egress, and it must pull dependencies from a private registry. Which configuration choice is most appropriate?
View question →
You have a multi-tenant NLP classifier trained in SageMaker with sensitive tenant data. You need to prevent cross-tenant data leakage during training while also meeting encryption and audit requirements. Which combination is most appropriate?
View question →
You need to implement a robust MLOps workflow that automatically detects data drift and triggers retraining only when model performance degrades beyond a threshold. Which AWS services/components most directly support this?
View question →
You trained a regression model in SageMaker and now need probabilistic predictions for downstream decision-making. Which strategy best aligns with advanced uncertainty estimation in SageMaker?
View question →