Question 610
An external app references a helper procedure that should be private to the extension's implementation. The developer recommends the following change: Apply AL access modifiers to restrict internal implementation members. Which technical explanation most directly justifies it in this case?
Explanation
Correct Answer
AL access controls define which objects and procedures are available to consumers and prevent unsupported coupling. It connects the proposed action to the exact failure or requirement—An external app references a helper procedure that should be private to the extension's implementation. Confirmation would be external extension code can call the intended public api but cannot reference the internal member.
Incorrect Answers
That mechanism explains why the alternative action—use an explicit al case or conditional expression with complete expected branches—helps in another case. It does not justify the proposed fix here; al access controls define which objects and procedures are available to consumers and prevent unsupported coupling. The distinguishing requirement is: An external app references a helper procedure that should be private to the extension's implementation.
That mechanism explains why the alternative action—raise a descriptive al error with appropriate context and user-facing details—helps in another case. It does not justify the proposed fix here; al access controls define which objects and procedures are available to consumers and prevent unsupported coupling. The distinguishing requirement is: An external app references a helper procedure that should be private to the extension's implementation.
That mechanism explains why the alternative action—use an appropriate guarded al error-handling pattern and preserve transactional safety—helps in another case. It does not justify the proposed fix here; al access controls define which objects and procedures are available to consumers and prevent unsupported coupling. The distinguishing requirement is: An external app references a helper procedure that should be private to the extension's implementation.





Microsoft Dynamics 365 Business Central Developer (MB-820) Practice Tests