MSBA-359 · Lesson 10 of 12 · 20 min

Hands-on practice

▶ Video coming soon A video version of this lesson is on the way.

The rule Noor gave Joss in October was that every "recognize" bullet had to become a "can do" bullet by building something, however small. Reading about a control add-in, she said, teaches you the word; building one that draws a rectangle and raises an event back into AL teaches you the five properties the exam will ask about. This lesson is the set of exercises they used, mapped to every objective group in the outline. Each exercise is small enough to finish in an evening, has a clear "done when" test, and touches at least one fact that has appeared in this course's practice questions.

Setting up a safe place to practise

Practice needs an environment you can break. There are three reasonable choices, and many developers use more than one.

Practice environments and their trade-offs.
EnvironmentStrengthsLimits
A Docker container running Business CentralFull control, fast to reset, runs the Test Toolkit and large test runs, works offlineNeeds a capable machine and some setup; behaviour can differ slightly from online
An online sandbox in a partner or trial tenantClosest to production; admin center, telemetry and Copilot features availableExtensions published from Visual Studio Code disappear when the sandbox is updated; test limits apply
A pipeline (AL-Go for GitHub or similar)Practises source control, builds, analysis and deploymentNeeds a repository and some configuration

Two rules apply to all of them. First, never practise in a customer's environment, and never on a copy of a customer's production data unless the customer has agreed and the data is handled under their rules; use the demonstration company. Second, keep everything in source control from the start, even exercises, so you can see what you changed and roll back. Joss practised in his Quarrystone development container and kept a private repository called mb820-lab with one folder per exercise.

Domain 1: design solutions (5 to 10 percent)

Exercises for designing Business Central solutions.
No.ExerciseDone when
D1Open the base application symbols and list five objects from the System Application, Business Foundation and Base ApplicationYou can say for each which app it belongs to and why
D2Change an app's target from Cloud to OnPrem, declare a DotNet variable, then switch backYou have seen the compiler accept and then reject it
D3Find an object marked ObsoleteState = Pending in the base application symbols and read its reason and tagYou can explain what will happen when it becomes Removed
D4Run the AppSourceCop analyzer on a small app with no affixes, then add an affix and an AppSourceCop.jsonThe affix warnings disappear

Domain 2: install, develop and deploy (10 to 15 percent)

Exercises for the development environment.
No.ExerciseDone when
E1Create a project with AL: Go!, download symbols and publish a page to your environmentThe page opens from the startup object
E2Add a second launch configuration for attach debugging with breakOnNext = WebServiceClient, and call an API page from a REST clientThe debugger stops in the API page code
E3Record a snapshot with snapshotInitialize, reproduce a bug, finish with Shift+F7 and replay itYou can step through the recorded session offline
E4Create a multi-root workspace with a main app and a test app that depends on itPublishing the test app publishes the main app first
E5Turn on the TranslationFile feature, add a label with a Comment and a Locked label, and create a French (Canada) XLIFFThe caption shows in French when your language is French (Canada)
E6Add a ruleset that raises one CodeCop warning to an errorThe build fails until you fix it
E7Upload your .app through Extension Management in a sandbox and choose a deploy-to optionYou can explain each of the three options

Exercise E2 was the one Joss had avoided for longest, because Quarrystone's integration tests made attach debugging rarely necessary. It took him forty minutes the first time, most of it spent realizing that a session already open before the debugger attached would not be caught; attach waits for the next session of the chosen kind.

Domain 3: develop objects (30 to 35 percent)

The largest area gets the most exercises. Joss did them in the order of his ratings, starting with the "recognize" bullets.

