Question 185 of 510
Using Fields and LookupsmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is that OUTPUTNEW fails to populate the field because the event already contains an `app_name` field, even if it is null, and the lookup command with OUTPUTNEW will not overwrite an existing field. This behavior is by design: OUTPUTNEW only writes a lookup value when the target field is absent from the event, making it a conditional write rather than a forced update. On the Splunk SPLK-1002 exam, this concept tests your understanding of the subtle difference between OUTPUT and OUTPUTNEW in the lookup command, a common trap where candidates assume OUTPUTNEW will always add a value. The key memory tip is to think of OUTPUTNEW as "only if new" — if the field already exists, even as an empty string or null, the lookup skips it entirely, so always check your raw events for pre-existing field names before using this clause.

SPLK-1002 Using Fields and Lookups Practice Question

This SPLK-1002 practice question tests your understanding of using fields and lookups. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.

Search: `index=main sourcetype=syslog | eval match_field=src_ip | lookup application_map.csv match_field OUTPUTNEW app_name`

Exhibit shows the lookup definition:

[lookup_application_map]
filename = application_map.csv
match_type = WILDCARD(app_name)

Refer to the exhibit. The search is not returning the `app_name` field as expected. The lookup has many entries with wildcard patterns. What is the most likely issue?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1mediummultiple choice
Read the full NAT/PAT explanation →

Exhibit

Refer to the exhibit.

Search: `index=main sourcetype=syslog | eval match_field=src_ip | lookup application_map.csv match_field OUTPUTNEW app_name`

Exhibit shows the lookup definition:

[lookup_application_map]
filename = application_map.csv
match_type = WILDCARD(app_name)

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

The lookup command uses OUTPUTNEW, but the event already has an app_name field (possibly null) so the lookup does not overwrite it.

Option B is correct because the `OUTPUTNEW` clause in the `lookup` command only writes the field if it does not already exist in the event. If the event already contains an `app_name` field (even with a null value), the lookup will not overwrite it, so the expected value from the wildcard lookup is not returned. This is a common pitfall when using lookups with fields that may already be present in the data.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 lookup definition uses WILDCARD match type, which is incompatible with the lookup command.

    Why it's wrong here

    WILDCARD is a valid match type and works with the lookup command.

  • The lookup command uses OUTPUTNEW, but the event already has an app_name field (possibly null) so the lookup does not overwrite it.

    Why this is correct

    OUTPUTNEW only adds the field if it doesn't exist; if it exists empty, it remains empty.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The eval statement should not rename src_ip; the lookup should directly use src_ip.

    Why it's wrong here

    Eval creates a new field match_field; that is fine.

  • The lookup command needs the option max_matches=1 to work with wildcards.

    Why it's wrong here

    Wildcards do not require max_matches; it's for multiple matches.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Splunk often tests the subtle difference between `OUTPUT` and `OUTPUTNEW` in lookups, and the trap here is that candidates assume `OUTPUTNEW` will always populate a field, not realizing it refuses to overwrite an existing field even if that field is null or empty.

Trap categories for this question

  • Command / output trap

    WILDCARD is a valid match type and works with the lookup command.

Detailed technical explanation

How to think about this question

Under the hood, the `lookup` command with `OUTPUTNEW` checks the event schema before writing; if the target field already exists (even as a null string or empty value), the command skips the output. This behavior is distinct from `OUTPUT`, which always overwrites. In real-world scenarios, data ingestion pipelines often populate fields like `app_name` with null placeholders, causing lookups to silently fail to enrich the event.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SPLK-1002 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SPLK-1002 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SPLK-1002 question test?

Using Fields and Lookups — This question tests Using Fields and Lookups — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The lookup command uses OUTPUTNEW, but the event already has an app_name field (possibly null) so the lookup does not overwrite it. — Option B is correct because the `OUTPUTNEW` clause in the `lookup` command only writes the field if it does not already exist in the event. If the event already contains an `app_name` field (even with a null value), the lookup will not overwrite it, so the expected value from the wildcard lookup is not returned. This is a common pitfall when using lookups with fields that may already be present in the data.

What should I do if I get this SPLK-1002 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SPLK-1002 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-1002 exam.