Microsoft MB-820 Practice Test Questions and Exam Dumps Part6 Q101-120

View Full Microsoft MB-820 Exam Dumps and Practice Test Dumps.

 

Question 101

Which AL object is used to define a reusable user interface for displaying and editing Business Central data?

  1. Query
  2. Page
  3. Codeunit
  4. XMLport

Correct Answer: 2

Explanation

A Page object defines the user interface used to display, enter, and modify Business Central data. Pages can be based on tables and can provide different experiences such as list pages, card pages, document pages, role centers, and worksheets. Developers can also extend existing pages through page extensions rather than modifying the original object. Queries are primarily used for data retrieval, Codeunits contain executable business logic, and XMLports handle structured data exchange. Choosing the appropriate page type helps provide users with an interface that matches the business process and the type of information being managed.

Question 102

Which property can be used to specify whether a page control can be modified by the user?

  1. Editable
  2. Caption
  3. ToolTip
  4. ApplicationArea

Correct Answer: 1

Explanation

The Editable property controls whether a page control can be edited by the user. When a control is not editable, users can view its value but cannot directly change it through that control. This property can be applied to supported page controls and is useful when certain information should be displayed for reference only. The Caption property controls displayed text, ToolTip provides additional guidance, and ApplicationArea determines where functionality is available based on application areas. Developers should use Editable appropriately while also considering whether business rules or permissions should restrict modification.

Question 103

Which AL object is specifically designed to execute reusable business logic without providing a primary user interface?

  1. Page
  2. Report
  3. Codeunit
  4. Table

Correct Answer: 3

Explanation

A Codeunit is an AL object used to contain reusable procedures and business logic. Codeunits are commonly used for calculations, processing, integration routines, event subscribers, scheduled background tasks, and other operations that do not require a dedicated user interface. Keeping business logic in codeunits can improve reuse and maintainability because the same functionality can be called from multiple pages, reports, or other codeunits. Pages focus on user interaction, Reports focus on data processing and presentation, and Tables define data structures. A well-designed codeunit should have a clear responsibility and avoid unnecessary dependencies.

Question 104

Which property helps make a page control available only when the corresponding application area is enabled?

  1. Visible
  2. ApplicationArea
  3. Enabled
  4. Editable

Correct Answer: 2

Explanation

The ApplicationArea property determines the application areas in which a page control or related functionality is available. Business Central uses application areas to control the visibility of functionality according to the configured user experience. This allows extensions and applications to expose features appropriately without creating separate versions of the same page. The Visible property controls whether a control is displayed based on visibility logic, while Enabled controls whether a displayed control can be interacted with. ApplicationArea is therefore specifically related to application-area-based feature availability.

Question 105

Which AL data type is appropriate for storing a value that can contain either TRUE or FALSE?

  1. Integer
  2. Date
  3. Boolean
  4. Decimal

Correct Answer: 3

Explanation

The Boolean data type is used when a value can have one of two logical states: TRUE or FALSE. Boolean variables are useful for flags, conditions, validation results, and state indicators. For example, a procedure may use a Boolean value to determine whether processing should continue after a validation check. Integer stores whole numbers, Date stores calendar dates, and Decimal is intended for numeric values that may contain decimal places. Using Boolean for logical conditions makes AL code easier to understand and avoids representing true-or-false states with unrelated numeric or text values.

Question 106

Which method can be used to restrict a record variable to records matching a specified range on a field?

  1. SetRange
  2. Modify
  3. Insert
  4. Validate

Correct Answer: 1

Explanation

The SetRange method applies a simple range filter to a field on a record variable. It can specify a starting and ending value, allowing subsequent record operations to work only with records that satisfy the defined range. For example, code can use SetRange to restrict records to a particular customer, date range, or status. SetFilter provides more flexible filter expressions, while Modify, Insert, and Validate perform different record or field operations. Applying filters before retrieving records can improve both correctness and efficiency when processing data.

Question 107

Which AL method is commonly used to retrieve the first record that matches the current filters?

  1. FindSet
  2. FindFirst
  3. Count
  4. Reset

Correct Answer: 2

Explanation

