exam questions

Exam SC-400 All Questions

View all questions & answers for the SC-400 exam

Exam SC-400 topic 1 question 4 discussion

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

HOTSPOT -
You use project codes that have a format of three alphabetical characters that represent the project type, followed by three digits, for example Abc123.
You need to create a new sensitive info type for the project codes.
How should you configure the regular expression to detect the content? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://joannecklein.com/2018/08/07/build-and-use-custom-sensitive-information-types-in-office-365/

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
liozuf
Highly Voted 2 years, 8 months ago
\d{3} correct answer
upvoted 26 times
...
HardcodedCloud
Highly Voted 2 years, 1 month ago
([a-zA-Z]{3}\d{3}) tested & verified using regex101. This is the result: {3} matches the previous token exactly 3 times a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive) A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive) \d matches a digit (equivalent to [0-9]) {3} matches the previous token exactly 3 times
upvoted 5 times
...
xswe
Most Recent 9 months, 1 week ago
a-zA-Z = matches any 3 letters, it will be either upper or lowercase followed by d{3} = 3 random digits The result from this regex pattern could be: XYZ789 , MNO345 etc
upvoted 3 times
...
klosedotorg83
2 years, 2 months ago
[a-zA-Z]{3}\d{3}
upvoted 3 times
...
oberte007
2 years, 3 months ago
I think given answer is correct. for the first box, they said 3 alphabetical characters i.e you can have these combinations of letters : ABC, bcE, cdf, ... so fisrt answer is [a-zA-Z]{3}. Now for the second one, they said followed by three digits it's the same thing for the alphabetical letters you'll have a combination of three digits: 123, 135, 911,... so the second box is \d{000-999}. so the full answer is [a-zA-Z]{3}\d{000-999.
upvoted 4 times
UnitedKendom
1 year, 8 months ago
\d{000-999} doesn't match using regex101, it would have to be \d{000,999} instead for option D to be correct
upvoted 1 times
...
...
jaycn67
2 years, 5 months ago
\d{3} , https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.ismatch?view=net-5.0
upvoted 3 times
...
k4d4v4r
2 years, 7 months ago
\d{3} as in this link: https://docs.microsoft.com/en-us/dotnet/standard/base-types/quantifiers-in-regular-expressions#match-exactly-n-times-n
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 ...