Question 100
At fictional Juniper Hospitality, the Business Central development team is supporting property purchasing and billing and reviewing object model and application extensibility during a sandbox design review (MB820-3.4-091). The observed development issue is that a business process needs initial setup data on first install and updated configuration during an app version change. Which AL development or design response most directly addresses this issue?
Explanation
Correct Answer
The most direct corrective response is to use distinct Install and Upgrade codeunits, implementing the appropriate lifecycle triggers. This addresses the specific failure where a business process needs initial setup data on first install and updated configuration during an app version change. Acceptance evidence is that fresh installations and upgrades apply only their intended initialization or migration actions.
Incorrect Answers
The proposed “Restrict the procedure's access with appropriate AL access modifiers and resource permissions” tests a different control: restrict the procedure's access with appropriate AL access modifiers and resource permissions. The reported condition is that a business process needs initial setup data on first install and updated configuration during an app version change; the more direct action is to use distinct Install and Upgrade codeunits, implementing the appropriate lifecycle triggers.
“Inspect the event signature and handle missing or incomplete values according to contract” supports the separate task “inspect the event signature and handle missing or incomplete values according to contract”, not the reported problem: a business process needs initial setup data on first install and updated configuration during an app version change. This case instead calls for “use distinct Install and Upgrade codeunits, implementing the appropriate lifecycle triggers”.
“Subscribe to an appropriate published business event or design a reusable codeunit validation at the relevant process boundary” concerns the separate step “subscribe to an appropriate published business event or design a reusable codeunit validation at the relevant process boundary”. The reported issue is that a business process needs initial setup data on first install and updated configuration during an app version change, so the direct response is to use distinct Install and Upgrade codeunits, implementing the appropriate lifecycle triggers.