MD-102 domain - 13% of the exam

Optimize Endpoint Operations by Using Automation, Monitoring, and Reporting

Optimize Endpoint Operations by Using Automation, Monitoring, and Reporting is 13% of the MD-102 exam. These are the objectives it covers, each with practice questions, with every answer explained.

The domain in numbers

39
Practice questions
2
Objectives
39
Medium

Where people go wrong

  • Handing a remediation's job to custom compliance, or the reverse

    The wrong answers give one job to the other feature. A custom compliance policy is offered as a way to correct a setting, and a remediation is offered as a way to change the compliance state. A custom compliance policy pairs a discovery script with a JSON rules file and reports a state without changing the device. A remediation runs a detection script and a remediation script on the device on a schedule, so it can rewrite a registry value, but it contributes nothing to compliance.

    See it in a sample question
  • Fixing everything except the detection exit code

    The wrong answers change the schedule, the assignment target, the run context or the remediation script, while the detection script still finishes with exit code 0 on every device. Endpoint Analytics decides from that exit code whether a device has an issue. The remediation script runs only on a device whose detection script returns a non-zero code, so detection has to exit with exit code 1 when the issue is present and 0 when it is not.

    See it in a sample question
  • Returning discovery output as plain text

    When devices report an error against a custom compliance setting, the wrong answers blame script signing, assignment, permissions or a missing second script. The cause is the shape of the output. Intune reads the discovery script output as one compressed JSON object and matches each key to a setting name in the JSON rules file. Separate lines of readable text, or an exit code, leave nothing to evaluate, so the setting comes back in error.

    See it in a sample question
  • Giving Security Copilot rights wider than the administrator's role

    The wrong answers give Security Copilot in Intune rights of its own: tenant-wide results for a scoped administrator, or an accepted change that reaches devices outside that administrator's scope. Copilot answers on behalf of the signed-in administrator, so both what it returns and what an accepted action touches are bounded by that person's existing role assignment and its scope (groups). A scope tag is applied to Intune objects and roles, and it does not widen anything.

    See it in a sample question
  • Swapping the Endpoint Analytics reports

    The wrong answers offer a neighbouring Endpoint Analytics report for the measure asked about. Startup performance is made of a boot score and a sign-in score, so it separates the two start-up phases but does not attribute a restart to a cause. Restart frequency counts restarts by type, including stop errors and update restarts. App reliability ranks applications by crashes and reports mean time to failure across the estate.

    See it in a sample question

Objectives in this domain

What to study

The official documents this domain's practice questions cite most.

Sample questions from this domain

Free sampleOptimize Endpoint Operations by Using Automation, Monitoring, and Reportingmedium

Enrolled Windows 11 devices in a tenant hold a registry value that a line of business application reads at startup, and support calls show the value drifting on a handful of devices every week. The value has to be inspected and put back to the agreed setting on any device where it has drifted, repeatedly and with nobody visiting a machine. A colleague proposes a Microsoft Graph PowerShell script scheduled on a management server. Which approach meets the requirement, and why?

  • ASchedule the proposed Microsoft Graph PowerShell script on the management server, because Microsoft Graph exposes the registry of each enrolled device to an administrator holding the right scopes.
  • BAssign an Endpoint Analytics remediation holding a detection script and a remediation script, because those scripts run on the device itself and can read and rewrite the registry value. Correct
  • CCreate a custom compliance policy carrying a discovery script, because a compliance policy corrects any setting it finds outside the expected value and reports the device afterwards.
  • DDeploy a device configuration profile from the settings catalog, because a profile writes whatever registry value an administrator names in it and rewrites that value whenever it drifts.
Endpoint Analytics remediations run scripts on the device to detect and fix a condition, whereas Microsoft Graph automates the Intune service rather than the operating system. The requirement has two halves: read something held inside Windows, and put it right, repeatedly. Code executing on the device is what does either, and a remediation is the Intune mechanism that delivers a detection script and a remediation script to assigned devices and runs them on a schedule. Microsoft Graph automates Intune objects such as policies, apps and assignments, so it can deploy the remediation but cannot itself touch a registry value.

Why A is wrong: Tempting because Microsoft Graph is the correct tool for automating Intune at scale and does drive many device actions. It is wrong because Graph works on the service objects Intune holds, and it offers no read or write access to arbitrary registry values inside a device.

Why B is correct: Correct. A remediation runs the pair of scripts inside the operating system of each device it is assigned to, on a recurring schedule, which is what allows a value held in Windows to be read and corrected with nobody attending the machine.

