Microsoft MB-820 Practice Test 35
Question 340
A shipping extension exports a structured manifest but hardcodes serial XML string concatenation throughout an event handler. 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 edge values, empty identifiers, decimal precision and differing locale settings.
- Inspect stream handling, execution logs and sample exported/imported files against a stable contract.
- Provide a staged onboarding checklist with task links and evidence-based completion state.
- Invoke the XMLport from controlled AL code and handle file streams, processing results and errors.
- Paste unescaped user values directly into raw XML without using the defined XMLport contract.
Explanation
Correct Answers
B:This directly checks the failure mode instead of only proving that a build completed. The target result is: The scheduled exchange produces traceable records and correctly structured files.
D:XMLport definitions can be reused by AL procedures for structured import/export workflows. The proposed change is: Invoke the XMLport from controlled AL code and handle file streams, processing results and errors. Verification should include: Inspect stream handling, execution logs and sample exported/imported files against a stable contract.
Incorrect Answers
A:The intended outcome is: The scheduled exchange produces traceable records and correctly structured files.
C:The implementation called for here is: Invoke the XMLport from controlled AL code and handle file streams, processing results and errors.
E:This proposal is itself unsafe: Paste unescaped user values directly into raw XML without using the defined XMLport contract. It undermines the relevant engineering requirement. The appropriate decision is: Invoke the XMLport from controlled AL code and handle file streams, processing results and errors.
Question 341
A discount algorithm is duplicated across a sales page, API and scheduled job, giving different totals for the same customer. 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.
- Add build, analyzer and automated test stages to the CI/CD workflow before release approval.
- Use supported streams and Business Central upload/download patterns instead of private server paths.
- Put reusable business logic in a codeunit invoked from the necessary application entry points.
- Copy the same algorithm into every page and job and maintain each version separately.
Explanation
Correct Answer
C:Correct engineering action for this case. Codeunits centralize procedures so business rules do not depend on a single UI page.
Incorrect Answers
A:This decision is relevant to Pipeline quality checks for AL, a different design concern. It does not directly solve the reported Codeunit separation of business logic failure.
B:That option concerns Streams and supported file access. Codeunits centralize procedures so business rules do not depend on a single UI page.
D:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately. It undermines the relevant engineering requirement. The governing principle is: Codeunits centralize procedures so business rules do not depend on a single UI page. The appropriate decision is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
Question 342
A discount algorithm is duplicated across a sales page, API and scheduled job, giving different totals for the same customer. 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.
- Copy the same algorithm into every page and job and maintain each version separately.
- Codeunits centralize procedures so business rules do not depend on a single UI page.
- External API writes must obey the same core business rules that protect interactive operations.
- Telemetry must balance troubleshooting utility with least-data disclosure and controlled retention.
Explanation
Correct Answer
B:Codeunits centralize procedures so business rules do not depend on a single UI page. It supports the concrete step: Put reusable business logic in a codeunit invoked from the necessary application entry points. In this scenario, check: Compare results across page, API and background codepaths using the same inputs.
Incorrect Answers
A:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately. It undermines the relevant engineering requirement.
C:That principle relates to API CRUD and business validation, but it does not explain the current defect. The pertinent rule is: Codeunits centralize procedures so business rules do not depend on a single UI page.
D:That principle relates to Custom telemetry data governance, but it does not explain the current defect. The pertinent rule is: Codeunits centralize procedures so business rules do not depend on a single UI page. Its implementation is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
Question 343
A discount algorithm is duplicated across a sales page, API and scheduled job, giving different totals for the same customer. 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.
- Compare results across page, API and background codepaths using the same inputs.
- Copy the same algorithm into every page and job and maintain each version separately.
- Compare app.json dependencies, published package versions, symbol downloads and installation errors.
- Review AL analyzer output, integration design and a sandbox execution trace in the intended hosting model.
Explanation
Correct Answer
A:This directly checks the failure mode instead of only proving that a build completed. Compare results across page, API and background codepaths using the same inputs.
Incorrect Answers
B:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately. It undermines the relevant engineering requirement. The governing principle is: Codeunits centralize procedures so business rules do not depend on a single UI page.
C:That test probes App dependency and version planning, not the case-specific problem. The discriminating diagnostic for Codeunit separation of business logic is: Compare results across page, API and background codepaths using the same inputs.
D:That test probes Online versus on-premises deployment constraints, not the case-specific problem. The discriminating diagnostic for Codeunit separation of business logic is: Compare results across page, API and background codepaths using the same inputs.
Question 344
A discount algorithm is duplicated across a sales page, API and scheduled job, giving different totals for the same customer. 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.
- Existing customer data is transformed correctly, with predictable repeatability and no destructive fresh-start assumption.
- Copy the same algorithm into every page and job and maintain each version separately.
- The defect is reproducible with source-level traces without modifying production records.
- All channels return the same calculation and rule enforcement outcome.
Explanation
Correct Answer
D:This is an observable success criterion tied to the requirement. All channels return the same calculation and rule enforcement outcome.
Incorrect Answers
A:That is an acceptance criterion for Upgrade codeunit data migration, not the behavior requested here.
B:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately.
C:That is an acceptance criterion for Launch profiles and debugging, not the behavior requested here. This change succeeds when: All channels return the same calculation and rule enforcement outcome.
Question 345
A discount algorithm is duplicated across a sales page, API and scheduled job, giving different totals for the same customer. 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.
- Copy the same algorithm into every page and job and maintain each version separately.
- Open an unfiltered global list every time because page actions have no access to record context.
- Replace all control captions with lengthy instructional paragraphs and remove normal field labels.
- Sum already duplicated joined rows and assume the query engine removes business duplicates automatically.
Explanation
Correct Answer
A:This is the specific shortcut to reject: Copy the same algorithm into every page and job and maintain each version separately. It conflicts with the principle: Codeunits centralize procedures so business rules do not depend on a single UI page. Prefer: Put reusable business logic in a codeunit invoked from the necessary application entry points.
Incorrect Answers
B:This would be a poor shortcut for the separate topic of Page actions and navigation; however, it does not identify the specific faulty assumption in this Codeunit separation of business logic case. The directly implicated shortcut is: Copy the same algorithm into every page and job and maintain each version separately.
C:This would be a poor shortcut for the separate topic of Teaching tips and in-app tours; however, it does not identify the specific faulty assumption in this Codeunit separation of business logic case.
D:This would be a poor shortcut for the separate topic of Query aggregation and grouping; however, it does not identify the specific faulty assumption in this Codeunit separation of business logic case. The directly implicated shortcut is: Copy the same algorithm into every page and job and maintain each version separately.
Question 346
A price calculation lives entirely in a page trigger but must also run when records arrive from an external integration. 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.
- Add build, analyzer and automated test stages to the CI/CD workflow before release approval.
- Copy the same algorithm into every page and job and maintain each version separately.
- Log bounded operational signals and safe correlation identifiers without secrets or unnecessary personal data.
- Put reusable business logic in a codeunit invoked from the necessary application entry points.
Explanation
Correct Answer
D:Codeunits centralize procedures so business rules do not depend on a single UI page. The proposed change is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
Incorrect Answers
A:This decision is relevant to Pipeline quality checks for AL, a different design concern. It does not directly solve the reported Codeunit separation of business logic failure. The targeted implementation is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
B:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately. The governing principle is: Codeunits centralize procedures so business rules do not depend on a single UI page.
C:That option concerns Custom telemetry data governance. Codeunits centralize procedures so business rules do not depend on a single UI page.
Question 347
A price calculation lives entirely in a page trigger but must also run when records arrive from an external integration. 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.
- External API writes must obey the same core business rules that protect interactive operations.
- Copy the same algorithm into every page and job and maintain each version separately.
- Codeunits centralize procedures so business rules do not depend on a single UI page.
- Business Central online does not expose arbitrary application-server operating-system access to tenant extensions.
Explanation
Correct Answer
C:This is the governing design principle. Codeunits centralize procedures so business rules do not depend on a single UI page.
Incorrect Answers
A:That principle relates to API CRUD and business validation, but it does not explain the current defect. The pertinent rule is: Codeunits centralize procedures so business rules do not depend on a single UI page. Its implementation is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
B:It undermines the relevant engineering requirement. The governing principle is: Codeunits centralize procedures so business rules do not depend on a single UI page.
D:That principle relates to Online versus on-premises deployment constraints, but it does not explain the current defect. The pertinent rule is: Codeunits centralize procedures so business rules do not depend on a single UI page.
Question 348
A price calculation lives entirely in a page trigger but must also run when records arrive from an external integration. 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.
- Copy the same algorithm into every page and job and maintain each version separately.
- Compare results across page, API and background codepaths using the same inputs.
- Confirm environment type, permissions, test data handling and promotion records.
- Inspect launch.json and confirm breakpoint hits, environment name and call stack in an isolated reproduction.
Explanation
Correct Answer
B:This directly checks the failure mode instead of only proving that a build completed. Compare results across page, API and background codepaths using the same inputs. The target result is: All channels return the same calculation and rule enforcement outcome.
Incorrect Answers
A:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately. The appropriate decision is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
C:That test probes Tenant and environment lifecycle, not the case-specific problem. The discriminating diagnostic for Codeunit separation of business logic is: Compare results across page, API and background codepaths using the same inputs.
D:That test probes Launch profiles and debugging, not the case-specific problem. The discriminating diagnostic for Codeunit separation of business logic is: Compare results across page, API and background codepaths using the same inputs.
Question 349
A price calculation lives entirely in a page trigger but must also run when records arrive from an external integration. 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 feature is available only under valid entitlement and required authorization conditions.
- All channels return the same calculation and rule enforcement outcome.
- Copy the same algorithm into every page and job and maintain each version separately.
- Existing customer data is transformed correctly, with predictable repeatability and no destructive fresh-start assumption.
Explanation
Correct Answer
B:All channels return the same calculation and rule enforcement outcome. The supporting evidence is: Compare results across page, API and background codepaths using the same inputs.
Incorrect Answers
A:That is an acceptance criterion for Entitlement versus permission boundaries, not the behavior requested here. This change succeeds when: All channels return the same calculation and rule enforcement outcome.
C:It undermines the relevant engineering requirement. The appropriate decision is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
D:That is an acceptance criterion for Upgrade codeunit data migration, not the behavior requested here. This change succeeds when: All channels return the same calculation and rule enforcement outcome. 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.
Question 350
A price calculation lives entirely in a page trigger but must also run when records arrive from an external integration. 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 reusable business logic in a codeunit invoked from the necessary application entry points.
- Copy the same algorithm into every page and job and maintain each version separately.
- Compare results across page, API and background codepaths using the same inputs.
- Follow documented Business Central document and master-data design patterns and preserve record relationships.
- Test upload/download with realistic files in a sandbox and inspect stream contents and errors.
Explanation
Correct Answers
A:Codeunits centralize procedures so business rules do not depend on a single UI page. The proposed change is: Put reusable business logic in a codeunit invoked from the necessary application entry points. Verification should include: Compare results across page, API and background codepaths using the same inputs.
C:This directly checks the failure mode instead of only proving that a build completed. The target result is: All channels return the same calculation and rule enforcement outcome.
Incorrect Answers
B:This proposal is itself unsafe: Copy the same algorithm into every page and job and maintain each version separately. It undermines the relevant engineering requirement. The appropriate decision is: Put reusable business logic in a codeunit invoked from the necessary application entry points.
D:Its key check is: Compare results across page, API and background codepaths using the same inputs.
E:This check is useful for Streams and supported file access but cannot prove the remedy in this case. Verify instead: Compare results across page, API and background codepaths using the same inputs. The intended outcome is: All channels return the same calculation and rule enforcement outcome.