Question 10
An AL extension team encounters the following situation: A developer calls a web service inside a transaction and ignores timeouts while locks remain held. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
Network latency and retry storms can magnify locking and inconsistency risks. The corresponding corrective design is to separate slow external coordination from critical data transactions and apply bounded failure handling. A passing check is: A simulated service outage does not strand records in a partially updated state.
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 “Network latency and retry storms can magnify locking and inconsistency risks”.
This alternative addresses the separate case “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. The deciding requirement here is “Network latency and retry storms can magnify locking and inconsistency risks”.
The related but distinct situation is “A codeunit iterates all sales lines just to locate records for one document number”. Precise record filtering reduces unnecessary data retrieval and accidental cross-document updates. For the stated problem, “Network latency and retry storms can magnify locking and inconsistency risks” addresses the central condition.