API gateway

A single entry point in front of a set of APIs or microservices that routes each incoming call and can apply shared controls such as authentication, rate limiting and logging.

An API gateway sits between external clients and a collection of back-end services, typically microservices, and receives each call before passing it to the service that should handle it. Besides routing, it gives an organisation one place to apply controls every service would otherwise implement separately: validating access tokens, enforcing rate limits and quotas, checking requests against a schema, terminating TLS and logging. NIST SP 800-204, on security strategies for microservices-based applications, names API gateways among the architectural frameworks into which such security features can be packaged.

The benefit is consistency; the cost is concentration. A gateway that fails or is misconfigured can affect every service behind it, making it both a single point of failure and an attractive target. It also protects only traffic that passes through it: calls between services inside the estate may never touch it, so gateways are commonly combined with service-to-service authentication. A gateway overlaps with a web application firewall but differs in purpose: the gateway manages API access and traffic, while a WAF inspects requests for attack patterns, and many deployments use both.

Exam relevance: a scenario asking where to enforce authentication or throttling consistently across many APIs is likely to point to an API gateway. Candidates are expected to recognise that it centralises API security controls without protecting traffic that bypasses it.