A public REST API fronts a multi-tenant SaaS app. Partners call it from server-side code, and a leaked key must not let one tenant read another tenant's records. Which design BEST meets this?
Show the answer
Correct answerC. OAuth 2.0 access tokens with short lifetimes, scoped per tenant, validated at the API gateway and enforced again by object-level authorization in the service
AWhy not this: Protects credential storage and transport, but static credentials carry no scope and do not enforce tenant-level authorization.
BWhy not this: Authenticates the client but performs no per-object authorization, so any authenticated caller could request other tenants' records.
CWhy this is right: Limits token lifetime and scope, and enforces tenant boundaries in the service itself, so a leaked credential cannot cross tenants.
DWhy not this: Long-lived static keys give a leak a long exposure window, and an IP restriction does nothing about tenant data authorization.
Short-lived, tenant-scoped tokens limit the impact of a leak, and object-level authorization in the service stops cross-tenant access (broken object level authorization). Mutual TLS only authenticates the channel and does not decide which records a caller may read.