FindFirst retrieves the first record that matches the filters currently applied to a record variable. It is useful when code needs only one matching record rather than processing an entire set. For example, a routine may use FindFirst to locate the first customer matching a particular criterion. FindSet is intended for retrieving a set of records for iteration, Count returns the number of records matching the filters, and Reset removes filters and other temporary record settings. Selecting the appropriate retrieval method helps make database operations more efficient and communicates the developer’s intention clearly.

Question 108

Which AL method removes filters and resets several properties of a record variable to their default state?

  1. Clear
  2. Reset
  3. Delete
  4. Commit

Correct Answer: 2

Explanation

The Reset method resets filters and other state associated with a record variable, returning it to a more neutral state. This is useful when the same record variable needs to be reused for another operation and previous filters or settings should not affect the new processing. Clear is generally used for clearing a variable’s value, Delete removes a database record, and Commit controls transaction boundaries. Developers should understand the difference between resetting a record variable and clearing or deleting data because these operations have very different effects on application behavior.

Question 109

Which trigger executes when a new record is inserted into a table, allowing custom processing during the insertion process?

  1. OnModify
  2. OnDelete
  3. OnInsert
  4. OnRename

Correct Answer: 3

Explanation

The OnInsert trigger is associated with inserting a new record into a table. Developers can use this trigger to perform additional business logic that should occur when a record is created. Examples include setting default values, performing additional validation, or initializing related information. OnModify is associated with record modification, OnDelete with deletion, and OnRename with renaming operations. Trigger logic should be designed carefully because it can affect every insertion of the record and may also influence integrations, background processes, and user-driven operations.

Question 110

Which trigger is associated with changing an existing record in a table?

  1. OnInsert
  2. OnModify
  3. OnDelete
  4. OnOpenPage

Correct Answer: 2

Explanation

The OnModify trigger runs when an existing record is modified and can be used to execute additional business logic during the modification process. It can support scenarios where certain values must be updated or additional checks must be performed whenever a record changes. OnInsert handles newly inserted records, while OnDelete handles deletion. OnOpenPage belongs to page processing rather than table record modification. Developers should avoid placing unnecessarily expensive processing in modification triggers because records may be changed frequently by users, integrations, and background processes.

Question 111

Which trigger is executed when a record is deleted from a table?

  1. OnDelete
  2. OnInsert
  3. OnValidate
  4. OnAfterGetRecord

Correct Answer: 1

Explanation

The OnDelete trigger is associated with the deletion of a record from a table. It can be used to perform additional business processing or enforce application-specific rules when a record is removed. Developers may use deletion triggers to manage related information or ensure that required business conditions are satisfied before deletion completes. OnInsert is used when records are created, OnValidate handles field validation, and OnAfterGetRecord is a page trigger associated with retrieving records for display. Deletion logic should be carefully designed because removing records can have significant effects on related business data.

Question 112

Which AL feature can be used to prevent users from accessing records outside a defined security filter?

  1. Security filter
  2. FactBox
  3. Query column
  4. Page action

Correct Answer: 1

Explanation

Security filters can restrict the records that a user is allowed to access for a particular table. They are useful when different users or groups should work with only a defined subset of data. Security filters are part of Business Central’s permission and security model and should be designed carefully so that users receive access appropriate to their responsibilities. A FactBox provides contextual information, a Query column defines retrieved data, and a Page action provides an interactive command. Security filtering is therefore specifically concerned with controlling record-level access.

Question 113

Which AL object is used to define permissions that can be assigned to users or groups?

  1. Report
  2. Permission Set
  3. Page Extension
  4. XMLport

Correct Answer: 2

Explanation

A Permission Set defines the permissions that users can receive for application objects and data. Permission sets help administrators implement controlled access by specifying what users can read, insert, modify, or delete. Extensions can also provide permission set extensions to add required permissions for their functionality. Reports and XMLports perform processing tasks, while Page Extensions customize existing pages. Permission design should follow the principle of least privilege, granting users only the access necessary to perform their responsibilities while avoiding unnecessary permissions that could increase security risk.

Question 114

Which object can extend an existing permission set by adding additional permissions from an extension?

  1. PermissionSetExtension
  2. TableExtension
  3. PageExtension
  4. ReportExtension

Correct Answer: 1

Explanation

