Skip to Content

Microsoft MD-102: What is the correct device membership rule in Microsoft 365 to create dynamic group containing devices with “Marketing” in the name?

Learn how to create a dynamic device group in Microsoft 365 to automatically include any devices that have the word “Marketing” in their name by using the proper membership rule syntax.

Table of Contents

Question

You have a Microsoft 365 E5 subscription.

You need to create a dynamic device group that will contain any device that has the word Marketing in its name.

Which device membership rule should you use?

A. (device.displayName -in “Marketing”)
B. (device.displayName -in “*Marketing*”)
C. (device.displayName -contains “Marketing”)
D. (device.displayName -contains “*Marketing*”)

Answer

C. (device.displayName -contains “Marketing”)

Explanation

To create a dynamic device group in Microsoft 365 that will automatically contain any devices that have the word “Marketing” in their display name, you should use the following membership rule:

(device.displayName -contains “Marketing”)

The -contains operator looks for an exact match of the specified string anywhere within the device’s display name attribute. So this rule will match devices named things like “Marketing Team Laptop”, “John’s Marketing Phone”, etc.

The other options are incorrect:
A and B use the -in operator, which is used to check if a value matches any item in a list, not for partial string matches.
B and D use wildcards (*), but the -contains operator does not support wildcards.

So in summary, to dynamically group together all devices with “Marketing” anywhere in their name, use the rule (device.displayName -contains “Marketing”).

Microsoft MD-102 certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Microsoft MD-102 exam and earn Microsoft MD-102 certification.