Question 940
A GraphQL endpoint permits nested queries that return customer records from unauthorized tenants. Which implementation decision BEST addresses this requirement?
Explanation
Correct Answer
Enforce tenant-aware authorization, bounded query complexity and back-end SQL row security. This targets the primary issue because graphQL relationship traversal can increase data exposure if access is too broad. Verification: Cross-tenant nested queries return no unauthorized records in negative tests. Prevent recurrence: Rate-limit expensive query shapes and monitor access logs.
Incorrect Answers
API generation does not automatically imply that exposed data is appropriately authorized.
Network allowlisting does not establish user identity or object authorization.
Exposing a constrained view can limit data surface without broad base-table rights.