The correct answer is that the command creates a lookup definition named my_lookup using the file my_lookup.csv. This is because the `| inputlookup my_lookup.csv` command in Splunk reads the specified CSV file from the lookups directory and automatically registers it as a static lookup table, making it available for use in searches as a lookup definition. On the Splunk Core Certified User SPLK-1002 exam, this question tests your understanding of how Splunk handles static CSV files versus dynamic lookups or data inputs; a common trap is confusing `inputlookup` with `inputcsv` or assuming it configures continuous monitoring. Remember, `inputlookup` is for importing a one-time snapshot of data from a file, not for streaming or indexing new events. A helpful memory tip: think of "input" as bringing the file into your search environment as a ready-to-use lookup, not as a data input source.
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.
Exhibit
> splunk add lookup-table my_lookup my_lookup.csv
Refer to the exhibit. An administrator runs this command. What is the effect?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Creates a lookup definition named my_lookup using the file my_lookup.csv.
The `| inputlookup my_lookup.csv` command in Splunk reads the contents of a CSV file and creates a lookup definition named `my_lookup` that can be used in searches. This is the standard behavior for importing a static CSV file as a lookup table, not for configuring a continuous data input or monitoring.
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.
✗
Imports the file into Splunk as a data input.
Why it's wrong here
Data inputs are for ingesting logs, not lookups.
✓
Creates a lookup definition named my_lookup using the file my_lookup.csv.
Why this is correct
Adds the lookup table definition.
Related concept
Read the scenario before looking for a memorised answer.
✗
Creates a lookup definition and automatically populates it with the file contents.
Why it's wrong here
The command only registers the file; data is read at search time.
✗
Adds the file to the monitor directory.
Why it's wrong here
Monitor directory is for inputs, not lookups.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse `inputlookup` with data input commands like `add data` or `monitor`, thinking it creates a continuous data source rather than a one-time lookup of a static file.
Trap categories for this question
Command / output trap
The command only registers the file; data is read at search time.
Detailed technical explanation
How to think about this question
Under the hood, `inputlookup` reads the specified CSV file from the `$SPLUNK_HOME/etc/apps/<app>/lookups/` directory and returns its contents as search results. The lookup definition must be defined in `transforms.conf` and `props.conf` for persistent use; otherwise, the command only works for the current search session. In real-world scenarios, this is used for ad-hoc lookups like enriching events with static reference data (e.g., IP-to-location mappings) without creating a permanent lookup.
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 — 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: Creates a lookup definition named my_lookup using the file my_lookup.csv. — The `| inputlookup my_lookup.csv` command in Splunk reads the contents of a CSV file and creates a lookup definition named `my_lookup` that can be used in searches. This is the standard behavior for importing a static CSV file as a lookup table, not for configuring a continuous data input or monitoring.
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.
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 →
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.
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.