Question 690
A GraphQL endpoint permits nested queries that return customer records from unauthorized tenants. What maintenance or governance control BEST reduces recurrence of this problem?
Explanation
Correct Answer
Rate-limit expensive query shapes and monitor access logs. This guards against recurrence because graphQL relationship traversal can increase data exposure if access is too broad. The direct remediation is: Enforce tenant-aware authorization, bounded query complexity and back-end SQL row security.
Incorrect Answers
Combine DAB permissions with SQL RLS where applicable. The current task instead requires this action: rate-limit expensive query shapes and monitor access logs.
Prevent arbitrary tenant context spoofing and test privileged access. The current task instead requires this action: rate-limit expensive query shapes and monitor access logs.
Reset pooled connections and validate context on each request. The current task instead requires this action: rate-limit expensive query shapes and monitor access logs.