Question 530
An AL extension team encounters the following situation: An extension stores a secret token as ordinary Text and writes it to an error log during troubleshooting. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
The underlying mechanism is that credentials must not be exposed through general variables, telemetry, or exception messages. Therefore the developer should use supported secret-handling types or secure storage patterns and redact diagnostic output. Confirm with: Error logs contain no token even when the integration fails.
Incorrect Answers
This option serves the scenario “An AL loop changes a Record before checking that the current user is authorized for the operation”. The underlying mechanism is that a check after a side effect can create partial updates and audit gaps. The present scenario is distinguished by “Credentials must not be exposed through general variables, telemetry, or exception messages”.
This alternative addresses the separate case “An external service returns a blank value and AL code assumes it means the customer has approved payment”. The underlying mechanism is that defaulting unknown inputs to approval can create financial authorization failures. The deciding requirement here is “Credentials must not be exposed through general variables, telemetry, or exception messages”.
The related but distinct situation is “A helper procedure modifies a purchase line silently without running its standard validation”. Direct assignment can bypass field validation logic and allow inconsistent dependent values. For the stated problem, “Credentials must not be exposed through general variables, telemetry, or exception messages” addresses the central condition.