Question 380
A data API exposes a view containing service tokens that were never intended for API consumers. What measurement or test best demonstrates that the requirement is satisfied?
Explanation
Correct Answer
Securing GraphQL and REST requires response-field minimization in addition to connection authentication. The observation “Red-team test payloads do not reveal internal secrets or disallowed columns” directly confirms the chosen action worked for this situation: A data API exposes a view containing service tokens that were never intended for API consumers.
Incorrect Answers
RLS depends on a trustworthy predicate and context; user-controlled context can undermine isolation. This observation would not establish that the required result occurred for A data API exposes a view containing service tokens that were never intended for API consumers. The confirming test is: Red-team test payloads do not reveal internal secrets or disallowed columns.
Database RLS applies row filters and block predicates centrally; it still needs secure session context. This observation would not establish that the required result occurred for A data API exposes a view containing service tokens that were never intended for API consumers. The confirming test is: Red-team test payloads do not reveal internal secrets or disallowed columns.
Promoting the same validated artifact strengthens release traceability and reduces environment divergence. This observation would not establish that the required result occurred for A data API exposes a view containing service tokens that were never intended for API consumers. The confirming test is: Red-team test payloads do not reveal internal secrets or disallowed columns.