Security Architecture

A retailer's single-page web app and in-store kiosks call its pricing and inventory microservices directly, and bots are scraping prices. Security wants a gateway that verifies callers, limits scraping, drops malformed calls and keeps service addresses private. Which four functions belong on the API gateway? (Choose four.)

Choose 4 answers

Show the answer

Correct answersA. Reject requests that violate the published API schemaB. Validate JWT access tokens before forwarding callsC. Route calls to backends and translate payload formatsD. Throttle each client with per-key quotas

AWhy this is right: Schema validation drops malformed or unexpected API requests before they reach services.

BWhy this is right: The gateway verifies tokens centrally so backends receive only authenticated calls.

CWhy this is right: Routing to backend services and transforming payloads is a standard gateway role and hides backends.

DWhy this is right: Per-client quotas and throttling are core gateway controls against scraping and abuse.

EWhy not this: Posture checks on devices are done by NAC at network admission, not by an API gateway.

FWhy not this: Image scanning runs in the build pipeline or registry; the gateway handles live calls, not container contents.

An API gateway sits in front of the services and handles authentication, throttling, schema validation, routing and payload translation. Device patch-level checks are a NAC function at network connection, and image scanning belongs in the build pipeline, not on calls passing through the gateway.