SPLK-1001 Using Fields and Lookups Practice Question
An analyst runs a search and notices that a field `status_code` contains values like '200', '404', '500'. They want to categorize these as 'Success' or 'Error'. Which approach is most efficient?
⚠ Common exam trap
Splunk often tests the distinction between `eval` with `case` (inline transformation) and lookup-based approaches, trapping candidates who over-engineer a solution by choosing a lookup when a simple `eval` is more efficient and appropriate.
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
✓
Use eval with case function to map status codes to categories directly in the search.
Using `eval` with `case` is the most efficient approach for a simple, static mapping of status codes to categories directly within the search pipeline. It avoids the overhead of disk I/O and lookup table management, and it executes entirely in memory on the search head or indexer, making it ideal for small, hardcoded mappings.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use the csv file as a lookup and inputlookup to filter.
Why it's wrong here
Inputlookup doesn't join on events; it returns raw lookup data.
- ✓
Use eval with case function to map status codes to categories directly in the search.
Why this is correct
Eval case is efficient and easy to write for simple mappings.
- ✗
Create a lookup table with status codes and categories, then use the lookup command.
Why it's wrong here
Lookup is useful for large or dynamic mappings, but for a few codes this adds overhead.
- ✗
Use the rename command to change field values.
Why it's wrong here
Rename only changes field names, not values.
Go deeper
Related to this question
About these practice questions
This SPLK-1001 question is part of Courseiva's 502-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.