Architecture Design and Implementation Built for the Cloud

A SaaS application stores multiple tenants' rows in shared Aurora PostgreSQL tables and must enforce tenant isolation even when an application query omits its tenant filter. Which design meets this requirement?

Show the answer

Correct answerC. Enforce row-level security using trusted tenant context and a runtime role that cannot bypass it.

AWhy not this: Storage encryption protects data at rest but does not enforce tenant-specific visibility in SQL results.

BWhy not this: A read replica contains the shared data and does not inherently restrict a tenant to its own rows.

CWhy this is right: Database-enforced policies restrict visible rows using trusted tenant context, even when the query lacks a tenant predicate.

DWhy not this: Application predicates provide no database-enforced protection when a query omits its tenant filter.

PostgreSQL row-level security can enforce tenant predicates inside the database, independently of application query filters. Developer-supplied predicates alone do not protect against an omitted filter.