SPLK-1002 practice question 20 of 35
Which of the following searches will return events contains a tag name Privileged?
Full set: 297 questionsDomain Tags and Event Types
In Splunk, you can search for events associated with a specific tag using the syntax tag=. This search supports both exact matches and wildcards. Option D (tag=Privileged) is a direct, exact match for the tag. Options B (tag=Pri) and C (tag=Priv) use the asterisk () as a wildcard character. The wildcard matches any sequence of characters, so both Pri and Priv will successfully match the tag name "Privileged". Therefore, all three searches will return the desired events.
A. Tag= Priv: This search performs an exact match for a tag named "Priv". It will not match the longer tag name "Privileged".
1. Splunk Enterprise Documentation. Knowledge Manager Manual, Version 9.2.1, "Use tags in searches". This section explicitly states, "You can use wildcards when you search on tags. For example, if you have tag=priv and tag=privileged, you can search for tag=priv to return events that have either tag." This directly validates options B and C.
2. Splunk Enterprise Documentation. Search Manual, Version 9.2.1, "Use wildcards in searches". This page details the use of the asterisk () as a wildcard to match multiple characters in field values, which applies to the tag field. It confirms that a search like host=local matches localhost and localdomain, illustrating the principle used in options B and C.
3. Splunk Enterprise Documentation. Search Manual, Version 9.2.1, "Search for field-value pairs". This section explains the fundamental syntax for searching fields, field="value", which is the basis for the exact match search in option D (tag=Privileged).
Keep practicing
Take the free SPLK-1002 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SPLK-1002 practice questions
- Question 1Which are valid ways to create an event type? (select all that apply)
- Question 2Which of the following statements is true, especially in large environments?
- Question 3Which of the following searches can be used to define an event type?
- Question 4Which of the following statements describes Search workflow actions?
- Question 5What is the relationship between data models and pivots?
- Question 6How does a user display a chart in stack mode?
