Question 190
A GraphQL endpoint permits nested queries that return customer records from unauthorized tenants. Which acceptance check is MOST directly related to this scenario?
Explanation
Correct Answer
Cross-tenant nested queries return no unauthorized records in negative tests. This is the decisive observable evidence after implementing enforce tenant-aware authorization, bounded query complexity and back-end SQL row security. It tests the underlying requirement: GraphQL relationship traversal can increase data exposure if access is too broad.
Incorrect Answers
An anonymous request is denied and an approved role sees only permitted fields. However, that result would not establish the required outcome: cross-tenant nested queries return no unauthorized records in negative tests.
Model calls and retrieval calls each succeed only with required scopes. However, that result would not establish the required outcome: cross-tenant nested queries return no unauthorized records in negative tests.
The verified pipeline deploys to staging but fails from an untrusted branch. However, that result would not establish the required outcome: cross-tenant nested queries return no unauthorized records in negative tests.