Design API-Based Post-Delivery Email Scoring And Auto-Remediation
Last updated: November 29, 2026
Quick Overview
Design a multi-tenant system that learns about every new message in customers' Microsoft 365 and Google Workspace mailboxes through provider APIs, scores it for attacks, and removes malicious messages from every affected inbox within seconds, at billions of messages per day.
Abnormal Security
November 29, 20260
0
0 solved
Design a multi-tenant system that learns about every new message in customers' Microsoft 365 and Google Workspace mailboxes through provider APIs, scores it for attacks, and removes malicious messages from every affected inbox within seconds, at billions of messages per day.
This is the backbone of how Abnormal works: it is not an inline mail gateway, so detection happens after delivery and remediation races the user opening the message. The interviewer wants to see you handle provider throttling, at-least-once notifications, tenant isolation, a latency budget for scoring, and safe, auditable remediation.
What the Interviewer Expects
- Explains the API-integration model and why post-delivery latency matters
- Separates ingestion, enrichment, scoring and remediation into independently scaled stages
- Handles per-tenant API rate limits and backpressure explicitly
- Makes remediation idempotent and reversible with an audit trail
- Designs tenant isolation and noisy-neighbor protection
- Covers reconciliation for missed notifications
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A large tenant gets a 10x mail spike during an internal all-hands. What protects other tenants?
- How would you remediate a campaign of 50,000 messages across 400 tenants quickly without tripping throttles?
- How do you know you missed a notification, and how do you backfill?
- How does a customer undo a false positive, and what do you learn from it?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: subscribe to new-message events for every protected mailbox, fetch message content and metadata, compute a verdict, move malicious mail to quarantine, support undo and admin review. Non-fu...
High-Level Design
- Subscription manager keeps webhook subscriptions alive per mailbox (they expire and must be renewed) and falls back to delta-query polling.
- Notification gateway validates callbacks, writ...
Submit Your Answer
Abnormal Security Software Engineer Interview Guide
Interview process, tips, and preparation timeline