exam questions

Exam SC-400 All Questions

View all questions & answers for the SC-400 exam

Exam SC-400 topic 2 question 21 discussion

Actual exam question from Microsoft's SC-400
Question #: 21
Topic #: 2
[All SC-400 Questions]

HOTSPOT -
You have a Microsoft 365 tenant that uses data loss prevention (DLP) to protect sensitive information.
You create a new custom sensitive info type that has the matching element shown in the following exhibit.

The supporting elements are configured as shown in the following exhibit.

The confidence level and character proximity are configured as shown in the following exhibit.

For each of the following statements, select Yes if statement is true. Otherwise, select No
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Note: The regular expression has a starts with (^) and ends with ($) metacharacter and will not match any of the sentences. Without the starts with (^) metacharacter the first and second sentences would match and the supporting element (Employee ID) would be within 100 character proximity.
Reference:
https://docs.microsoft.com/en-us/microsoft-365/compliance/create-a-custom-sensitive-information-type?view=o365-worldwide

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
zaspamer
Highly Voted 3 years, 5 months ago
The answer is no due to a } instead of a ). The correct query would be ^(\d{3}(-)){3}\d{3}|\d{12}$ . Then both A and B would have been corrected. Tested with https://regex101.com/
upvoted 17 times
...
PsiCzar
Most Recent 10 months ago
No for all. Regex is invalid, 3rd "}" doesn't have a matching "{", validated it with regex101.com
upvoted 1 times
...
Sam12
3 years, 4 months ago
regardless of the errors on the regex: First regex (before the |) will never work because the options that contain digits and hyphens, the strings never starts with a digit (required by the regex because of the ^) Second regex (after the |) (12 digits) must end on a digit ($), none of the options end on a digit. NO for all the options.
upvoted 4 times
dmonton
3 years, 2 months ago
The dot is not part of the text. Microsoft allways ends the answers with a dot. So if in the case that the regular expresión is written correctly second is YES. If the regular expresion is written with the } instead of ) all are NO
upvoted 4 times
...
...
nupagazi
3 years, 4 months ago
I tested with regex101; should be all No, the 12 digit number should start from begining (^); and yes, ) instead of }. The correct regex should be: ^(\d{3}(-)){3}\d{3}|\d{12}$
upvoted 3 times
...
xlws
3 years, 6 months ago
that is 3 numbers - 3 numbers - 3 numbers - 3 numbers or 12 numbers, I vote for yes,no,no.
upvoted 3 times
sergioandreslq
3 years, 5 months ago
Nop, The issue is the "^" which for the maching at the beggining of the line. I believe it is No, no, no. I tested the regex on: https://regex101.com/ 1st Capturing Group (\d{3}(-)){3} {3} matches the previous token exactly 3 times A repeated capturing group will only capture the last iteration. Put a capturing group around the repeated group to capture all iterations or use a non-capturing group instead if you're not interested in the data \d matches a digit (equivalent to [0-9]) {3} matches the previous token exactly 3 times 2nd Capturing Group (-) - matches the character - with index 4510 (2D16 or 558) literally (case sensitive) \d matches a digit (equivalent to [0-9]) {3} matches the previous token exactly 3 times 2nd Alternative \d{12} \d matches a digit (equivalent to [0-9]) {12} matches the previous token exactly 12 times
upvoted 5 times
Boeroe
8 months, 3 weeks ago
Agree, the ^ is the reason the regex wont work. Microsoft article: https://learn.microsoft.com/en-us/purview/dlp-policy-learn-about-regex-use#example-of-using-a-regex-in-a-dlp-policy-rule
upvoted 1 times
...
...
...
klosedotorg83
3 years, 7 months ago
The regular expression ^ (\ d {3} (-)} {3} \ d {3} | \ d {12} $ shown in the exhibit is incorrect, so none statetement will match. It should be like this ^ (\ d {3} (-)) {3} \ d {3} | \ d {12} $. So, the second statement will match if the regular expression is fixed.
upvoted 4 times
...
Bongconnection
3 years, 7 months ago
option 2nd, 9 digit number matches regular expression... so is 2nd TRUE? not sure
upvoted 1 times
Sam12
3 years, 4 months ago
no because regex ends in $ which means that there can be nothing after the last digit, but you have the dot, so it does not match.
upvoted 2 times
dmonton
3 years, 2 months ago
The dot is not part of the text. Microsoft allways ends the answers with a dot
upvoted 2 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 ...