Software Development Security

A company exposes a REST API to external partners and wants to reduce the risk of abuse, excessive data access and injection through the API. Which controls should it apply? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Validate requests against the API specification and reject unexpected fieldsD. Enforce rate limits and quotas for each client at the API gatewayE. Issue OAuth 2.0 access tokens with narrowly scoped permissions per partner

AWhy this is right: Rejecting requests that deviate from the specification blocks injection payloads and mass-assignment of unexpected fields.

BWhy not this: A shared embedded key is easily extracted, cannot distinguish partners and cannot be revoked for just one.

CWhy not this: Detailed stack traces leak internal structure and code paths that help attackers craft injection and abuse.

DWhy this is right: Per-client limits and quotas restrict automated abuse, scraping and denial-of-service attempts.

EWhy this is right: Scoped tokens enforce least privilege and let each partner's access be limited and revoked individually.

Scoped tokens limit what each partner can access, gateway quotas curb abuse, and specification-based validation blocks malformed or injected input. A shared static key cannot identify or revoke individual partners and is easily extracted from the SDK. Detailed stack traces in errors leak internals that help attackers.