Security Architecture and Engineering
A public mobile app calls a microservice's API, and attackers replay stolen requests and flood the endpoint. Which control BEST addresses both problems?
Show the answer
Correct answerB. An API gateway enforcing token authentication and rate limiting
AWhy not this: Image scanning finds known flaws before deployment and does not control runtime request abuse.
BWhy this is right: A gateway centralizes authentication, authorization and throttling for every API call.
CWhy not this: Database encryption at rest protects stored data, not the API from replay or floods.
DWhy not this: A VLAN limits network reach, but the API is public so abusive clients still reach it.
An API gateway sits in front of the services and can validate tokens, reject unauthorized or replayed calls, and throttle request rates. Image scanning improves build hygiene but does nothing about abusive traffic reaching the API.