exam questions

Exam MS-102 All Questions

View all questions & answers for the MS-102 exam

Exam MS-102 topic 1 question 6 discussion

Actual exam question from Microsoft's MS-102
Question #: 6
Topic #: 1
[All MS-102 Questions]

HOTSPOT -
You have a Microsoft 365 subscription that contains the users shown in the following table.

You need to configure a dynamic user group that will include the guest users in any department that contains the word Support.
How should you complete the membership rule? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Perycles
Highly Voted 1 year, 8 months ago
Correct answers (user.department -contains "Support") and (user.userType -eq "Guest") Be carrefull : Case Sensitive
upvoted 16 times
Blixa
1 year, 5 months ago
Nope, not case sensitive
upvoted 4 times
...
...
fabiomartinsnet
Most Recent 1 month, 1 week ago
This question was in exam in march 17 2025.
upvoted 3 times
...
MR_Eliot
8 months, 1 week ago
The provided answers are correct. However, in second box, Match could also be a solution, but since we don't need any advanced matching, the best solution would be using Contains.
upvoted 1 times
...
Tomtom11
10 months, 2 weeks ago
https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership Operator Syntax Not Equals -ne Equals -eq Not Starts With -notStartsWith Starts With -startsWith Not Contains -notContains Contains -contains Not Match -notMatch Match -match In -in Not In -notIn
upvoted 2 times
...
Jslei
1 year, 7 months ago
just tested this, both contains and match will work with department
upvoted 3 times
imlearningstuffagain
1 year, 6 months ago
Microsoft recommends to limit the Match clause and use Contains (ref: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-rule-more-efficient)
upvoted 3 times
MR_Eliot
8 months, 1 week ago
Microsoft also recommends to minimize the use of contains in favor of -eq and -startswith
upvoted 1 times
...
...
...
gomezmax
1 year, 7 months ago
Correct
upvoted 2 times
...
vinch
1 year, 7 months ago
Good answer is -eq -match
upvoted 1 times
imlearningstuffagain
1 year, 6 months ago
Nope, Microsoft recommends to limit the Match clause and use Contains (ref: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-rule-more-efficient)
upvoted 3 times
...
...
nenge
1 year, 8 months ago
This can be tricky if you're used to PowerShell syntax. In PS syntax, "-contains" would be incorrect as it checks for an item in a collection, not partial matches. In dynamic group syntax, it's the opposite. In dynamic group syntax, "-contains" matches partial strings, not items in collections. https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership#supported-expression-operators
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago