SPLK-1002 practice question 33 of 35
Which of the following statements are true for this search? (Select all that apply.) SEARCH: sourcetype=access* |fields action productld status
Full set: 297 questionsDomain Filtering and Formatting Results
The search query uses the fields command to control which fields are retained in the search results. The syntax | fields action productld status instructs Splunk to keep only the action, productld, and status fields, in addition to default internal fields (like time and raw). This command limits the fields that are passed to subsequent commands in the pipeline and displayed in the final output. Using the fields command early in a search is a best practice for optimizing performance by reducing the amount of data processed.
A. The search criteria are defined before the pipe (|). The search looks for events where sourcetype starts with access; the terms after the pipe are commands, not search terms.
B. The command used is fields, not table. While both can be used to select fields for display, they are distinct commands with different behaviors and performance implications.
D. The fields command retains the specified fields plus several default internal fields such as time, raw, host, source, and sourcetype. Therefore, the result will contain more than three columns.
1. Splunk Enterprise Documentation
Search Manual
"fields command":
Section: "Description"
Content: "Use the fields command to include or exclude fields from your search results... By default
the internal fields raw and time are included in the output." This supports the correctness of option C and the incorrectness of option D.
2. Splunk Enterprise Documentation
Search Manual
"Search best practices":
Section: "Write efficient searches" -> "Filter as early as possible"
Content: "Use the fields command to remove fields that you don't need as early as possible in your search." This confirms that the fields command is used to limit fields for performance reasons
aligning with the explanation for option C.
3. Splunk Enterprise Documentation
Search Manual
"About search commands":
Section: "Types of commands"
Content: This section explains the structure of a search
clarifying that terms before the first pipe are the base search criteria
while terms after are commands that operate on the results. This directly refutes the logic in option A.
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?
