exam questions

Exam 200-201 All Questions

View all questions & answers for the 200-201 exam

Exam 200-201 topic 1 question 228 discussion

Actual exam question from Cisco's 200-201
Question #: 228
Topic #: 1
[All 200-201 Questions]

An analyst is using the SIEM platform and must extract a custom property from a Cisco device and capture the phrase, `File: Clean.` Which regex must the analyst import?

  • A. File: Clean (.*)
  • B. ^Parent File: Clean$
  • C. File: Clean
  • D. ^File: Clean$
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
RoBery
10 months, 2 weeks ago
from chatgpt: The correct regex for capturing the phrase "File: Clean." is: C. File: Clean This regex simply matches the literal string "File: Clean" without any additional characters or assertions. If you want to capture the entire line containing "File: Clean.", including any characters that might come after it, you should use option D: D. ^File: Clean$
upvoted 2 times
...
AhmedAbdalla
1 year, 1 month ago
To capture the phrase "File: Clean" from a Cisco device using regex in a SIEM platform, the analyst should use: ^File: Clean$ This regex pattern matches the exact string "File: Clean" with ^ indicating the start of the line and $ indicating the end of the line, ensuring an exact match. So, the correct answer is ^File: Clean$.
upvoted 2 times
...
Max_DeJaV
1 year, 2 months ago
Selected Answer: C
C is the only possible answer because it can extract/parse both the words even if they are between other characters (as we can commonly find in a log file) D is wrong because it only matches if the log fields are separated by a "line feed" or "carriage return" (\n or \r in regex), which is quite rare to find in common logs
upvoted 4 times
...
ethhacker
1 year, 3 months ago
Would be more like: ^File: Clean\.$ As the \ marks the dot (.) as mandatory
upvoted 3 times
...
lklk1111
1 year, 3 months ago
None of the regex exactly matches "File: Clean.". The closes one is C if "." is ignored.
upvoted 1 times
...
alhamry
1 year, 7 months ago
B. obviously is incorrect. A. is incorrect because it will match (File: Clean) followed by any number of characters. D. is incorrect because it will match only if there is no characters before and after the phrase (File: Clean). Therefore the best answer is C
upvoted 2 times
...
mozaki
1 year, 8 months ago
Selected Answer: C
An Example The antivirus scan was successful. File: Clean. The system is secure now. To extract the phrase "File: Clean" and create a custom property, you can use the following regex: File: Clean This regex will match any occurrence of the exact phrase "File: Clean" in the log message, and the SIEM platform can then use this to create a custom property.
upvoted 1 times
...
sman22
1 year, 9 months ago
It´s D... https://regexone.com/lesson/line_beginning_end
upvoted 1 times
...
sami43
1 year, 9 months ago
Selected Answer: D
This regular expression matches the exact phrase "File: Clean" from the beginning (^) to the end ($) of a line. The "^" and "$" symbols indicate the start and end of a line, respectively, ensuring that the match is for the exact phrase and not a substring of another phrase. The "(.*)" in option A would match any characters after "File: Clean," which is not what the analyst is looking for. Option B does not match the exact phrase, as it includes "Parent" in the match. Option C would match the phrase "File: Clean," but it wouldn't specify where the line starts or ends.
upvoted 2 times
...
dedlyfe
1 year, 10 months ago
is it just me is it super shady how examtopic is claiming these are all free but you hit a paywall halfway through the topics....
upvoted 1 times
...
Binx
1 year, 10 months ago
If a caret ( ^ ) is at the beginning of the entire regular expression, it matches the beginning of a line. If a dollar sign ( $ ) is at the end of the entire regular expression, it matches the end of a line.
upvoted 1 times
...
trigger4848
2 years ago
I think C is the answer bc "A" doesn't work for me bc (.*) implies anything after will match bc "." is a wildcard.
upvoted 1 times
...
trigger4848
2 years ago
The period and the spaces are throwing me off. "A" does not match if you use the space in the answer. Can anyone elaborate on this?
upvoted 1 times
...
MaliDong
2 years, 1 month ago
Selected Answer: A
tested with regex101, A matches well, D does not match.
upvoted 1 times
weganos
1 year, 11 months ago
File: Clean(.) matches `File: Clean.` when adding * to the regex it also matches everything following `File: Clean.` C would be the best answer but it doesn't match the period inside the `File: Clean.` This question doesn't make sense, maybe it's a typo... One thing is certain it's not D as the answer suggests.
upvoted 2 times
...
...
Eng_ahmedyoussef
2 years, 1 month ago
https://www.cisco.com/c/en/us/td/docs/security/security_management/cs-mars/4-3/user/guide/local_controller/appreexp.html
upvoted 1 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 ...