Microsoft MB-820 Practice Test 38
Question 370
A tax vendor must switch between region-specific calculation implementations while keeping consumers unaware of each implementation's details. The risk committee is identifying shortcuts that might pass a short demonstration yet undermine upgrade safety, data integrity, security, maintainability or expected Business Central behavior. It wants either the specific false assumption rejected or complementary engineering controls demonstrated. Which TWO complementary steps jointly address the risk and verify the implementation? Select TWO answers.
- Put business-rule validation in suitable AL table or field triggers and test all supported write paths.
- Write each consumer against concrete implementation internals and repeat the switch statement everywhere.
- Unit test each implementation against the same interface expectations and provider-specific inputs.
- Verify toolkit availability, test-codeunit discovery and test execution on isolated fixtures.
- Define a common AL interface and implement it with appropriate codeunits for each strategy.
Explanation
Correct Answers
C:This directly checks the failure mode instead of only proving that a build completed. The target result is: A caller can invoke alternative processors through a stable contract without copying dispatch logic.
E:Interfaces separate a contract from multiple implementations and reduce tight consumer coupling. The proposed change is: Define a common AL interface and implement it with appropriate codeunits for each strategy. Verification should include: Unit test each implementation against the same interface expectations and provider-specific inputs.
Incorrect Answers
A:This action concerns Field validation triggers, not the present Interfaces for interchangeable processors issue. The implementation called for here is: Define a common AL interface and implement it with appropriate codeunits for each strategy. Its key check is: Unit test each implementation against the same interface expectations and provider-specific inputs.
B:This proposal is itself unsafe: Write each consumer against concrete implementation internals and repeat the switch statement everywhere. It undermines the relevant engineering requirement. The appropriate decision is: Define a common AL interface and implement it with appropriate codeunits for each strategy.
D:The intended outcome is: A caller can invoke alternative processors through a stable contract without copying dispatch logic.
Question 371
A newly installed extension must create its default setup record only once and should not reset administrator edits on every user session. The implementation meeting demands a concrete engineering decision that can survive the next platform update, rather than merely a reassuring design statement. The developer must decide which change resolves this business request with the smallest unsupported customization footprint. Which implementation decision most directly resolves the requirement or risk? Select ONE best answer.
- Use install codeunit logic with existence checks and idempotent setup initialization.
- Create deterministic test fixtures and explicitly control setup and cleanup across test cases.
- Use telemetry to identify operation duration and bottlenecks, then validate the targeted optimization.
- Unconditionally delete and recreate setup on every application startup.
Explanation
Correct Answer
A:One-time installation setup differs from normal application execution and must preserve existing valid state.
Incorrect Answers
B:That option concerns Scenario-based test fixtures. One-time installation setup differs from normal application execution and must preserve existing valid state.
C:This decision is relevant to Telemetry performance diagnosis, a different design concern. It does not directly solve the reported Install codeunit initialization failure.
D:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup. It undermines the relevant engineering requirement. The governing principle is: One-time installation setup differs from normal application execution and must preserve existing valid state. The appropriate decision is: Use install codeunit logic with existence checks and idempotent setup initialization.
Question 372
A newly installed extension must create its default setup record only once and should not reset administrator edits on every user session. During architectural review, the team is evaluating the underlying Business Central or AL rule that makes one approach sound. The answer must explain the lifecycle or execution principle, even before any code is committed or a release ticket is opened. Which platform or AL development principle BEST explains the correct engineering approach? Select ONE best answer.
- One-time installation setup differs from normal application execution and must preserve existing valid state.
- Unconditionally delete and recreate setup on every application startup.
- The extension model isolates owned changes from the standard application upgrade lifecycle.
- External JSON payloads are data contracts whose schema variation must be handled explicitly.
Explanation
Correct Answer
A:One-time installation setup differs from normal application execution and must preserve existing valid state. It supports the concrete step: Use install codeunit logic with existence checks and idempotent setup initialization. In this scenario, check: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
Incorrect Answers
B:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup. It undermines the relevant engineering requirement.
C:That principle relates to Architecture of extension-first customization, but it does not explain the current defect. The pertinent rule is: One-time installation setup differs from normal application execution and must preserve existing valid state. Its implementation is: Use install codeunit logic with existence checks and idempotent setup initialization.
D:That principle relates to JSON parsing and schema validation, but it does not explain the current defect. The pertinent rule is: One-time installation setup differs from normal application execution and must preserve existing valid state. Its implementation is: Use install codeunit logic with existence checks and idempotent setup initialization.
Question 373
A newly installed extension must create its default setup record only once and should not reset administrator edits on every user session. A skeptical test lead requires reproducible proof from the affected tenant or extension artifact. A successful compilation alone is insufficient; the team must name a targeted trace, inspection, test result or configuration record connected to the reported behavior. What investigation or test evidence most directly verifies that the issue was addressed? Select ONE best answer.
- Test first installation and controlled reinstall with edited setup data and inspect resulting records.
- Collect AppSourceCop results, automated test evidence, packaging metadata and validation submission feedback.
- Run representative upgrade tests comparing record counts and key values before and after the app upgrade.
- Unconditionally delete and recreate setup on every application startup.
Explanation
Correct Answer
A:This directly checks the failure mode instead of only proving that a build completed. Test first installation and controlled reinstall with edited setup data and inspect resulting records.
Incorrect Answers
B:That test probes AppSource readiness and validation, not the case-specific problem. The discriminating diagnostic for Install codeunit initialization is: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
C:That test probes Data ownership and upgrade continuity, not the case-specific problem. The discriminating diagnostic for Install codeunit initialization is: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
D:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup. It undermines the relevant engineering requirement. The governing principle is: One-time installation setup differs from normal application execution and must preserve existing valid state.
Question 374
A newly installed extension must create its default setup record only once and should not reset administrator edits on every user session. After a controlled deployment rehearsal, the product owner must distinguish a measurable, usable business outcome from mere delivery of an extension package. The acceptance criterion should remain meaningful when tested again after a platform update or service restart. Which observable acceptance outcome BEST demonstrates that the solution meets the requirement? Select ONE best answer.
- The UI supports the requested review or edit workflow without forcing unnecessary navigation.
- Unconditionally delete and recreate setup on every application startup.
- Customers can upgrade in the supported order without dependency or data-upgrade failure.
- Required default configuration exists without unexpectedly overwriting customer changes.
Explanation
Correct Answer
D:This is an observable success criterion tied to the requirement. Required default configuration exists without unexpectedly overwriting customer changes.
Incorrect Answers
A:That is an acceptance criterion for List versus Card page selection, not the behavior requested here.
B:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup.
C:That is an acceptance criterion for Version maintenance and deployment order, not the behavior requested here. This change succeeds when: Required default configuration exists without unexpectedly overwriting customer changes.
Question 375
A newly installed extension must create its default setup record only once and should not reset administrator edits on every user session. The risk committee is identifying shortcuts that might pass a short demonstration yet undermine upgrade safety, data integrity, security, maintainability or expected Business Central behavior. It wants either the specific false assumption rejected or complementary engineering controls demonstrated. Which flawed shortcut most directly creates the specific risk described? Select ONE best answer.
- Unconditionally delete and recreate setup on every application startup.
- Mark setup complete after the first page opens even if required authentication settings are absent.
- Fix relationship errors by hiding duplicated rows in the layout rather than correcting the dataset.
- Overwrite the sole master-data attribute each time a new financial transaction occurs.
Explanation
Correct Answer
A:This is the specific shortcut to reject: Unconditionally delete and recreate setup on every application startup. It conflicts with the principle: One-time installation setup differs from normal application execution and must preserve existing valid state. Prefer: Use install codeunit logic with existence checks and idempotent setup initialization.
Incorrect Answers
B:This would be a poor shortcut for the separate topic of Assisted setup workflow; however, it does not identify the specific faulty assumption in this Install codeunit initialization case. The directly implicated shortcut is: Unconditionally delete and recreate setup on every application startup.
C:This would be a poor shortcut for the separate topic of Report dataset and dataitem linking; however, it does not identify the specific faulty assumption in this Install codeunit initialization case. The directly implicated shortcut is: Unconditionally delete and recreate setup on every application startup.
D:This would be a poor shortcut for the separate topic of Master data versus transaction data; however, it does not identify the specific faulty assumption in this Install codeunit initialization case. The directly implicated shortcut is: Unconditionally delete and recreate setup on every application startup.
Question 376
An app's installation routine overwrites existing configuration in a tenant where the package was reinstalled during recovery. The implementation meeting demands a concrete engineering decision that can survive the next platform update, rather than merely a reassuring design statement. The developer must decide which change resolves this business request with the smallest unsupported customization footprint. Which implementation decision most directly resolves the requirement or risk? Select ONE best answer.
- Unconditionally delete and recreate setup on every application startup.
- Use install codeunit logic with existence checks and idempotent setup initialization.
- Parse JSON using supported AL JSON objects and validate optional properties and expected data types.
- Use telemetry to identify operation duration and bottlenecks, then validate the targeted optimization.
Explanation
Correct Answer
B:One-time installation setup differs from normal application execution and must preserve existing valid state. The proposed change is: Use install codeunit logic with existence checks and idempotent setup initialization.
Incorrect Answers
A:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup. The governing principle is: One-time installation setup differs from normal application execution and must preserve existing valid state.
C:That option concerns JSON parsing and schema validation. One-time installation setup differs from normal application execution and must preserve existing valid state.
D:This decision is relevant to Telemetry performance diagnosis, a different design concern. It does not directly solve the reported Install codeunit initialization failure. The targeted implementation is: Use install codeunit logic with existence checks and idempotent setup initialization.
Question 377
An app's installation routine overwrites existing configuration in a tenant where the package was reinstalled during recovery. During architectural review, the team is evaluating the underlying Business Central or AL rule that makes one approach sound. The answer must explain the lifecycle or execution principle, even before any code is committed or a release ticket is opened. Which platform or AL development principle BEST explains the correct engineering approach? Select ONE best answer.
- One-time installation setup differs from normal application execution and must preserve existing valid state.
- The extension model isolates owned changes from the standard application upgrade lifecycle.
- Marketplace distribution imposes certification, compatibility and policy expectations beyond local compilation.
- Unconditionally delete and recreate setup on every application startup.
Explanation
Correct Answer
A:One-time installation setup differs from normal application execution and must preserve existing valid state.
Incorrect Answers
B:That principle relates to Architecture of extension-first customization, but it does not explain the current defect. The pertinent rule is: One-time installation setup differs from normal application execution and must preserve existing valid state.
C:That principle relates to AppSource readiness and validation, but it does not explain the current defect. The pertinent rule is: One-time installation setup differs from normal application execution and must preserve existing valid state. Its implementation is: Use install codeunit logic with existence checks and idempotent setup initialization.
D:It undermines the relevant engineering requirement. The governing principle is: One-time installation setup differs from normal application execution and must preserve existing valid state.
Question 378
An app's installation routine overwrites existing configuration in a tenant where the package was reinstalled during recovery. A skeptical test lead requires reproducible proof from the affected tenant or extension artifact. A successful compilation alone is insufficient; the team must name a targeted trace, inspection, test result or configuration record connected to the reported behavior. What investigation or test evidence most directly verifies that the issue was addressed? Select ONE best answer.
- Capture dependency versions, deployment sequence, installation logs and migration test results.
- Unconditionally delete and recreate setup on every application startup.
- Check VS Code extensions, app.json, launch.json and downloaded AL symbols.
- Test first installation and controlled reinstall with edited setup data and inspect resulting records.
Explanation
Correct Answer
D:This directly checks the failure mode instead of only proving that a build completed. Test first installation and controlled reinstall with edited setup data and inspect resulting records. The target result is: Required default configuration exists without unexpectedly overwriting customer changes.
Incorrect Answers
A:That test probes Version maintenance and deployment order, not the case-specific problem. The discriminating diagnostic for Install codeunit initialization is: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
B:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup. The appropriate decision is: Use install codeunit logic with existence checks and idempotent setup initialization.
C:That test probes AL toolchain configuration, not the case-specific problem. The discriminating diagnostic for Install codeunit initialization is: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
Question 379
An app's installation routine overwrites existing configuration in a tenant where the package was reinstalled during recovery. After a controlled deployment rehearsal, the product owner must distinguish a measurable, usable business outcome from mere delivery of an extension package. The acceptance criterion should remain meaningful when tested again after a platform update or service restart. Which observable acceptance outcome BEST demonstrates that the solution meets the requirement? Select ONE best answer.
- Required default configuration exists without unexpectedly overwriting customer changes.
- A report consumes a consistent performant dataset without unnecessary manual row-by-row joins.
- The UI supports the requested review or edit workflow without forcing unnecessary navigation.
- Unconditionally delete and recreate setup on every application startup.
Explanation
Correct Answer
A:Required default configuration exists without unexpectedly overwriting customer changes. The supporting evidence is: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
Incorrect Answers
B:That is an acceptance criterion for Queries as source for reporting, not the behavior requested here. This change succeeds when: Required default configuration exists without unexpectedly overwriting customer changes.
C:That is an acceptance criterion for List versus Card page selection, not the behavior requested here. This change succeeds when: Required default configuration exists without unexpectedly overwriting customer changes. In this scenario: usiness outcome from mere delivery of an extension package. The acceptance criterion should remain meaningful when tested again after a platform update or service restart.
D:It undermines the relevant engineering requirement. The appropriate decision is: Use install codeunit logic with existence checks and idempotent setup initialization.
Question 380
An app's installation routine overwrites existing configuration in a tenant where the package was reinstalled during recovery. The risk committee is identifying shortcuts that might pass a short demonstration yet undermine upgrade safety, data integrity, security, maintainability or expected Business Central behavior. It wants either the specific false assumption rejected or complementary engineering controls demonstrated. Which TWO complementary steps jointly address the risk and verify the implementation? Select TWO answers.
- Test first installation and controlled reinstall with edited setup data and inspect resulting records.
- Rerun tests individually and together, comparing initial state, expected outputs and cleanup.
- Use a well-scoped reusable procedure with intentional parameters, return values and state changes.
- Unconditionally delete and recreate setup on every application startup.
- Use install codeunit logic with existence checks and idempotent setup initialization.
Explanation
Correct Answers
A:This directly checks the failure mode instead of only proving that a build completed. The target result is: Required default configuration exists without unexpectedly overwriting customer changes.
E:One-time installation setup differs from normal application execution and must preserve existing valid state. The proposed change is: Use install codeunit logic with existence checks and idempotent setup initialization. Verification should include: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
Incorrect Answers
B:The intended outcome is: Required default configuration exists without unexpectedly overwriting customer changes.
C:This action concerns AL procedures and parameter semantics, not the present Install codeunit initialization issue. The implementation called for here is: Use install codeunit logic with existence checks and idempotent setup initialization. Its key check is: Test first installation and controlled reinstall with edited setup data and inspect resulting records.
D:This proposal is itself unsafe: Unconditionally delete and recreate setup on every application startup. It undermines the relevant engineering requirement. The appropriate decision is: Use install codeunit logic with existence checks and idempotent setup initialization.