Question 40
A project lead describes the following situation: A pull request changes a JWT authorization middleware. What should the developer do first?
Explanation
Correct Answer
Authentication tests need positive and negative principal fixtures. Acceptance evidence: A token missing the required claim is denied.
Incorrect Answers
Concurrency defects rarely appear in sequential examples. That recommendation is relevant to a different task: A concurrency-safe counter implementation was drafted by an assistant. In this case the main need is: A pull request changes a JWT authorization middleware.
Test generation can expose negative authorization paths. That recommendation is relevant to a different task: An endpoint must reject invalid authorization tokens while still allowing valid ones. In this case the main need is: A pull request changes a JWT authorization middleware.
Parameterized statements prevent interpreting input as executable SQL syntax. That recommendation is relevant to a different task: A generated login form concatenates user input into a SQL string. In this case the main need is: A pull request changes a JWT authorization middleware.