← Questions

Design a risk management ticketing system

0
AmazonSystem designLast asked Sep 2025

A system design interview question asked in Amazon's system design round, last asked Sep 2025. It tests workflows, ticketing and security.

Design a ticketing system for a risk management team. People open tickets for risks they find and update them as they work; an automated risk-scanner bot also files tickets, at high volume and sometimes more than once for the same finding. Managers need monthly reports.

Requirements

  • Functional: create, update, assign and close tickets through defined lifecycle states (for example open, in progress, mitigated, accepted, closed) with severity, owner and due date; role-based access (reporter, assignee, manager, admin, the bot); idempotent creation so the bot never makes duplicates; search and filters; notifications on assignment, state change and overdue tickets; monthly reports per user and per manager; a full audit trail.
  • Non-functional: high write volume from the bot; no lost updates when two people edit a ticket at once; search results in under a second; reports generated without slowing the live system.

Clarifying questions

  • How many tickets a day, and how many from the bot?
  • What makes two bot findings "the same" (resource, rule, fingerprint)?
  • Who may see which tickets: team-scoped, severity-scoped?
  • What goes into the monthly report, and when is it due?

What a strong answer covers

  • Schema: tickets (id, state, severity, owner, team, due date, version, dedupe key), ticket_events (append-only audit of every change, who and when), comments, users and roles; indexes for the common filters.
  • APIs: POST /tickets with an idempotency key (the bot sends a fingerprint of the finding; a unique index turns a repeat into "already exists", or reopens a closed ticket), PATCH /tickets/{id} with the expected version, GET /tickets?state=&owner=&severity=.
  • Concurrency: optimistic locking with a version column, a 409 on a stale write, and allowed state transitions enforced on the server.
  • Access control checked on every read and write, including search results.
  • Search: a search index (for example Elasticsearch) fed from the event stream.
  • Background jobs: an overdue checker and escalation, notifications through a queue, and monthly reports built from the event log or a read replica into stored files.
  • Scale: the bot's writes through a queue with back-pressure, partitioning by team or time, archiving old tickets.

Follow-ups

  • The bot files 50,000 findings in a minute after a scanner upgrade. What happens?
  • A manager disputes a monthly number. How do you reproduce it exactly?
  • Add SLA rules that differ by severity and team.

Where it's asked

What it tests

workflows · ticketing · security

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing