How Do You Build a Regex SIT for pjt123456sct Project Codes?

Answer Complete the regex as pjt[0-9]{6}sct: pjt is a literal prefix, [0-9]{6} matches exactly six digits, and sct is a literal suffix.

HOTSPOT You have a Microsoft 365 E5 subscription that uses Microsoft Purview. You need to create a sensitive information type (SIT) to detect project code content that starts with the letters pjt followed by six digits and ends with the letters sct. The following is an example of the project code. pjt123456sct How should you complete the regular expression? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. exhibit

Community Insight

This hotspot tests whether you can translate a literal prefix, an exact six-digit count, and a literal suffix into Purview SIT regex; the trap is misplacing the {6} quantifier or using + instead of an exact count.

A Microsoft Purview custom sensitive information type for project code pjt123456sct must use a regular expression that matches the literal pjt prefix, exactly six digits, and the literal sct suffix. This page confirms the correct pattern is pjt[0-9]{6}sct and explains why the {6} quantifier is the key hotspot selection.

A common mistake is writing pjt[0-9]sct or pjt[0-9]+sct, which matches only one digit or any number of digits instead of exactly six; the {6} quantifier must follow the digit class, not the pjt literal.

Community Discussion (5 comments)

NeerajSap 👍 1
For a custom Sensitive Information Type (SIT), you need a regex that matches: Starts with pjt Followed by exactly 6 digits Ends with sct
MultiCloudIronMan 👍 5
Microsoft Learn confirms that custom SITs use regular expressions for pattern matching, and [0-9]{6} is the standard syntax for detecting six consecutive digits.
Eltooth 👍 6
Answer is correct: pjt[0-9]{6}sct The regular expression pjt[0-9]{6}sct is the correct syntax for detecting a project code that starts with "pjt", contains exactly six digits, and ends with "sct". Here is a breakdown of the components: pjt: Matches the literal characters "pjt". [0-9]: This is a character class that matches any single digit from 0 through 9. {6}: This is a quantifier that specifies the preceding element ([0-9]) must occur exactly 6 times. sct: Matches the literal characters "sct".
deeptha92 👍 4
pjt[0-9]{6}sct Given answer is correct
gabbinu 👍 5
Given answer is correct

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The required token begins with the literal characters pjt, then has exactly six decimal digits, then ends with literal sct. In a Microsoft Purview custom SIT regex, [0-9] denotes a single digit and the quantifier {6} repeats that class exactly six times, so pjt[0-9]{6}sct describes pjt123456sct precisely. Because the question asks how to complete the regular expression rather than how to configure thresholds or labels, the quantified digit class is the decisive element. The literal sct must remain after the six digits, not inside the quantifier.

Why Other Candidate Answers Are Wrong

A choice such as pjt[0-9]sct accepts only one digit, while pjt[0-9]{5}sct accepts five digits and fails the six-digit requirement. pjt[0-9]+sct is also wrong because + means one or more digits, so it would match pjt1sct or pjt1234567sct. Writing pjt{6}[0-9]sct repeats the literal prefix pjt six times instead of repeating the digit class, and omitting the digit class entirely cannot match the numeric middle section. Anchors may be used in some SIT designs to constrain a match, but they are not the required completion for the prefix-six-digits-suffix pattern shown here.

Community Comment Notes

Eltooth's explanation breaks the pattern into "pjt: Matches the literal characters", a digit class, and a six-repeat quantifier. MultiCloudIronMan notes that "Microsoft Learn confirms that custom SITs use regular expressions" and emphasizes [0-9]{6} as the six-consecutive-digit syntax. gabbinu and deeptha92 both confirm the given answer pjt[0-9]{6}sct, while NeerajSap restates the three-part requirement of pjt, exactly six digits, and sct. The visible comments align on the same regex construction, with no dissent in the provided discussion.

Official Reference

Exam Strategy

In hotspot regex questions, translate each phrase into a token before touching the dropdowns: literal prefix, exact digit count with {6}, literal suffix. Verify the quantifier attaches to the digit class rather than to pjt, because moving it changes the meaning.

Frequently Asked Questions

Does pjt[0-9]{6}sct need ^ and $ anchors in a Purview custom SIT?

Not for the requested pattern. Purview can match the token within scanned content; anchors only constrain the match to the start or end of a line or string if the SIT design specifically requires that.

Why is pjt[0-9]{6}sct preferred over pjt[0-9]+sct for the six-digit project code?

The + quantifier accepts one or more digits, so it would also match pjt1sct or pjt1234567sct; {6} enforces exactly six digits as required.

More SC-401 FAQ →

Related Analysis

← Back to SC-401 Study Guide