Question 170
A delegated customer lookup fails because the user's authorization token expired. What should the system do?
Explanation
Correct Answer
Expired identity proof cannot be repaired by changing the resource target. Separate token expiry from a customer-not-found result. Expired tokens are an authentication state, not grounds to bypass identity checks. Invoke the supported reauthentication process and retry only after obtaining valid authority, with any previous pending side effect reconciled first. Do not log expired token bytes into model context. Bypassing access control is not a valid fix. Credentials cannot be synthesized from text. Cross-user tokens violate authorization.
Incorrect Answers
An authentication token is bound to a particular principal, client and permitted scope. Borrowing a token from another customer's session would grant access under the wrong identity and could expose unrelated records. An expired credential requires reauthentication through the supported provider flow, not credential substitution. The original request can remain pending while the owner restores valid authorization, after which the host should retry only the specifically permitted lookup and report its observed result.
An expired user authorization token cannot be recreated from text in the conversation because valid credentials require an identity provider's issuance and trust process. A fabricated string would fail authentication or, worse, encourage misrepresentation of access state. The host should return a truthful authentication-required error, initiate the supported refresh or reauthorization flow, and retry only after receiving a genuine scoped token. Do not silently substitute another user's credential or bypass permission checks.
Removing authentication for a single customer lookup is still an authorization bypass. The expired token no longer proves the caller's active identity or account privileges, and an otherwise harmless read may disclose personally identifiable records. The executor should stop the protected call, begin the service's supported refresh or interactive reauthentication flow and verify the resulting principal and scopes before trying again. A temporary exception to identity checks would make the lookup succeed by abandoning the security requirement rather than restoring valid permission.



Claude Certified Architect - Foundations (CCA-F) Practice Tests