Anomaly and Fraud Detection Questions
Detecting rare, abnormal, or adversarial events in data. Covers anomaly-detection techniques, fraud and risk modeling, handling extreme class imbalance, and the precision/recall and latency tradeoffs of real-time detection systems. Focuses on the modeling patterns unique to needle-in-a-haystack detection problems.
Given a transactions table (transaction_id, user_id, dest_account, amount, occurred_at), write a SQL query that returns, for each user, the number of unique destination accounts and the total transaction amount in the past 7 days. Then describe how you would keep this query fast if the table holds billions of rows.
You want to add a new feature, for example a device fingerprint, to an existing fraud model and need to know whether it is actually worth the engineering cost. Design a lightweight experiment to estimate its incremental detection benefit, including how you would keep the comparison statistically valid given that fraud labels arrive with a delay.
Fraudsters actively adapt once they learn how your model behaves. Describe a technical plan for defending against adversarial evasion of a deployed fraud model, including how you would detect that evasion is happening, harden the model and features against it, and recover once you confirm an attack.
You are running an unsupervised anomaly detector in production with no ground-truth labels at all. Design a methodology to evaluate whether it is actually working and to detect when its performance is degrading, including how you would use synthetic anomaly injection, stability checks on its output, and a concrete trigger for when to escalate to human review or retraining.
Design a champion-challenger process for safely rolling out a new fraud model version, given that you cannot fully confirm whether either model was right about a case until confirmed labels arrive weeks later. How do you measure business impact and decide when to promote the challenger without waiting out the full label-delay window?
Unlock Full Question Bank
Get access to all Anomaly and Fraud Detection interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.