Why C is wrong: Tempting because a custom compliance policy does run a PowerShell discovery script on the device and does read the value in question. It is wrong because a compliance policy reports a state and can show the user a message, and it changes nothing on the device.

Why D is wrong: Tempting because configuration profiles do reapply their settings and do result in registry writes on Windows. It is wrong because the settings catalog exposes a defined set of settings rather than an arbitrary registry path chosen by the administrator.

Free sampleOptimize Endpoint Operations by Using Automation, Monitoring, and Reportingmedium

A Remediation in Endpoint Analytics is built from two PowerShell scripts, a detection script and a remediation script, and is assigned to a group of enrolled Windows 11 devices. Which statement correctly describes how the two scripts relate to each other on a device when the Remediation runs?

  • ABoth scripts run in sequence on every scheduled run, and the detection script exists only so that a message about the device appears in the Remediation reporting.
  • BThe remediation script runs first on the device and the detection script runs afterwards to confirm the outcome, so a device that has no fault is still changed by the remediation script.
  • CThe detection script runs on the schedule set for the Remediation, and the remediation script runs only when an administrator selects a device in the report and starts the remediation by hand.
  • DThe detection script runs first on the device, and the remediation script runs only when the detection script exits with a non-zero code to signal that the issue is present on that device. Correct
In an Endpoint Analytics Remediation the detection script decides, by its exit code, whether the remediation script runs on that device. A Remediation evaluates the device before it changes it. The detection script runs first and returns an exit code, and only a non-zero exit code, meaning the issue was found, causes the paired remediation script to run on that device, so devices already in the wanted state are left alone and the report can still count them.

Why A is wrong: It is tempting because both scripts are packaged together and the reporting does show a detection result, but running the remediation script on every device on every run would change devices that have no fault, which is the outcome the detection script exists to prevent.

Why B is wrong: This inverts the order, and it is tempting because reporting does show a state after the run, but a design that changes every device before testing it would make targeting pointless and is not how the pair is evaluated.

Why C is wrong: It is plausible because the report lists the devices that were found with the issue, but the point of pairing the scripts is that the fix follows the detection automatically on the device, without an administrator acting on each result.

Why D is correct: Correct, because the exit code returned by the detection script is the decision point: zero means the device is in the wanted state and nothing further runs, and a non-zero exit code means the issue was found and the remediation script is then run on that device.

Free sampleOptimize Endpoint Operations by Using Automation, Monitoring, and Reportingmedium

A line of business agent on Windows 11 devices enrolled in Microsoft Intune writes its installed version into the registry, and a device carrying a version below an agreed minimum has to be reported as non-compliant. An administrator creates a custom compliance policy, uploads a PowerShell discovery script that reads the registry value and prints it with Write-Host across several lines of readable text, and uploads a JSON file holding the rule and the message shown to the person using the device. The script runs on the devices, and each device returns an error for the custom setting instead of a compliant or non-compliant result. What should the administrator change?

  • AConfigure the discovery script to run using the credentials of the person signed in to the device, so that the script is able to read the registry value that it reports on.
  • BMove the rule out of the uploaded JSON file and configure it on the settings pages of the compliance policy instead, leaving the uploaded discovery script exactly as it is.
  • CHave the discovery script write the setting to standard output as one line of compressed JSON, using a key whose name matches the setting named in the uploaded JSON rule. Correct
  • DReplace the custom compliance policy with an Endpoint Analytics remediation, because a remediation is able to interpret the output of a detection script that a compliance policy cannot read.
A custom compliance discovery script must return its settings to standard output as one line of compressed JSON whose keys match the uploaded rules. A custom compliance policy pairs a discovery script with a JSON file of rules. The client runs the script, reads what it writes to standard output, and expects a single line of compressed JSON whose keys correspond to the setting names in the rules. Human readable text written line by line cannot be parsed into settings, so the setting is reported as an error rather than being evaluated.

Why A is wrong: It is tempting because a permissions fault is a common cause of a script failing, but the value is being read successfully here and the error concerns the shape of what the script returns, not the account the script runs under.

Why B is wrong: It is tempting because built in compliance settings are configured on the policy pages, but a custom compliance setting is defined by the uploaded JSON file, and moving the rule would leave the script output in the same unusable form.

Why C is correct: Correct. Intune reads the script output as a single line of compressed JSON and matches each key against the rules in the uploaded file, so readable multi line text cannot be interpreted and the setting is returned in error.

Why D is wrong: It is tempting because remediations also pair a script with a device, but a remediation reports on and repairs a condition rather than contributing a compliance state, so it would not make the devices report as non-compliant.