Exercises for developing objects in AL.
No.ExerciseDone when
O1Build a Role Centre with a headline part, a cue part with two cues from FlowFields, and Sections and Creation actions; use it in a profileYou can choose the profile in My Settings and see the Role Centre
O2Build a control add-in that draws a box, raises a ControlReady event and exposes a SetText procedureAL calls SetText only after ControlReady
O3Add a list page view with filters and sorting, and an actionref in the Promoted areaThe view appears in the filter pane and the action on the action bar
O4Create an extensible enum that implements an interface, then add a value from a second appCalling code works for the new value without changes
O5Write a document report with header and line data items, a Word layout, a request page option and a Language setting from the customerA customer with a French language code gets French captions
O6Write a report extension that adds a column and a second layout to a standard reportBoth layouts are selectable in Report Layouts
O7Substitute a standard report with your own through OnAfterSubstituteReportRunning the standard report from its action runs yours
O8Write a processing-only report that updates records, with a request page filterIt runs without a layout and respects the filter
O9Write a query joining two tables with an inner join, a Count column and a ColumnFilter, and use it from a reportThe report shows aggregated rows from one SQL statement
O10Write layered permission sets with indirect permissions, test as a user with only those sets, and use the permission recorderThe user can post through code but not edit the table directly
O11Set InherentPermissions on a setup table read by your pagesA user without your permission sets can open the page that reads setup
O12Write install and upgrade codeunits that create and then change setup data, guarded by an upgrade tagReinstalling and upgrading twice give the same data
O13Schedule a codeunit with a job queue entry and with TaskScheduler.CreateTaskYou can explain when to use each

O5 took Joss two evenings, and he counted it as the most valuable exercise of the month. Setting CurrReport.Language in the right trigger, finding where the Language codeunit lives, and seeing the French captions appear for one customer and English for the next made the multilanguage report bullet concrete in a way no reading did. He also discovered that he had been confusing the language of the report with the format region, which controls how dates and numbers are printed; the two are set separately.

Domain 4: user experiences and logic (15 to 20 percent)

Exercises for user experiences and logic.
No.ExerciseDone when
U1Add tooltips on table fields, a teaching tip with AboutTitle and AboutText, and InstructionalText on a fieldThe teaching tip appears the first time the page opens
U2Build a three-step NavigatePage wizard and register it as assisted setup through Guided ExperienceIt appears on the Assisted Setup page and marks itself complete
U3Write a document-style header and line table pair with a status, release and reopen actions, and a posting codeunit that creates ledger-style entriesPosting creates entries and deletes the open document in one transaction
U4Publish OnBefore and OnAfter integration events with IsHandled in your posting code, and subscribe from a second appSetting IsHandled skips your standard logic
U5Use the Event Recorder to find the events raised when a sales order is releasedYou have subscriber code generated for one of them
U6Raise an actionable ErrorInfo with a navigation action, and collect several errors with ErrorBehavior CollectThe user sees all errors at once and can open the record
U7Upload a CSV file with UploadIntoStream into Temp Blob, parse it, and download a result fileThe round trip works in the web client
U8Mark a procedure internal and a global variable in a table extension protected, and call them from a second appYou have seen which calls the compiler allows

Domain 5: test and monitor (10 to 15 percent)

Exercises for testing and monitoring.
No.ExerciseDone when
T1Install the Test Toolkit in your container and run a standard base application test codeunit from the AL Test ToolYou can read the result and error for each method
T2Write a test codeunit with Given, When and Then sections, a ConfirmHandler and a ModalPageHandlerThe tests pass without any dialog appearing
T3Write a test that fails against a bug, then fix the bugThe test turns from red to green
T4Connect an environment to Application Insights and run a KQL query for RT0005 and RT0018 signalsYou can name the slowest AL method of the last day
T5Add a Session.LogMessage call with SystemMetadata classification and TelemetryScope::All, then find it in Application InsightsYour custom event ID appears with its dimensions

Domain 6: integration (15 to 20 percent)

Exercises for integration and Copilot.
No.ExerciseDone when
I1Call a public test REST service with HttpClient.Get and Send, handle a 404 and parse the JSONYour code reports the status code instead of failing silently
I2Build an API page with SystemId as key, DelayedInsert and a bound action, and call both from a REST clientPOST inserts a complete record and the action runs on one entity
I3Publish a codeunit as a web service and call an unbound actionThe procedure runs and returns a value
I4Set DataAccessIntent = ReadOnly on an API query and try to write from itYou have seen the write fail
I5Store a key with IsolatedStorage.SetEncrypted in Company scope and read it into SecretTextThe debugger cannot display the value
I6Register a Copilot capability as Preview, build a PromptDialog page with Prompt and Content areas, and call a chat model through the AI module in a sandboxThe capability appears on the Copilot & agent capabilities page and the dialog shows a validated proposal
I7Create a project from the agent template and read its interfaces and configuration pageYou can explain what each interface is for

