You are defining the Machine No. field in the Service Visit table.
Which property definition should you use to meet the machines and service visits requirements?
a) TableRelation = Machine."Serial No." where("Customer No." = field("Customer No."));
b) CalcFormula = lookup(Machine."Serial No." where("Customer No." = field("Customer No.")));
c) TableRelation = Machine."Serial No." where("Customer No." = filter("Customer No."));
d) TableRelation = Machine."Serial No."; ValidateTableRelation = false;
02. A company plans to set up a local Business Central development container in Docker by using the BcContainerHelper PowerShell module. The container will be used to test new project ideas.
You need to obtain the artifact URL for the most recent generally available Business Central sandbox version.
Which command should you use?
a) Get-BcArtifactUrl -type sandbox -country us -select NextMajor
b) Get-BcArtifactUrl -type sandbox -country us -select NextMinor
c) Get-BcArtifactUrl -type sandbox -country us -select Latest
d) New-BcContainer -accept_eula -containerName mysandbox
You need to resolve the test failure in the pipeline.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
a) In the test codeunit, add a procedure that has the MessageHandler attribute and closes the dialog that PostBatch displays.
b) Add the HandlerFunctions attribute to the test procedure and name the handler procedure in it.
c) Set the TestPermissions property of the test codeunit to Disabled.
d) In the test codeunit, add a procedure that has the ConfirmHandler attribute and sets its Reply parameter to true.
e) Change PostBatch to skip the confirmation when GuiAllowed returns false, so the test runs without a dialog.
04. An external REST API creates a new order when it receives an HTTP POST request with the order data in the body. You are writing the AL code that sends the order.
Which method should you call?
a) HttpClient.Post
b) HttpClient.Get
c) HttpClient.PostAsync
d) HttpClient.Delete
You need to change the PW Service Scheduler codeunit to meet the service scheduling requirements.
What should you do?
a) Before FindSet, call SetCurrentKey on the Odometer and Next Service Odometer fields.
b) Before FindSet, call SetAutoCalcFields with the Odometer and Next Service Odometer fields.
c) Before FindSet, call SetLoadFields with the Odometer and Next Service Odometer fields.
d) Before FindSet, call LockTable on PW Vehicle so the loop reads each record once.
06. You are reviewing the following AL statement:
if (Quantity > 0) and (Amount <> 0) then
Which two types of operators does the condition use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
a) Relational operators
b) Arithmetic operators
c) String operators
d) Logical operators
You need to change LP Manifest Export to meet the requirements for the dispatch manifest.
What should you do?
a) Declare the Text variable with a fixed maximum length, such as Text[2048], before the loop through the lines starts.
b) Add each line to a TextBuilder variable by calling AppendLine, and call ToText once after the loop ends.
c) Add each line to a List of [Text] in the loop, and join the list into the Text variable with + after the loop.
d) Format each consignment line into a Code variable before adding it to the Text variable with the + operator.
08. You are adding a Shipping Priority field to a table in your extension. The field must offer a fixed list of values, and partners must be able to add their own values from their extensions.
What should you use for the field?
a) An enum with Extensible = false that partners extend with an enumextension
b) An Option field with OptionMembers listing the values
c) A Code field checked against text constants in a codeunit
d) An enum with Extensible = true that partners extend with an enumextension
You need to meet the import monitoring requirements.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
a) Enter Adatum's connection string as the environment's Application Insights setting in the Business Central admin center.
b) Call Session.LogMessage with TelemetryScope::All when CC Import Mgt. rejects a delivery file.
c) Add Adatum's connection string to the applicationInsightsConnectionString setting in the app.json file of Coho Cellar.
d) Add Adatum's connection string to the configuration that the build pipeline uses in the launch.json file of Coho Cellar.
e) Call Session.LogMessage with TelemetryScope::ExtensionPublisher when CC Import Mgt. rejects a delivery file.
10. You are adding a feature to an extension that already has a suite of test codeunits. You run the whole suite before you publish the new version.
Why should you run the whole suite?
a) To reduce how much code the extension needs for the new feature
b) To confirm that the change does not break existing functionality
c) To publish the extension automatically to the production environment
d) To let users see the new feature before it is released