A public function behind an API gateway is hit by bot traffic, driving up cost and exhausting the backend database's connections. Which design best limits the impact while keeping legitimate service?
Show the answer
Correct answerD. Apply gateway rate limiting and cap function concurrency to the database's connection capacity
AWhy not this: Removing the gateway drops throttling and authentication controls and widens exposure.
BWhy not this: More memory and timeout add cost per invocation and do not limit how many run at once.
CWhy not this: Fixed VMs abandon the serverless model and do not address abusive request volume.
DWhy this is right: Throttling plus a concurrency cap bounds scaling, cost and database load.
Serverless resources scale automatically, so quotas must bound them: gateway throttling limits abusive request rates and a concurrency cap keeps invocations within what the database can handle. More memory or timeout does not limit scaling and can raise cost.