Question 210
A Data API builder GraphQL endpoint exposes a confidential SQL table field through introspection. Which implementation step most directly addresses this requirement?
Explanation
Correct Answer
GraphQL schemas and per-entity permissions must restrict exposed fields and operations. Restrict schema exposure and remove or authorize sensitive fields before deployment. Restricted clients cannot query confidential fields or mutate protected objects.
Incorrect Answers
That change leaves the underlying defect unresolved: Schema hiding is not an access-control boundary; remove or authorize sensitive fields at the resolver and SQL layer.
The proposed implementation creates the wrong boundary because Identity and permission mapping are separate; test field-level exposure under low-privilege principals.
This step would not produce the required behavior: The API must restrict accessible schema/resolvers and database grants independently of client presentation. This alternative omits a necessary contract or control and leaves the tested failure path open.