Courseiva
Manage and maintain devicesmediumMultiple ChoiceObjective-mapped

MD-102 Manage and maintain devices Practice Question

Your organization uses Microsoft Intune to manage macOS devices. You need to deploy a custom shell script that runs once on each device. What should you configure?

⚠ Common exam trap

Candidates often confuse configuration profiles (which set settings) with script execution, or assume compliance policies can run scripts, when Intune separates these functions into distinct policy types for macOS management.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A shell script with the 'Run script once per device' option.

Microsoft Intune provides a native 'Shell script' policy type for macOS that includes a 'Run script once per device' setting. This ensures the script executes exactly one time on each target device, meeting the requirement without additional configuration or workarounds.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A shell script with the 'Run script once per device' option.

    Why this is correct

    Shell scripts in Intune can be set to run once per device.

  • A device compliance policy with a custom shell script.

    Why it's wrong here

    Compliance policies cannot execute scripts.

  • A custom configuration profile with a script payload.

    Why it's wrong here

    Configuration profiles do not support script execution.

  • A managed app that includes the script.

    Why it's wrong here

    Managed apps are for software installation, not script execution.

Go deeper

Related to this question

About these practice questions

Courseiva writes every MD-102 question from scratch — 942 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MD-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MD-102 exam.