Free sampleOptimize Endpoint Operations by Using Automation, Monitoring, and Reportingmedium

An administrator holds an Intune role assignment whose scope (groups) is limited to the enrolled Windows devices at one site. Using Security Copilot in the Microsoft Intune admin center, the administrator investigates a threat reported against enrolled Windows devices. A colleague expects the investigation to return every affected device in the tenant, on the grounds that Security Copilot reads the tenant data directly. Which statement describes the boundary of what that administrator sees?

  • AThe results are limited to the devices the administrator's own Intune role assignment and scope already permit them to see, because Security Copilot works within existing role-based access control rather than widening it. Correct
  • BThe results cover every enrolled device in the tenant, because Security Copilot queries Intune with a service identity of its own rather than with the signed-in administrator's permissions.
  • CThe results cover every enrolled device in the tenant, and the administrator's scope is applied only at the point where a remote action such as a sync or a wipe is issued.
  • DThe results are limited to the devices at that site only if a scope tag is applied to the Security Copilot experience as well, because scope (groups) governs what an administrator may do rather than what is displayed.
Security Copilot in Intune answers within the signed-in administrator's existing role-based access control and scope, and grants no extra visibility. An investigation carried out through Security Copilot in the Microsoft Intune admin center is performed on behalf of the person signed in. The service builds its answer from Intune objects that person is already entitled to read under their role assignment and its scope, so a scoped administrator receives a scoped answer. Security Copilot is an assistive layer over the same authorisation model rather than a way around it.

Why A is correct: Correct. The Security Copilot experiences in the Microsoft Intune admin center answer for the signed-in administrator, so an answer can only be built from objects that administrator was already entitled to view under their role assignment and its scope.

Why B is wrong: It is tempting because a cloud service often does read data with its own identity, and Security Copilot reaches data the administrator did not gather. It is wrong because the request is made on behalf of the signed-in administrator, so the answer cannot be wider than that person's own access.

Why C is wrong: It is tempting because scope really does constrain remote actions, so a candidate may conclude that it constrains nothing else. It is wrong because scope governs which objects a scoped administrator can view in the first place, so reading data is constrained as well.

Why D is wrong: It is tempting because scope tags do control what a scoped administrator sees in the console, so a candidate may look for a tag on every feature. It is wrong because a scope tag is applied to Intune objects and to roles, not to a Copilot experience, and the two halves of the reasoning are the wrong way round.

Free sampleOptimize Endpoint Operations by Using Automation, Monitoring, and Reportingmedium

An operations team is establishing an operational baseline for a Windows 11 estate and has to be clear about two Endpoint Analytics reports before it does so. One of them groups the restarts a device records into causes such as a stop error and an update driven restart. The other describes how the applications on those devices behave. Which statement correctly describes the difference between the restart frequency report and the application reliability report?

  • ABoth reports are drawn from the same restart events, and restart frequency presents those events for each device while application reliability presents the same events for each person using a device.
  • BRestart frequency reports how often devices restart and what caused each restart, while application reliability reports how often the applications running on those devices stop unexpectedly rather than why a device restarted. Correct
  • CRestart frequency counts the application crashes that were severe enough to force a device to restart, and application reliability counts the restarts that an administrator issued remotely from the admin center.
  • DRestart frequency reports how long a device takes to complete a restart once one has begun, and application reliability reports how long each application on the device takes to start after it is launched.
Restart frequency counts device restarts and their causes; application reliability counts unexpected application failures on those devices. The two reports sit at different layers. Restart frequency is about the device: how often it restarted and which cause each restart is attributed to, such as a stop error or an update. Application reliability is about the software running on the device: how often applications stop unexpectedly. A baseline needs both, because a stable device can still carry an unreliable application.

Why A is wrong: Endpoint Analytics does group some measures by device and others by user, which makes this tempting, but the two reports are built from different events rather than from one event set presented two ways.

Why B is correct: Correct, because restart frequency is a count of restarts attributed to causes such as a stop error or an update, and application reliability is a separate measure of how often applications fail on the devices, so the two answer different questions about the same estate.

Why C is wrong: This swaps the subject of each report and is tempting because an unstable application and an unexpected restart can feel like the same incident to a user, but neither report is scoped the way this option describes.

Why D is wrong: Duration is the currency of the startup performance measures rather than of these two reports, so this confuses how long something takes with how often something happens.

Other domains in this exam

See also the MD-102 cert hub, the study guide, and the cheat sheet.

Examworthy is not affiliated with or endorsed by Microsoft. Original, blueprint-aligned practice material only.