InterviewLegend

Design a REST API with Security

Commonly asked
Alex Chen24 min readGuide updated 60 real interview reports

This shape shows up in Citi's experienced-hire loops. A senior Java developer in Mississauga described a June 2026 hiring-manager round as "mostly on system design, API design, development lifecycle." A backend engineer in Warsaw had a second technical interview in February 2025 that was built around designing an API. An older Pune round from August 2023 asked for a REST API with security built in. None of them pinned down the resource, so accounts and transfers here are an example. The method carries over to orders, trades or customer profiles unchanged.

Treat it as a conversation. Get a clean interface on the board quickly, then plan to spend most of the time on security, since the older Pune prompt asked for security built in and the concept questions in these loops lean that way. How does a caller prove who they are? How does the service know that caller is allowed to see this account and not the one next to it? What happens when the network drops halfway through a transfer and the app retries? Those three questions get most of this lesson. The scale is small compared to a consumer social app. A bank API is judged on correctness. Nobody minds a balance taking 200 milliseconds. Everybody minds a transfer that runs twice or an account that leaks to the wrong customer.

The Citi angle
Citi's experienced loops lean hard on Java and Spring depth, so the security talk may drop into Spring Security: where the filter chain checks the token, how method-level rules work, and what you'd configure. Naming the Spring pieces you'd use makes the design concrete in the language your interviewer works in.

CitiPremium lesson · System design round

The Citi design, worked end to end.

  1. Requirements and scopeSystem design
  2. The API and data model
  3. The design, drawn out1 diagram
  4. 5 deep divesWith the tradeoffs
Get the Citi questions

$49 a year · all 108 companies · instant access

20,000+ candidate reports

Citi interview guide

Know what Citi asks before you walk in.

26 coding · 6 system design · 20 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Citi interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.