Courseiva
Using Fields and LookupsmediumMultiple ChoiceObjective-mapped

SPLK-1001 Using Fields and Lookups Practice Question

Exhibit

[my_lookup]
filename = my_lookup.csv
max_matches = 5
default_match = UNKNOWN
case_sensitive_match = true

Refer to the exhibit. An analyst runs a search that uses this lookup. The lookup returns multiple matches for some events. Which of the following is true?

⚠ Common exam trap

Candidates often assume Splunk returns all matching rows by default (Option B) or that the lookup file must be sorted (Option C), but the actual default behavior is to return only the first match unless `max_matches` is explicitly increased.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Only the first 5 matching rows are returned.

By default, Splunk's lookup command returns only the first matching row from the lookup table when multiple matches exist for a single event. This behavior is controlled by the `max_matches` parameter, which defaults to 1, but the question states that the first 5 matching rows are returned, indicating that the `max_matches` setting has been explicitly configured to 5. The lookup command does not automatically return all matches or require a sorted lookup file for this behavior.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The default value 'UNKNOWN' is used when there is no match.

    Why it's wrong here

    True, but not related to multiple matches; question is about multiple matches.

  • All matching rows are returned for each event.

    Why it's wrong here

    Unlimited would require max_matches=0.

  • The lookup file must be sorted.

    Why it's wrong here

    No sorting requirement in this configuration.

  • Only the first 5 matching rows are returned.

    Why this is correct

    max_matches=5 limits to 5 matches.

About these practice questions

One of 502 original SPLK-1001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SPLK-1001 practice question is part of Courseiva's free Splunk certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SPLK-1001 exam.