nerdexam
Splunk

SPLK-1001 · Question #201

What syntax is used to link key/value pairs in search strings?

The correct answer is D. Relational operators such as =, <, or >. Relational operators like =, <, and > are used to link key/value pairs in search strings because they define the relationship between a field (key) and its value - for example, age=25 or date>2024-01-01. Parentheses (A) are used for grouping or precedence, not for linking…

Question

What syntax is used to link key/value pairs in search strings?

Options

  • AParentheses
  • B@ or # symbols
  • CQuotation marks
  • DRelational operators such as =, <, or >

How the community answered

(49 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    10% (5)
  • D
    80% (39)

Explanation

Relational operators like =, <, and > are used to link key/value pairs in search strings because they define the relationship between a field (key) and its value - for example, age=25 or date>2024-01-01. Parentheses (A) are used for grouping or precedence, not for linking pairs. The @ and # symbols (B) are used in contexts like mentions or tags, not key/value binding. Quotation marks (C) are used to treat a phrase as a single literal token, not to associate a key with a value.

Memory tip: Think of key/value pairs like a math equation - you always need an operator (=, <, >) to "connect" the two sides, just as in x = 5.

Community Discussion

No community discussion yet for this question.

Full SPLK-1001 Practice