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 questions

Domain Filtering and Formatting Results

Answer options
A: is looking for all events that include the search terms: fields AND action AND productld AND status
B: users the table command to improve performance
C: limits the fields are extracted Correct answer
D: returns a table with 3 columns
Correct Answer:
C. limits the fields are extracted
Explanation

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.

Why Incorrect

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.

References

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.

Scroll to Top