Our team of highly skilled and experienced professionals is dedicated to delivering up-to-date and precise study materials in PDF format to our customers. We deeply value both your time and financial investment, and we have spared no effort to provide you with the highest quality work. We ensure that our students consistently achieve a score of more than 95% in the Microsoft MB-820 exam. You provide only authentic and reliable study material. Our team of professionals is always working very keenly to keep the material updated. Hence, they communicate to the students quickly if there is any change in the MB-820 dumps file. The Microsoft MB-820 exam question answers and MB-820 dumps we offer are as genuine as studying the actual exam content.
24/7 Friendly Approach:
You can reach out to our agents at any time for guidance; we are available 24/7. Our agent will provide you information you need; you can ask them any questions you have. We are here to provide you with a complete study material file you need to pass your MB-820 exam with extraordinary marks.
Quality Exam Dumps for Microsoft MB-820:
Pass4surexams provide trusted study material. If you want to meet a sweeping success in your exam you must sign up for the complete preparation at Pass4surexams and we will provide you with such genuine material that will help you succeed with distinction. Our experts work tirelessly for our customers, ensuring a seamless journey to passing the Microsoft MB-820 exam on the first attempt. We have already helped a lot of students to ace IT certification exams with our genuine MB-820 Exam Question Answers. Don't wait and join us today to collect your favorite certification exam study material and get your dream job quickly.
90 Days Free Updates for Microsoft MB-820 Exam Question Answers and Dumps:
Enroll with confidence at Pass4surexams, and not only will you access our comprehensive Microsoft MB-820 exam question answers and dumps, but you will also benefit from a remarkable offer – 90 days of free updates. In the dynamic landscape of certification exams, our commitment to your success doesn't waver. If there are any changes or updates to the Microsoft MB-820 exam content during the 90-day period, rest assured that our team will promptly notify you and provide the latest study materials, ensuring you are thoroughly prepared for success in your exam."
Microsoft MB-820 Real Exam Questions:
Quality is the heart of our service that's why we offer our students real exam questions with 100% passing assurance in the first attempt. Our MB-820 dumps PDF have been carved by the experienced experts exactly on the model of real exam question answers in which you are going to appear to get your certification.
Microsoft MB-820 Sample Questions
Question # 1
You are creating an entitlement object in Business Central to enable transactability for AppSource
apps.
You must map the entitlement object to a plan in Partner Center.
You need to select the value of the Type property to use in the entitlement object.
Which value should you use?
A. PerUserServicePlan B. Implicit C. Unlicensed D. Role
Answer: A Explanation: In Business Central, when creating an entitlement object to enable transactability for AppSource apps and mapping it to a plan in Partner Center, the Type property of the entitlement object should be set to PerUserServicePlan (A). The PerUserServicePlan type is used to define an entitlement that is based on a service plan, which is typically how transactability features are managed for apps distributed through AppSource. This type of entitlement allows for the mapping of specific features or capabilities of the app to a service plan in Partner Center, enabling granular control over what users are entitled to use based on their subscription. The other values, such as Implicit (B), Unlicensed (C), and Role (D), are used in different contexts and do not apply to the scenario of mapping an entitlement object to a plan for AppSource app
Question # 2
You are exporting data from Business Central.
You must export the data in a non-fixed length and width in CSV format.
You need to generate an XMLport to export the data in the required format
Which Format property value should you use?
A. XML B. VariableText C. FixedText
Answer: B Explanation: When exporting data from Business Central and the requirement is for the data to be in a non-fixed length and width CSV format, the Format property of the XMLport should be set to VariableText (B). The VariableText format is designed for handling data exports where the fields are separated by a delimiter, such as a comma or tab, which is typical of CSV (Comma-Separated Values) files. This format allows for the flexibility needed when dealing with varying field lengths, as it does not enforce a fixed width for each field, making it ideal for CSV data exports. Setting the Format property to FixedText (C) would enforce a fixed width for each field, which is not suitable for CSV files, while the XML format (A) is used for exporting data in an XML structure, which is different from the CSV format requirements.
Question # 3
A company uses Business Central. The company plans to use the AL object model in Business Central to extend the Base Application. You need to extend the objects. Which two objects can you extend? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
A. Codeunit B. Report C. Query D. API page E. Enum
Answer: B, E Explanation:A. Codeunit Codeunits can be extended in AL to add or modify functionality in Business Central. B. Report Reports can also be extended to customize the format or data presented in the reports without modifying the base report. Incorrect Options: C. Query: Queries cannot be extended. You would need to create new queries or modify the existing ones directly. D. API page: You cannot extend API pages, but you can create new API pages. E. Enum: You cannot extend Enums because they are predefined sets of values.
Question # 4
A company has extended Business Central. You plan to submit the extension to AppSource. You need to ensure that an application meets the technical requirements before submitting it for validation. Which three actions should you perform? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
A. Use the OnBeforeCompanyOpen event for improved sign in time B. Include extension translation files with the submission. C. Ensure the app file is digitally signed D. Code all date fields in the mm-dd-yyyy format E. Use data classification on all tables and extension fields.
Answer: BCE Explanation: ï‚? B. Include extension translation files with the submission. AppSource submissions require that the extension be localized to different languages, and including translation files is part of the requirement. ï‚? C. Ensure the app file is digitally signed. Digitally signing the app file is a security requirement for AppSource submissions to ensure the integrity and authenticity of the app. ï‚? E. Use data classification on all tables and extension fields. Microsoft requires that all data, especially personal data, be classified using the data classification feature to comply with GDPR and other data privacy regulations.
Question # 5
You plan to write unit test functions to test newly developed functionality in an app.
You must create a test codeunit to write the functions.
You need to select the property to use for the test codeunit.
Which property should you use to ensure that the requirements are fulfilled?
A. SubType B. Access C. Description
Answer: A Explanation: When creating a test codeunit in Microsoft Dynamics 365 Business Central to write unit test functions, the SubType property (A) of the codeunit should be set to Test. This property is crucial for defining the codeunit's purpose and behavior within the application. By setting the SubType property to Test, you are indicating that the codeunit contains test functions intended to validate the functionality of other parts of the application, such as customizations or new developments. This distinction ensures that the testing framework within Business Central recognizes the codeunit as a container for test functions, allowing it to execute these functions in a testing context, which can include setting up test data, running the tests, and cleaning up after the tests have completed.
Question # 6
You create a Business Central report.
You need to insert values on the Request page to be saved for the next time the report is run.
What should you do?
A. Set the Transact! on Type property to Update. B. Declare a Savevalues' variable and assign it to true on the OnOpenPage () trigger. C. Set the Use Request Page property to true. D. Set the SaveValues property to true.
Answer: B Explanation: To ensure that the values inserted on the Request page of a Business Central report are saved for the next time the report is run, the SaveValues property (D) should be set to true. This property is available on the Request page of the report and, when set to true, allows the system to remember the values entered by the user, so they do not have to re-enter them each time they run the report. This feature enhances user experience by reducing repetitive data entry and ensuring consistency in report parameters across multiple executions. The other options mentioned, such as setting the Transaction Type property to Update (A) or declaring a Savevalues variable in the OnOpenPage trigger (B), are not directly related to saving user input on a report's Request page.
Question # 7
A company plans to meet new regulatory requirements.
The regulator has issued new tax tiers.
You need to update the base application table by using a table extension.
Which table field property can you change?
A. CalcFormula B. DecimalPlaces C. BlankZero D. AutoFormatType
Answer: C Explanation: When updating the base application table using a table extension in Microsoft Dynamics 365 Business Central, certain properties of table fields can be modified to meet new requirements, such as regulatory changes. The DecimalPlaces property (B) is one such property that can be adjusted in a table extension. This property determines the number of decimal places that are displayed and stored for decimal fields in the table. Adjusting the DecimalPlaces property can be particularly useful when dealing with financial data and tax calculations that require precision to meet new tax tiers set by a regulator. It's important to note that not all properties can be modified in a table extension; for example, the CalcFormula property (A) cannot be changed as it affects how the field's value is calculated, which could have significant implications on the base application's logic
Question # 8
A company is deploying Business Central on-premises.
The company plans to use a single-tenant deployment architecture.
You need to describe how the data is stored and how the Business Central Server is configured.
In which two ways should you describe the single-tenant architecture? Each correct answer presents
a complete solution.
NOTE: Each correct selection is worth one point.
A. Each customer has their own Business Central Server. B. The application and the business data are stored in the same database. C. Multiple customers share a single Business Central Server. D. The application and business data are stored in separate databases. E. Multiple customers share multiple Business Central Server instances.
Answer: A, B Explanation: In a single-tenant deployment architecture of Business Central on-premises, the following characteristics describe how the data is stored and how the Business Central Server is configured: The application and the business data are stored in the same database (B): In a single-tenant architecture, each tenant (which typically corresponds to a single customer) has its own dedicated database. This database contains both the application objects (such as pages, reports, codeunits, etc.) and the business data (such as customer, vendor, and transaction records). This setup ensures that each tenant's data is isolated and can be managed independently. The application and business data are stored in separate databases (D): While (B) is a characteristic of a single-tenant deployment, it's important to clarify that in some configurations, the application objects can be stored in a separate database from the business data. This approach can be used for easier maintenance and upgrades of the application code without affecting the business data. However, each tenant still has its own set of databases, maintaining the single-tenancy model. The other options provided do not accurately describe a single-tenant architecture: Each customer has their own Business Central Server (A): This statement might be misleading. In a single-tenant deployment, while each customer has their own database, they do not necessarily have their own Business Central Server instance. Multiple databases (tenants) can be hosted on a single server instance, although they are not shared across customers. Multiple customers share a single Business Central Server (C) and Multiple customers share multiple Business Central Server instances (E): These options describe a multi-tenant architecture rather than a single-tenant one. In a multi-tenant setup, multiple customers (tenants) can share the same server instance and even the same application database, with data isolation ensured at the application level.
Question # 9
You are developing an app.
You plan to publish the app to Microsoft AppSource.
You need to assign an object range for the app.
Which object range should you use?
A. custom object within the range 50000 to 59999 B. custom object within the range 50000 to 99999 C. divided by countries and use specific a country within the range 100000 to 999999 D. an object range within the range of 7000000 to 74999999 that is requested from Microsoft E. free object within the standard range 1 to 49999
Answer: D Explanation: When developing an app for Microsoft AppSource, it is essential to use an object range that is specifically designated by Microsoft to avoid conflicts with other apps and the base application. The correct object range to use is: An object range within the range of 70000000 to 74999999 that is requested from Microsoft (D): This range is reserved for AppSource apps. Developers need to request this range from Microsoft to ensure that the objects used in their extension do not conflict with those used by other extensions or by the base application. Using this reserved range helps maintain the integrity and compatibility of extensions published on AppSource. It's important to note that the other ranges mentioned (A, B, C, and E) are not suitable for apps intended for AppSource. Ranges 50000 to 59999 and 50000 to 99999 are typically reserved for pertenant customizations or partner solutions, not for distribution on AppSource. The standard range 1 to 49999 is reserved for the base application objects, and using an object range divided by countries (C) is not a standard practice for AppSource apps
Question # 10
You are developing an app that will be published to Microsoft AppSource.
The app requires code analyzers to enforce some rules. You plan to add the analyzers to the
settings.json file.
You need to activate the analyzers for the project.
Which three code analyzers should you activate to develop the app for AppSource? Each correct answer presents part of the solution NOTE: Each correct selection is worth one point
. A. CodeCop B. UlCop C. a custom rule set D. PerTenantExtensionCop E. AppSourceCop
Answer: B, D, E Explanation: When developing an app for Microsoft AppSource, it is crucial to adhere to specific guidelines and standards to ensure compatibility and compliance. The three code analyzers you should activate are: CodeCop (A): This is the default analyzer for AL language extensions. It enforces the AL Coding Guidelines, ensuring that the code follows best practices for readability, maintainability, and performance. It checks for a wide range of issues, from syntax errors to best practice violations, making it essential for any AL development. PerTenantExtensionCop (D): This analyzer is specifically designed for extensions that are intended to be installed for individual tenants. It includes rules that ensure the extension does not interfere with the per-tenant customizations and adheres to the guidelines for extensions that can be safely installed and uninstalled without affecting the underlying application. AppSourceCop (E): This analyzer is tailored for extensions that are intended for publication on Microsoft AppSource. It enforces additional rules that are specific to AppSource submissions, such as checking for the use of reserved object ranges and ensuring that all prerequisite dependencies are correctly declared. This is crucial for ensuring that your app meets all the requirements for listing on AppSource. By activating these three analyzers, developers can ensure their app adheres to the standards required for AppSource, as well as maintain high code quality and compatibility with Business Central
Question # 11
A company uses Business Central Users in DepartmentA are assigned a base application permission set. The company observes that Departments can display a critical page that should be unavailable to the department. You need to resolve the system control issue. What should you do?
A. Create a different role center page that excludes the critical page and assigns it to the users. B. Extend the base application permission set and configure the Included PermissionSets property. C. Extend the base application permission set and configure the ExcludedPermissionSets property D. Create an entitlement object that excludes the base application permission set. E. Create a permission set object that excludes the critical table and assigns it to the users.
Answer: E Explanation:Permission sets control access to objects (such as pages, tables, reports) in Business Central. By creating a new permission set that specifically excludes the critical table (or page) and assigning this permission set to the users in Department A, you can prevent them from accessing the page. Option A (creating a different role center page) is incorrect because role centers control the user interface, but do not directly restrict access to specific pages or tables. Option B and Option C (extending the base application permission set) are not the best options because extending permission sets typically involves adding permissions, not removing access. The question requires restricting access to a critical page, so simply including or excluding permission sets wont solve the issue at the table or page level. Option D (creating an entitlement object) is not relevant here, as entitlements are used in more complex licensing scenarios or environments. Summary: Creating a permission set object that specifically excludes access to the critical table or page and assigning it to the users will solve the problem effectively.
Question # 12
You have a query object named Items Query. You write code using an Items Query query variable. You need to export the Items Query query data to a file. Which SaveAs function should you use?
A. SaveAsExcel B. SaveAsWoid C. SaveAsHiml D. SaveAsCsv
Answer: D Explanation:SaveAsCsv is the correct function to export the query data to a CSV (Comma-Separated Values) file, which is a commonly used text format for data exports. SaveAsExcel would export to an Excel file, SaveAsWord to a Word document, and SaveAsHtml to an HTML file, but since the requirement is to export to a file and the question doesn't specify any particular file format other than what fits standard data exports, CSV is the most fitting and efficient format for this scenario. For more information, see the Query Object Functions in Business Central.
Question # 13
You ate creating a test codeumt for a company that uses Business Central. The company requites the following list of choices while posting a sales order: Ship Invoice Ship & Invoice You must create a test codeunit that automatically selects one of these options. You need to create the test codeunit Which handler should you use?
A. SessionSettings Handle' B. SendNotificationHandler C. Recall Notification Hand let D. StrMenuHandler
Answer: D Explanation: StrMenuHandler is used to simulate the selection of an option from a string-based menu, such as the "Ship," "Invoice," or "Ship & Invoice" options when posting a sales order. This handler allows you to programmatically select an option during automated testing. Other handlers, such as SessionSettingsHandler or SendNotificationHandler, do not simulate the selection of menu choices, which is specifically required in this scenario. For more details on StrMenuHandler and how it simulates user interaction with menu choices, refer to the Test Handlers in Business Central.
Question # 14
A company has a test application. A user observes the following error messages when running the test: "Unhandled Ul: Message' "Unhandled Ul: Confirm" You need to resolve the errors. Which action should you take?
A. Create a separate test runner codeunit that has Message Handler and Confirm Handler methods. B. Create the Message Handler and Confirm Handler methods in the test runner codeunit. C. Create a separate test codeunit that has Message Handler and Confirm Handler methods. D. Create the Message Handler and Confirm Handler methods in the test codeunit.
Answer: B Explanation: A user observes error messages such as: "Unhandled UI: Message" "Unhandled UI: Confirm" These messages indicate that the test code is not handling system prompts like Message and Confirm dialogs, which can appear during test execution. Options Message Handler and Confirm Handler methods are used to intercept and handle these UI prompts during automated testing. These methods should be added to the test runner codeunit, which is responsible for running the tests and handling these system-level interactions.
Question # 15
You need to evaluate the version values of the Quality Control extension to decide how the quality
department must update it.
Which two values can you obtain in the evaluation? Each correct answer presents part of the solution. Choose two. NOTE: Each correct selection is worth one point
. A. AppVersion - 1.0.0.1 B. AppVersion = 1.0.0.2 C. DataVersion = 0.0.0.0 D. DataVersion = 1.0.0.1 E. DataVersion = 1.0.0.2
Answer: A, C Explanation: New Topic: Topic 4, Misc. Questions
Question # 16
You plan to call a web service by using the data type HttpClient from a Business Central AL extension You must provide the following implementation for the web service call: The web service must authenticate the client with a certificate. The certificate must include a password. The password must be hidden when you debug the code You need to include the certificate in the web service call. Which instruction should you use?
A. Httpclient.Addertifieate(certificate: Text, Password: Text); B. HttpClient.AddCertificate{Certifkate: SecretText, Password: SecretText); C. Httpclient.Addeertifieate(Certifieate: Blob, Password: secretText); D. HttpClient.AddCertificate{Password: SecreTiext);
Answer: B Explanation: ou plan to call a web service using HttpClient from a Business Central AL extension. The web service must authenticate using a certificate that includes a password, and the password must be hidden during debugging. Options The question asks for the correct implementation where the certificate and password are provided and where the password is hidden when debugging. SecretText is a special data type in Business Central that hides sensitive data (like passwords) during debugging.
Question # 17
A company uses Business Central. You plan to help users through the installation process by using Assisted Setup. You need to create a wizard page. Which two actions should you perform? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
A. Set the PageType property to NavigatePage. B. For each step needed in the guide, add a group0 control to the root-level of the layout > area(Content) control C. Set the PageType property to Worksheet D. For each step needed in the guide, add a repeater!) control to the root-level of the layout > area(Content) control.
Answer: A, B Explanation: A: In Business Central, wizard pages are created using the NavigatePage type because it allows stepby- step navigation, which is perfect for wizard-like user experiences. B: The group control organizes the content for each step in the guide, and its essential to add these controls to the layout's Content area for each step of the wizard. C: Worksheet is used for pages designed to handle larger datasets, not for wizard or step-by-step flows. D: Repeater controls are used for displaying multiple records, not for guiding users through steps, so its incorrect for this scenario. For more information, you can refer to Assisted Setup in Business Central.
Question # 18
You ate creating a view for a Business Central app. The view requires a custom layout that displays only customer records with a balance greater than 500 in local currency. You need to configure the view to specify that it has a custom layout.Which property combination should you use?
A. shareLayout = false; Filters = where (Balance = filter (> 500), œCurrency Code" = filter ("ICY*)); B. SharedLayout - true; Filters - where (Balance â– filter (> 506), œCurrency Code" - filter ('LCY')>; C. SharedLayout - false; Filters - where ("Balance (ICY)" - filter (> 500)); D. Sharediayout = true; Filters - where ("Balance (ICY)" - filter (> 500));
Answer: B Explanation: SharedLayout = true allows for the layout to be shared across views, and it is often used when defining a custom layout that should follow specific filtering conditions. The Filters property specifies the exact filter criteria for the view, in this case, filtering on Balance > 500 and the Currency Code = LCY (local currency). A uses incorrect filter syntax and shareLayout = false, which doesn't allow the layout to be shared, so its not ideal for this use case. C and D both have issues with the filter syntax and do not use proper Currency Code filtering or share layout settings. For more details, check Creating Views in Business Central.
Question # 19
You must simulate the user interaction of selecting a posting option. The options must include: Ship Invoice Ship & Invoice You need to create a test codeunit to run the test. What should you use?
A. Normal attribute B. Handler method C. Test attribute
Answer: B Explanation: Handler methods are used in tests to simulate user interactions, such as responding to dialogs, confirmation messages, or option selections. Since you need to simulate the user interaction of selecting a posting option (Ship, Invoice, Ship & Invoice), a Handler method would be the appropriate choice for capturing this kind of user input. Normal attribute and Test attribute are used for marking methods for test execution, but they do not simulate user interaction, making Handler method the correct answer. For more details, see the Microsoft Docs on Test Codeunits and Handler Methods.
Question # 20
You are customizing Business Central by using Visual Studio Code. You create a project that will extend Business Central. The AL extension contains JSON files, which are automatically generated and are used to store configuration data For testing purposes, you plan to add the following changes to the files: Specify that page 21 must be opened after publishing. Enable debugging Disable the capability to download the source code You need to add the configurations to the JSON files. Which two configurations should you add? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
A. Set "startupObjectld": 27 on launchjson. B. In the "resourceExposurePolicy" tag, set "at low Debugging". true and allowDownloadingSource": false on launchjson. C. Set "start upObjectld": 27 on appjson. D. In the "resourceExposurePolicy" tag, set "allowDebugging": true and "allowDown loading Source":true on appjson.
E. In the "resourceExposurePolicy" tag, set "allowDebugging": true and "allowDownloadingSource": false on appjson.
Answer: C, E Explanation: You are customizing Business Central using Visual Studio Code and JSON files for configuration. You plan to: Open page 21 after publishing. Enable debugging. Disable the capability to download the source code. Which configurations should you add? The options involve two primary JSON files: launch.json and app.json, and configuration tags like startupObjectId and resourceExposurePolicy.
Question # 21
You need to add a property to the Description and Comments fields with corresponding values for
the control department manager.
Which property should you add?
A. Description B. Caption C. ToolTip D. InstructionalText
Answer: C
Question # 22
You have an XMLport that exports items from a database to an XML file. You need to change the export format from XML to CSV. What should you do?
A. Change the Direction property to Both B. Change the FormatEvaluate property to Legacy. C. Change the XmlVeisionNo property to 1.1. D. Fill the FileName property with the Items.csv value. E. Change the Format property to VariableText.
Answer: E Explanation:ï‚? XMLport Overview In Microsoft Dynamics 365 Business Central, XMLports are used for importing and exporting data in XML, CSV, or other text formats. By default, XMLports are designed to work with XML data, but they can also handle delimited text formats like CSV (Comma-Separated Values). ï‚? Requirement Clarification The requirement is to change the export format from XML to CSV. CSV is a text-based format, not an XML format. To accommodate this, you need to change how the XMLport handles data during export. ï‚? Properties of XMLport The Format property in XMLports controls whether the output format is XML or a text-based format such as CSV. The VariableText option of the Format property specifies that the data should be exported in a variable text format, like CSV. The XMLports default to an XML format, but by setting the Format property to VariableText, you can change the export to CSV format or another text-delimited format. ï‚? Explanation of Correct Answer (E) To switch from XML to CSV export: You need to change the Format property of the XMLport to VariableText. The VariableText option allows for the export of data in a non-XML format, which is precisely what CSV represents (a comma-delimited text file). ï‚? Why Other Options Are Incorrect Option A (Change the Direction property to Both): The Direction property controls whether the XMLport is used for Import, Export, or Both (import and export), but it does not affect the file format (XML vs. CSV). Hence, this is irrelevant to the file format change. Option B (Change the FormatEvaluate property to Legacy): The FormatEvaluate property is not related to changing the export format. It deals with the evaluation of the data format during the processing but doesn't change the format type (XML or CSV). Option C (Change the XmlVeisionNo property to 1.1): The XmlVersionNo property defines the XML version used for the export (such as 1.0 or 1.1). This only applies to XML exports and does not change the format to CSV. Option D (Fill the FileName property with Items.csv): While this option would specify the name of the file being exported (i.e., "Items.csv"), it doesn't control the format of the export itself. The actual format change is controlled by the Format property. ï‚? Developer Reference from Microsoft Documentation According to the official Microsoft documentation for XMLports in Business Central, the Format property is critical for determining how data is structured for export. To change the file format from XML to CSV, developers need to set the Format property to VariableText. This allows for export in a text-delimited format, which is ideal for CSV. XMLport Properties - Format Property How to: Export Data in Text Format Using XMLports
Question # 23
You need to create the access modifier for IssueTotal.
Which variable declaration should you use?
A. Protected vat IssueTotal: Decimal B. Internal var IssueTotal: Decimal . C. Public var IssueTotal: Decimal D. Local var IssueTotal: Decimal E. Var IssueTotal; Decimal
Answer: B Explanation: In Business Central development using AL (the language for Business Central extensions), the use of access modifiers defines how variables and procedures are accessed within and outside of an object or codeunit. Access Modifiers in AL: Public: A public variable can be accessed from any object or codeunit within the same module or extension. Protected: This restricts access to the current object and objects that inherit from the current object. However, in AL (at least in versions used for Business Central), the Protected access modifier is used with methods but not variables. Internal: This modifier restricts the visibility to the current extension. This means that variables or methods declared as internal can only be accessed from within the same extension. This is appropriate when you want to provide functionality that is shared within the extension but not exposed externally. Local: This restricts the variable or method to the current object or method where it is declared. It cannot be accessed from anywhere else, even within the same extension. Scenario Justification: In the scenario for Contoso, Ltd., IssueTotal is a global variable in the ISSUE BASE extension, and the ISSUE EXT extension needs to access it. Therefore, the variable cannot be declared as Local, because this would restrict access to just the current object (or method). Using Public would expose the variable outside of the extension, which is unnecessary because you only want other parts of the extension (specifically the ISSUE EXT extension) to have access. The best choice in this case is Internal because it restricts access to the variable to within the same extension, which includes the base extension and any dependent extensions like ISSUE EXT. It strikes the right balance between visibility and encapsulation. Microsoft Dynamics 365 Business Central Developer Reference: Access Modifiers in AL: Microsoft's documentation on AL provides the details on access modifiers, where it is specified that internal variables can be accessed within the extension, and the public variable is accessible across all extensions〠source: Microsoft Learn on AL Programming】. Best Practices for AL Development: Business Central development best practices suggest keeping variables internal unless they need to be accessed outside of the current extension〠source: Microsoft Learn on AL development guidelines】
Question # 24
You need to determine why the debugger does not start correctly.
What is the cause of the problem?
A. The "userld" parameter must have the GUID of the user specified, not the username. B. The "breakOnNext" parameter is not set to -WebServiceClient". C. The "userld" parameter is specified, and the next user session that is specified in the 'breakOnNext" parameter is snapshot debugged. D. The "executionContext* parameter is not set to "Debug".
Answer: A Explanation: In Microsoft Dynamics 365 Business Central, when configuring snapshot debugging, it is crucial that the parameters in the configuration file are correctly set. From the options provided, the issue with the debugger not starting correctly is most likely due to an incorrect "userId" parameter. Option A is the cause of the problem. The "userId" parameter must be the GUID of the user, not the username. The snapshot debugger needs the exact GUID to attach to the right session for debugging. Option B is incorrect because "breakOnNext" set to "WebClient" is a valid setting. This tells the debugger to break on the next client action in the web client, which is a typical scenario. Option C is not the cause of the problem. The "userId" parameter is meant to specify which user session to debug, and this works in conjunction with the "breakOnNext" parameter. Option D is incorrect as the "executionContext" parameter does not need to be set to "Debug" for snapshot debugging to work. "DebugAndProfile" is a valid value for the "executionContext" parameter, as it allows for debugging and collecting performance information. Therefore, the reason why the debugger does not start correctly is due to Option A: The "userId" parameter must have the GUID of the user specified, not the username
Question # 25
You need to determine why the extension does not appear in the tenant.
What are two possible reasons for the disappearance? Each correct answer presents a complete
solution.
NOTE: Each correct selection is worth one point.
A. The extension was published as a DEV extension. B. The extension was not compatible with the new version within 60 days of the first notification. C. The extension was published as PTE. and the Platform parameter was not updated in the application file. D. The extension was published as PTE. and the Platform and Runtime parameters were not updated in the application file. E. The extension was not compatible with the new version within 90 days of the first notification.
Answer: BD Explanation: In the context of Microsoft Dynamics 365 Business Central, an extension may not appear in the tenant for several reasons, particularly after an upgrade to a new major version. Option A suggests that the extension was published as a DEV extension, which typically would not cause it to disappear after an upgrade because DEV extensions are intended for development and testing within sandbox environments. Option B indicates that the extension was not compatible with the new version within 60 days of the first notification. This is a likely reason because Microsoft enforces compatibility rules, and extensions that are not made compatible within the specified timeframe might be removed or disabled. Option C refers to the extension being published as a PTE (Per-Tenant Extension) and mentions the Platform parameter not being updated. This could cause issues, but not specifically the disappearance of the extension after an upgrade. Option D expands on Option C by adding that both the Platform and Runtime parameters were not updated in the application file. This is a critical aspect because if these parameters are not correctly set to indicate compatibility with the new version of Business Central, the extension could be disabled or removed. Option E is similar to Option B but mentions a 90-day period. This option does not align with standard Business Central practices for version compatibility requirements. Therefore, the two possible reasons for the disappearance of the extension in the tenant after an upgrade are that the extension was not compatible with the new version within the required timeframe (Option B) and that the extension was published as a PTE without the Platform and Runtime parameters being updated (Option D).
Join the Conversation
Be part of the conversation — share your thoughts, reply to others, and contribute your experience.
Sun Hao
Some scenario questions about Business Central APIs were interesting.
Sun Hao
Some scenario questions about Business Central APIs were interesting.
Frederik Klein
Those usually test Dynamics 365 Business Central development and customization concepts.