Design a Pre-Trade Compliance Rules Engine

Last updated: November 29, 2026

Quick Overview

Design the service that checks every proposed order against each portfolio's investment guidelines (issuer limits, rating floors, sector caps, restricted lists) before it reaches the trading desk, and returns pass, warn or fail with explanations.

BlackRock
System Design
Software Engineer
BlackRock
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the service that checks every proposed order against each portfolio's investment guidelines (issuer limits, rating floors, sector caps, restricted lists) before it reaches the trading desk, and returns pass, warn or fail with explanations.

Compliance is built into Aladdin's order workflow, and a fiduciary manager cannot let an order breach a client's mandate. The round checks rule modeling, low latency checks on hypothetical post-trade holdings, and an audit trail regulators can inspect.

What the Interviewer Expects
  • Represents rules as data, not code, with a small expression vocabulary
  • Evaluates rules against the hypothetical post-trade portfolio
  • Indexes rules by what can affect them to avoid evaluating all of them
  • Returns explainable results with the limit and the computed value
  • Keeps an immutable audit log and handles overrides with approvals
Key Topics to Cover
rules engine
compliance
low latency
audit logging
incremental evaluation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you check a block order allocated across 300 accounts at once?
  • A rule references a credit rating that changes overnight. How do you find newly breached portfolios?
  • How would you let compliance officers test a new rule before activating it?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Input: an order (security, side, quantity, portfolio or allocation list). Output per portfolio: pass, warn (soft limit) or fail (hard limit), with the rule, limit and resulting value. Latency target u...

High-Level Design

A rule repository stores rules as structured definitions: scope (which portfolios), a metric (sum of weight where issuer = X), a comparator and thresholds. A compliance service loads a portfol...


Submit Your Answer
Markdown supported

Related Questions