Question 320
A developer proposes this approach: Use supported GlideSystem session context such as gs.isInteractive() where appropriate. Which business requirement is the strongest reason to choose it?
Explanation
Correct Answer
This business need directly motivates Use supported GlideSystem session context such as gs.isInteractive() where appropriate; Interactive session context can differentiate UI-driven execution from background processing.
Incorrect Answers
The described situation is better addressed by Return a generic access-denied response and use approved server messaging without exposing sensitive values. Security failures should avoid leaking protected record contents into errors or messages.
The described situation is better addressed by Capture the server-side user identity in an appropriate audit or log record. Server identity evidence is more reliable than a freely editable browser text field.
The described situation is better addressed by Enforce a server-side role and record permission check before carrying out the operation. Client presentation controls can be bypassed, so the server must authorize the operation.