A PermissionSetExtension allows an extension to add permissions required by its functionality to an existing permission set. This is useful when an application extension introduces new tables, pages, codeunits, or other objects that users need to access. Instead of modifying the original permission set directly, the extension can contribute additional permissions through its own extension object. TableExtension and PageExtension modify application structures, while ReportExtension extends report functionality. PermissionSetExtension supports modular security design and helps keep extension-specific permissions associated with the extension that requires them.

Question 115

Which AL feature allows a field to display a calculated value based on other data without necessarily storing that calculated value directly in the database?

  1. FlowField
  2. FlowFilter
  3. Enum
  4. Label

Correct Answer: 1

Explanation

A FlowField is a calculated field whose value is determined dynamically from related data. Instead of storing the calculated result as a normal database value, Business Central calculates it when the value is requested. FlowFields are commonly used for totals, counts, balances, and other derived information. A FlowFilter can provide filtering criteria used by FlowFields, while an Enum represents a predefined set of values and a Label stores translatable text. Developers should understand FlowField calculation behavior when designing pages and reports that display dynamically calculated information.

Question 116

Which object property is used to identify an AL application extension’s declared dependency on another application?

  1. app.json dependencies
  2. Caption
  3. ToolTip
  4. DataCaptionFields

Correct Answer: 1

Explanation

The dependencies section in app.json declares applications that an extension depends on. Dependencies are important when one extension uses objects, symbols, or functionality provided by another application. Declaring dependencies allows the AL compiler and Business Central environment to understand which applications must be available for the extension to function correctly. It also helps establish the correct application relationship during deployment and upgrade. Properties such as Caption and ToolTip affect user-facing text, while DataCaptionFields controls displayed record captions. Correct dependency management is essential for reliable extension packaging and deployment.

Question 117

Which AL object is commonly used to define automated tests for Business Central functionality?

  1. Test Codeunit
  2. Page
  3. Query
  4. XMLport

Correct Answer: 1

Explanation

A Test Codeunit is used to define automated tests for Business Central functionality. Test procedures can execute application logic and verify expected results using assertions and related testing features. Automated tests help developers detect regressions and confirm that new changes continue to behave as expected. They are particularly valuable for extensions because business logic may be reused across different pages, integrations, and processes. Pages and XMLports serve different application purposes, while Queries focus on retrieving data. Maintaining a meaningful automated test suite improves confidence during development and future upgrades.

Question 118

Which AL feature can help prevent compiler warnings from being treated as unnoticed issues during extension development?

  1. Code analyzers
  2. FactBoxes
  3. Role Centers
  4. Page actions

Correct Answer: 1

Explanation

Code analyzers inspect AL source code and identify potential problems, style issues, or violations of configured development rules. They can help teams maintain consistent coding practices and detect issues before an extension is deployed. Rulesets can be used to configure which analyzer rules apply and how certain findings are handled. FactBoxes, Role Centers, and Page actions are user-interface features and do not perform source-code analysis. Using analyzers as part of development and build processes can improve code quality and help identify issues earlier in the application lifecycle.

Question 119

Which AL mechanism is used to mark an application element as no longer recommended for use while supporting a controlled transition to another implementation?

  1. ObsoleteState
  2. Editable
  3. ApplicationArea
  4. Caption

Correct Answer: 1

Explanation

ObsoleteState is used to indicate that an application element has become obsolete. Obsoletion supports controlled evolution of Business Central applications by allowing developers to communicate that an object, field, method, or other element should no longer be used. Additional obsolete metadata can provide information about the transition and help developers identify replacement functionality where appropriate. This is important for maintaining backward compatibility while gradually removing outdated APIs or application elements. Editable controls user interaction, ApplicationArea controls feature availability, and Caption controls displayed text, so they do not serve the same lifecycle-management purpose.

Question 120

Which AL feature is most appropriate when an extension needs to store multilingual user-facing text that can be translated?

  1. Record
  2. Label
  3. Boolean
  4. Key

Correct Answer: 2

Explanation

A Label is designed for user-facing text in AL and supports localization and translation scenarios. Labels allow developers to define text separately from application logic so that the same application can provide translated versions for different languages. This is especially important for captions, messages, notifications, and other text displayed to users. Hard-coding user-facing text directly into procedures can make localization more difficult. Record is used for table data, Boolean represents logical values, and Key defines database indexing and uniqueness behavior. Using labels promotes maintainable and localization-friendly AL development.