Question 420
An admin's PowerShell script queries Microsoft Graph but fails after the first 100 devices in a large tenant. Which Intune or Entra management approach best fits this scenario?
Explanation
Correct Answer
This is the most targeted action: Implement Graph pagination using the returned next-link sequence. The technical distinction is that collection endpoints may return paged results rather than the entire tenant. Confirm the change by checking: The script counts all expected inventory devices across multiple pages.
Incorrect Answers
This action is appropriate for a different case: A custom compliance rule treats an unavailable service as compliant because its PowerShell check returns a default true value. There, the targeted fix is 'Implement a fail-safe discovery result and explicit error handling for missing data.' because unknown state should not automatically satisfy a security prerequisite. The current scenario instead requires 'Implement Graph pagination using the returned next-link sequence.' and verification that the script counts all expected inventory devices across multiple pages.
This action is appropriate for a different case: An organization wants a custom device compliance check for a specialized local service that Intune's standard compliance profile cannot directly assess. There, the targeted fix is 'Implement supported custom compliance discovery scripts and JSON rule evaluation on eligible platforms.' because custom compliance can evaluate additional signals with prescribed result formats. The current scenario instead requires 'Implement Graph pagination using the returned next-link sequence.' and verification that the script counts all expected inventory devices across multiple pages.
This action is appropriate for a different case: A custom compliance PowerShell script prints debugging prose before JSON output and Intune cannot parse the device evaluation. There, the targeted fix is 'Return the supported JSON schema without extra stdout content and validate the rules file.' because machine-readable output format is part of the custom compliance contract. The current scenario instead requires 'Implement Graph pagination using the returned next-link sequence.' and verification that the script counts all expected inventory devices across multiple pages.