Question 260
In a CQL investigation of normalized Falcon event data, the task is to apply an exact `UserName` equality filter. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- UserName="m.hale"
- | groupBy(UserName)
- UserName=/m.*/
- UserName != "m.hale"
Explanation
Correct Answer
A:An equality predicate compares the parsed user field to the stated account string. The stated requirement is to apply an exact UserName equality filter; this syntax preserves that meaning in the query stream.
Incorrect Answers
B:The `| groupBy(UserName)` stage groups the events but does not enforce all constraints for apply an exact UserName equality filter; it may aggregate the wrong dimension or include records omitted by the intended earlier filters.
C:The regex in `UserName=/m.*/` matches a different value or text position from the one needed to apply an exact UserName equality filter. Check whether it is anchored, negated or broader than the desired field predicate.
D:The inequality in `UserName != "m.hale"` rejects the named value rather than selecting it. For the requirement to apply an exact UserName equality filter, reversing this test would exclude the evidence under investigation.
Question 261
Before publishing an Advanced Event Search query, the task is to exclude a specific account. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- UserName="svc-sync"
- UserName!="svc-sync"
- UserName=/svc-sync/
- | select([UserName])
Explanation
Correct Answer
B:The inequality filter removes the specified account from the working result set. The stated requirement is to exclude a specific account; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:This predicate does not perform the required exclusion; it includes rather than discards the specified value. That reverses the membership test needed to exclude a specific account.
C:A regex matching `UserName=/svc-sync/` retains records with the account pattern instead of excluding that account. Regex inclusion and a not-equal filter are different operations for the exclude a specific account task.
D:`select()` projects the listed columns but does not impose the predicate or grouping needed to exclude a specific account. It can be used after filtering, not instead of the requested operation.
Question 262
While validating query semantics with known sample events, the task is to match either of two endpoint names. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- | groupBy(ComputerName)
- ComputerName="WS-03" ComputerName="WS-04"
- (ComputerName="WS-03" OR ComputerName="WS-04")
- ComputerName!="WS-03" ComputerName!="WS-04"
Explanation
Correct Answer
C:An explicitly grouped OR matches either named host; implicit adjacency means AND. The stated requirement is to match either of two endpoint names; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:The `| groupBy(ComputerName)` stage groups the events but does not enforce all constraints for match either of two endpoint names; it may aggregate the wrong dimension or include records omitted by the intended earlier filters.
B:This equality predicate selects only its stated value, not necessarily the combination or negation required to match either of two endpoint names. Compare both the target field and comparator with `(ComputerName="WS-03" OR ComputerName="WS-04")`.
D:The inequality in `ComputerName!="WS-03" ComputerName!="WS-04"` rejects the named value rather than selecting it. For the requirement to match either of two endpoint names, reversing this test would exclude the evidence under investigation.
Question 263
In a review of a proposed Falcon hunting query, the task is to restrict to a host and a process. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- | select([FileName])
- ComputerName="FIN-01" FileName="cmd.exe"
- ComputerName!="FIN-01" FileName="cmd.exe"
- ComputerName="FIN-01" OR FileName="cmd.exe"
Explanation
Correct Answer
B:Adjacent filters combine conjunctively, retaining events satisfying both constraints. The stated requirement is to restrict to a host and a process; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:`select()` projects the listed columns but does not impose the predicate or grouping needed to restrict to a host and a process. It can be used after filtering, not instead of the requested operation.
C:The inequality in `ComputerName!="FIN-01" FileName="cmd.exe"` rejects the named value rather than selecting it. For the requirement to restrict to a host and a process, reversing this test would exclude the evidence under investigation.
D:Using OR broadens the match: a record can pass one predicate without the other. The goal to restrict to a host and a process requires the complete stated constraint; the correct expression retains the necessary intersection.
Question 264
When converting a hunting lead into a CQL expression, the task is to find names beginning with a prefix. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- FileName="*shell"
- FileName="powershell*"
- FileName="powershell?"
- FileName!="powershell*"
Explanation
Correct Answer
B:The trailing wildcard matches arbitrary suffix text after the specified prefix. The stated requirement is to find names beginning with a prefix; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:The wildcard in `FileName="*shell"` changes the accepted prefix or suffix. It may match an unintended file set instead of the specific pattern required to find names beginning with a prefix.
C:This equality predicate selects only its stated value, not necessarily the combination or negation required to find names beginning with a prefix. Compare both the target field and comparator with `FileName="powershell*"`.
D:The inequality in `FileName!="powershell*"` rejects the named value rather than selecting it. For the requirement to find names beginning with a prefix, reversing this test would exclude the evidence under investigation.
Question 265
In a CQL investigation of normalized Falcon event data, the task is to find names ending in a given extension. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- ImageFileName=".ps1*"
- ImageFileName="*.exe"
- ImageFileName!="*.ps1"
- ImageFileName="*.ps1"
Explanation
Correct Answer
D:The leading wildcard permits different path/name prefixes while requiring the .ps1 suffix. The stated requirement is to find names ending in a given extension; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:The wildcard in `ImageFileName=".ps1*"` changes the accepted prefix or suffix. It may match an unintended file set instead of the specific pattern required to find names ending in a given extension.
B:The wildcard in `ImageFileName="*.exe"` changes the accepted prefix or suffix. It may match an unintended file set instead of the specific pattern required to find names ending in a given extension.
C:The inequality in `ImageFileName!="*.ps1"` rejects the named value rather than selecting it. For the requirement to find names ending in a given extension, reversing this test would exclude the evidence under investigation.
Question 266
Before publishing an Advanced Event Search query, the task is to match a regular-expression start anchor. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- CommandLine=/^cmd\.exe/
- CommandLine="*cmd.exe*"
- CommandLine!=/cmd\.exe/
- CommandLine=/cmd\.exe$/
Explanation
Correct Answer
A:The caret anchors the regex to the start, whereas an end anchor or broad wildcard answers a different question. The stated requirement is to match a regular-expression start anchor; this syntax preserves that meaning in the query stream.
Incorrect Answers
B:The wildcard in `CommandLine="*cmd.exe*"` changes the accepted prefix or suffix. It may match an unintended file set instead of the specific pattern required to match a regular-expression start anchor.
C:The inequality in `CommandLine!=/cmd\.exe/` rejects the named value rather than selecting it. For the requirement to match a regular-expression start anchor, reversing this test would exclude the evidence under investigation.
D:The dollar anchor in `CommandLine=/cmd\.exe$/` requires the search term at the end of CommandLine. A term followed by other arguments would be missed, even though the task requests an anywhere match.
Question 267
While validating query semantics with known sample events, the task is to match an end-anchored path suffix. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- ImageFileName!=/\.dll$/
- ImageFileName=/\.dll$/
- ImageFileName="*.exe"
- ImageFileName=/^\.dll/
Explanation
Correct Answer
B:The dollar anchor requires the .dll substring at the end of the field value. The stated requirement is to match an end-anchored path suffix; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:The inequality in `ImageFileName!=/\.dll$/` rejects the named value rather than selecting it. For the requirement to match an end-anchored path suffix, reversing this test would exclude the evidence under investigation.
C:The wildcard in `ImageFileName="*.exe"` changes the accepted prefix or suffix. It may match an unintended file set instead of the specific pattern required to match an end-anchored path suffix.
D:The caret anchor in `ImageFileName=/^\.dll/` requires the search term at the beginning of CommandLine. The requested substring search must also find occurrences later in the command text.
Question 268
In a review of a proposed Falcon hunting query, the task is to keep only selected columns. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- | select([ComputerName,UserName,FileName])
- | timeChart(series=ComputerName)
- | sort(ComputerName)
- | groupBy([ComputerName,UserName,FileName])
Explanation
Correct Answer
A:select() projects columns without aggregating events into groups. The stated requirement is to keep only selected columns; this syntax preserves that meaning in the query stream.
Incorrect Answers
B:`timeChart()` produces time buckets, which changes the data into an aggregate series. The actual requirement is to keep only selected columns, so temporal visualization alone loses the necessary event-level criterion.
C:`sort()` reorders existing rows without selecting a new cohort or computing the value required to keep only selected columns. The order of rows does not implement that transformation.
D:The `| groupBy([ComputerName,UserName,FileName])` stage groups the events but does not enforce all constraints for keep only selected columns; it may aggregate the wrong dimension or include records omitted by the intended earlier filters.
Question 269
When converting a hunting lead into a CQL expression, the task is to count events per endpoint. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- | sort(ComputerName)
- | groupBy(ComputerName, function=count())
- | select([ComputerName])
- | formatTime(as=when,format="%Y")
Explanation
Correct Answer
B:groupBy() partitions records by the host and count() tallies events in each group. The stated requirement is to count events per endpoint; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:`sort()` reorders existing rows without selecting a new cohort or computing the value required to count events per endpoint. The order of rows does not implement that transformation.
C:`select()` projects the listed columns but does not impose the predicate or grouping needed to count events per endpoint. It can be used after filtering, not instead of the requested operation.
D:Time formatting only changes the display of event timestamps. It does not satisfy the filter, calculation, or aggregation necessary to count events per endpoint.
Question 270
In a CQL investigation of normalized Falcon event data, the task is to sort counts from largest to smallest. Assume the stated fields exist and are parsed. Which expression implements the required CQL operation?
- | groupBy(_count)
- | sort(_count, order=desc)
- | sort(_count, order=asc)
- | select([_count])
Explanation
Correct Answer
B:An explicit descending order ranks larger aggregate counts first. The stated requirement is to sort counts from largest to smallest; this syntax preserves that meaning in the query stream.
Incorrect Answers
A:The `| groupBy(_count)` stage groups the events but does not enforce all constraints for sort counts from largest to smallest; it may aggregate the wrong dimension or include records omitted by the intended earlier filters.
C:`sort()` reorders existing rows without selecting a new cohort or computing the value required to sort counts from largest to smallest. The order of rows does not implement that transformation.
D:`select()` projects the listed columns but does not impose the predicate or grouping needed to sort counts from largest to smallest. It can be used after filtering, not instead of the requested operation.