Exercise I6 needs an Azure OpenAI resource or Business Central's own AI resources in a sandbox, and Copilot features must be allowed for the environment. Joss used the sandbox resource Quarrystone keeps for development. I7 does not need to run end to end: the preview SDK may change, and the exam's emphasis is on what an agent is and how it is controlled. Reading the generated code and explaining the interfaces aloud was enough.

Working through the list

There are 44 exercises. Joss had about a third of them done already from his project work, so he ticked those after a quick check that he could still do them without notes. That left 29, which he spread over five weeks, two or three per study evening, always starting with the outline bullet the exercise covered and finishing by writing one original practice question about what he had just built. The questions went into the bank he used in lesson 12.

Time-boxing helped. Each exercise got a planned time, usually 30 to 60 minutes. If it ran over by half again, he stopped, wrote down where he was stuck, and asked Noor the next day. Several of those notes turned into the best questions in his bank, because a point that stalls a developer in practice is exactly the kind of point an exam can test.

The exam sandbox, once more

Hands-on practice is not only about Business Central. Before the exam, run through the exam sandbox again, the demonstration of the exam interface linked from the study guide. Practise marking items for review, moving between case study tabs and questions, using the review screen, and opening the Microsoft Learn window. Do it once early, as Joss did in lesson 2, and once in the week of the exam, so the interface is familiar on the day.

Practising with a colleague

Some practice works better in pairs. Twice in November, Noor and Joss swapped roles: Joss explained a bullet aloud as if teaching it, and Noor interrupted with the questions an exam would ask. Explaining exposes gaps faster than reading, because a gap that is invisible on the page becomes obvious the moment you have to say the next sentence. Another useful pair exercise is to review each other's exercise code as if it were a pull request, looking for the traps from lesson 8. If you study alone, recording yourself explaining a bullet and listening back the next day gives a similar effect.

Worked problem

Turning an exercise into questions

Joss has just finished O7, report substitution. How does he turn the exercise into practice questions that will help him on the exam?

Show solution
  1. Write down the exact names: the ReportManagement codeunit, the OnAfterSubstituteReport event, the NewReportId var parameter.
  2. Write one recognition question: which approach replaces a report everywhere it runs?
  3. Write one code question: a subscriber with a gap where the event name goes.
  4. Write one look-alike question contrasting substitution with a report extension and a new layout.

Answer: Each exercise yields two or three questions in different item styles, which are retested later from the bank.

Common mistakes

  • MistakePractising in a customer's environment.

    InsteadUse your own container or sandbox with demonstration data.

  • MistakeOnly reading about "recognize" bullets.

    InsteadBuild the smallest working example of each.

  • MistakeLetting one exercise eat an evening.

    InsteadTime-box it, note where you are stuck, and ask.

  • MistakeSkipping the agent template because the SDK is in preview.

    InsteadRead the template and explain its parts; concepts are examinable.

  • MistakeForgetting the exam sandbox until the day.

    InsteadRun it early and again in the exam week.

Summary and key terms

  • Practise in a container, a sandbox and a pipeline; never in a customer environment.
  • Map every exercise to an outline bullet with a clear done-when test.
  • Weight the exercises by the outline: most go to AL objects.
  • Start with "recognize" bullets and time-box each exercise.
  • Turn each exercise into two or three original practice questions.
  • Revisit the exam sandbox in the week of the exam.
Container
A Docker-based Business Central instance used for development and automated tests.
Done-when test
A concrete result that shows an exercise is complete.
Time-box
A planned limit on how long a task may take before you stop and ask for help.
Question bank
A personal collection of original practice questions written from exercises.
Demonstration company
Sample data such as CRONUS used for practice and testing.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why practise attach debugging with a new session?

    Show answer

    Attach waits for the next session of the chosen kind; existing sessions are not caught.

  2. Which exercise shows the effect of DataAccessIntent = ReadOnly?

    Show answer

    Trying to write from a read-only API query and seeing it fail.

  3. What should every exercise end with?

    Show answer

    An original practice question about what was built.

  4. Where should practice never happen?

    Show answer

    In a customer's environment.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz