- A
`| lookup`
Why wrong: Enriches events.
- B
`| inputlookup`
Why wrong: Reads from a lookup.
- C
`| fields`
Why wrong: Does not create lookups.
- D
`| outputlookup`
Creates or appends to a lookup.
Quick Answer
The answer is `| outputlookup`. This command is correct because it takes the results of a Splunk search and writes them directly into a lookup table file, either creating a new lookup or overwriting an existing one. When you need to import an external CSV file into a lookup table for the first time, you first bring that CSV data into Splunk—for example, by using `| inputcsv` to read the file or by uploading it as a source—and then pipe those results into `| outputlookup` to define and populate the lookup table that Splunk can reference in future searches. On the Splunk Core Certified User SPLK-1002 exam, this question tests your understanding of how to create and manage lookup tables from search results, often appearing alongside commands like `| lookup` or `| inputlookup`. A common trap is confusing `| outputlookup` with `| inputlookup`, which reads from a lookup table rather than writing to one. Remember the memory tip: "output goes out to the file, input comes in from the file."
SPLK-1002 Using Fields and Lookups Practice Question
This SPLK-1002 practice question tests your understanding of using fields and lookups. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.
Which command is used to import an external CSV file into a Splunk lookup table for the first time?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"first"Why it matters: Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
Clue:
"which command"Why it matters: Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.
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
`| outputlookup`
The `| outputlookup` command is used to create or overwrite a lookup table file in Splunk from search results. When importing an external CSV file into a Splunk lookup table for the first time, you would first ingest the CSV data (e.g., via `| inputcsv` or by uploading the file), then use `| outputlookup` to write that data into a lookup definition that Splunk can reference.
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.
- ✗
`| lookup`
Why it's wrong here
Enriches events.
- ✗
`| inputlookup`
Why it's wrong here
Reads from a lookup.
- ✗
`| fields`
Why it's wrong here
Does not create lookups.
- ✓
`| outputlookup`
Why this is correct
Creates or appends to a lookup.
Clue confirmation
The clue words "first", "which command" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Splunk often tests the distinction between `| inputlookup` (reading from a lookup) and `| outputlookup` (writing to a lookup), and candidates frequently confuse them because both involve lookup tables but serve opposite purposes.
Detailed technical explanation
How to think about this question
Under the hood, `| outputlookup` writes search results to a CSV or KV store file in the `lookups` directory of the app context, and automatically creates or updates the associated `transforms.conf` stanza if the lookup does not exist. A subtle behavior is that `| outputlookup` with the `append=true` option can add rows to an existing lookup without overwriting, which is useful for incremental updates. In a real-world scenario, you might use `| outputlookup` to periodically export a dynamically generated list of IP addresses from a search into a lookup for use in correlation searches.
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 practitioner preparing for the SPLK-1002 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
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.
- →
Using Fields and Lookups — study guide chapter
Learn the concepts, then practise the questions
- →
Using Fields and Lookups practice questions
Targeted practice on this topic area only
- →
All SPLK-1002 questions
510 questions across all exam domains
- →
Splunk Core Certified User SPLK-1002 study guide
Full concept coverage aligned to exam objectives
- →
SPLK-1002 practice test guide
How to use practice tests most effectively before exam day
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.
Splunk Basics and Interface Navigation practice questions
Practise SPLK-1002 questions linked to Splunk Basics and Interface Navigation.
Basic Searching and Transforming Commands practice questions
Practise SPLK-1002 questions linked to Basic Searching and Transforming Commands.
Using Fields and Lookups practice questions
Practise SPLK-1002 questions linked to Using Fields and Lookups.
Creating Reports, Dashboards and Visualizations practice questions
Practise SPLK-1002 questions linked to Creating Reports, Dashboards and Visualizations.
Data Models and Best Practices practice questions
Practise SPLK-1002 questions linked to Data Models and Best Practices.
SPLK-1002 fundamentals practice questions
Practise SPLK-1002 questions linked to SPLK-1002 fundamentals.
SPLK-1002 scenario practice questions
Practise SPLK-1002 questions linked to SPLK-1002 scenario.
SPLK-1002 troubleshooting practice questions
Practise SPLK-1002 questions linked to SPLK-1002 troubleshooting.
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: `| outputlookup` — The `| outputlookup` command is used to create or overwrite a lookup table file in Splunk from search results. When importing an external CSV file into a Splunk lookup table for the first time, you would first ingest the CSV data (e.g., via `| inputcsv` or by uploading the file), then use `| outputlookup` to write that data into a lookup definition that Splunk can reference.
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: "first", "which command". Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
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 →
Same concept, more angles
1 more ways this is tested on SPLK-1002
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which command is used to export the current search results to a CSV file that can be used as a lookup table?
easy- A.outputcsv
- ✓ B.outputlookup
- C.inputlookup
- D.lookup
Why B: The `outputlookup` command is used to export the current search results to a CSV file that can be used as a lookup table. It writes the results to a lookup definition in Splunk, making the data available for subsequent searches via `inputlookup` or automatic lookup configurations.
Keep practising
More SPLK-1002 practice questions
- During a data model acceleration build, the following error appears in splunkd.log: 'Data model acceleration: not enough…
- Which TWO are best practices for creating data models in Splunk? (Choose two.)
- A user reports that a data model acceleration is consuming excessive disk space on the indexer. The data model has a sum…
- A security analyst wants to investigate a suspicious IP address that appeared in multiple log sources. Which Splunk feat…
- A search includes the command '| stats dc(user) by host'. What does this command return?
- A large e-commerce company uses Splunk to monitor their web application. The operations team has noticed that the search…
Last reviewed: Jun 30, 2026
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.
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.
Sign in to join the discussion.