All jobs / Solutions / cloud architect / Application Architecture
Solutions / cloud architect interview question · 0–1 years
What does an API gateway do for you, and what should you resist putting in it?
The strongest answer
One entry point handling authentication, rate limits, routing and TLS; resist business logic — a gateway full of rules becomes a hidden monolith nobody owns
Why it works
Exactly. Cross-cutting concerns in, business rules out.
What a good answer covers
- One front door for cross-cutting concerns.
- Auth, throttling, routing, TLS.
- No business logic inside.
- Services still verify identity.
Answers that fall short
- Close, but not the strongest: It is the place where all the services’ logic is combined into one API
Composition of business logic belongs in a service with an owner and tests. - Weak: It is a load balancer with a better name
Routing overlaps, but auth, throttling and shaping are the point. - Red flag: It makes the internal services secure so they do not need authentication
Services behind a gateway still verify identity; the gateway is a first line, not the only one.
Who gets asked this
More Application Architecture questions
- A client retries a “create payment” request after a timeout. How does the design stop a double charge?
- How do you version a public API so you can change it without breaking customers?
- Two services both need customer data. Who owns it, and how does the other get it?
- How do you keep a monolith modular enough that you could split it into services later?
- Booking a trip touches flights, hotel and payment services. How do you keep them consistent?
- How do you replace a large legacy system without a big-bang cut-over?
- When does separating read and write models earn its complexity, and when does it not?
- A team proposes event sourcing for the whole platform. What do you check before agreeing?