Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ServiceNow CIS-SM Exam - Topic 8 Question 58 Discussion

Which one of the following Regular Expressions could be used to parse the value 5.2.0 from the string?
D) Version (\d+).(\d+).(\d+)
A) Version (\.*)
B) Version\s+(\d+\.\d+\.\d+)
C) Version (\d+)

ServiceNow CIS-SM Exam - Topic 8 Question 58 Discussion

Actual exam question for ServiceNow's CIS-SM exam
Question #: 58
Topic #: 8
[All CIS-SM Questions]

Which one of the following Regular Expressions could be used to parse the value 5.2.0 from the string?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Margery
7 months ago
C is way too simple for this versioning.
upvoted 0 times
...
Timothy
7 months ago
Wait, can A even work for this? Seems off.
upvoted 0 times
...
Alison
7 months ago
Not so sure about D, it might not handle leading zeros.
upvoted 0 times
...
Queenie
7 months ago
Definitely B, it captures the full version format.
upvoted 0 times
...
Shalon
7 months ago
I think B is the right choice.
upvoted 0 times
...
Izetta
8 months ago
I’m not confident, but I feel like option A is too vague to capture the version number correctly.
upvoted 0 times
...
Paz
8 months ago
I’m leaning towards option B as well, but I wonder if option D could work if it’s just looking for the numbers.
upvoted 0 times
...
Francine
8 months ago
I remember practicing regex questions, and I feel like option D might be too strict since it doesn't account for the dots between the numbers properly.
upvoted 0 times
...
Latrice
8 months ago
I think option B looks familiar because it captures the version format with digits and dots, but I'm not entirely sure if it matches exactly.
upvoted 0 times
...
Keneth
8 months ago
Ah, I see what they're getting at. Option D is the correct answer - "Version (\d+).(\d+).(\d+)" will capture each part of the version number separately. Nice and straightforward.
upvoted 0 times
...
Izetta
8 months ago
Hmm, I'm a bit unsure about this one. I'll need to double-check the syntax for matching a version number with three parts separated by periods. Maybe option D is the way to go?
upvoted 0 times
...
Melita
8 months ago
I think option B looks the most promising. The regular expression "Version\s+(\d+\.\d+\.\d+)" should be able to capture the version number in the format we're looking for.
upvoted 0 times
...
Latrice
8 months ago
I'm a little confused by the different options here. I know regular expressions can be tricky, but I think I'll go with option B. The "Version\s+(\d+\.\d+\.\d+)" pattern seems like it should work for parsing out the version number.
upvoted 0 times
...
Barrett
8 months ago
Okay, I think I've got this. If the aiops-ir-core-archiving pod can't communicate with Kafka topics, it would likely mean that event journal updates can no longer be maintained, so I'm going to go with option A.
upvoted 0 times
...
Caren
8 months ago
AzCopy could also be a good choice, but I'm not sure if it's the most appropriate for this specific scenario.
upvoted 0 times
...
Helga
9 months ago
I'm a bit confused, though. I don't recall there being specific details about directors in the report. Is it really option 1?
upvoted 0 times
...
Maryln
1 year ago
Option F: Version (Hopefully not 1.0.0)
upvoted 0 times
Nobuko
1 year ago
I agree, that regex pattern looks like it would capture the value 5.2.0
upvoted 0 times
...
Brock
1 year ago
I think the answer is B) Version\s+(\d+\.\d+\.\d+)
upvoted 0 times
...
...
Junita
1 year ago
I'm leaning towards Option B. It's concise and covers the typical version number format.
upvoted 0 times
Annabelle
12 months ago
I would go with Option B as well. It seems to be the most reliable option for extracting the version number.
upvoted 0 times
...
Alysa
12 months ago
I agree, Option B seems like the most specific choice for parsing the version number.
upvoted 0 times
...
Fanny
1 year ago
I think Option B is the best choice. It looks like it can capture the version number accurately.
upvoted 0 times
...
...
Vernice
1 year ago
Option A is too broad. Capturing everything between the dots won't give you the specific version numbers.
upvoted 0 times
Ena
1 year ago
I would go with option B as well, it seems to be the most specific.
upvoted 0 times
...
Jimmie
1 year ago
I agree, option A is too broad and might capture more than just the version numbers.
upvoted 0 times
...
Hershel
1 year ago
I think option B) Version\s+(\d+\.\d+\.\d+) would work best.
upvoted 0 times
...
...
Jordan
1 year ago
Option D seems a bit overkill. Splitting the version string into three separate capturing groups feels unnecessary for this use case.
upvoted 0 times
Leota
1 year ago
Yeah, option D does seem like it's doing more than what's needed for just parsing the version number.
upvoted 0 times
...
Krissy
1 year ago
I would go with option B as well, it captures the version number accurately without unnecessary complexity.
upvoted 0 times
...
Shenika
1 year ago
Agreed, option B seems like the most efficient choice for this task.
upvoted 0 times
...
Lacresha
1 year ago
I think option B) Version\\s+(\\d+\\.\\d+\\.\\d+) would work best for parsing the value 5.2.0.
upvoted 0 times
...
...
Man
1 year ago
But option B captures the specific format of the version number with digits and dots, making it more accurate
upvoted 0 times
...
Charlene
1 year ago
I disagree, I believe the answer is D) Version (\d+).(\d+).(\d+)
upvoted 0 times
...
Man
1 year ago
I think the answer is B) Version\s+(\d+\.\d+\.\d+)
upvoted 0 times
...
Esteban
1 year ago
I think Option B looks the most promising. It specifically targets the 'Version' keyword and a pattern of three numbers separated by dots.
upvoted 0 times
Antonio
1 year ago
I think Option B is the correct one as well. It matches the pattern of three numbers separated by dots after the 'Version' keyword.
upvoted 0 times
...
Audry
1 year ago
I agree, Option B seems to be the most accurate choice.
upvoted 0 times
...
Norah
1 year ago
I think Option B is the correct Regular Expression to extract the value 5.2.0 from the string.
upvoted 0 times
...
Danica
1 year ago
I agree, Option B seems like the best choice for parsing the value 5.2.0.
upvoted 0 times
...
...
Margot
1 year ago
I'm not sure, but I think D) Version (\d+).(\d+).(\d+) could also work if we want to capture each number separately
upvoted 0 times
...
Hillary
1 year ago
I agree with Gwenn, because it specifies the exact format of the version number
upvoted 0 times
...
Gwenn
1 year ago
I think the answer is B) Version\s+(\d+\.\d+\.\d+)
upvoted 0 times
...

Save Cancel