SPLK-1001 Basic Searching and Transforming Commands Practice Question
A search uses `eval memory_MB = memory_bytes / 1024 / 1024`. The field memory_bytes contains values like '2,048,000'. The eval results memory_MB is often null. What is the most likely cause?
⚠ Common exam trap
Splunk often tests the misconception that Splunk automatically handles commas in numeric fields, leading candidates to overlook the need to explicitly remove non-numeric characters before arithmetic operations.
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 field is actually a string with commas.
The `memory_bytes` field contains values like '2,048,000', which include commas. In Splunk, fields with commas are treated as strings, not numeric values. When `eval` attempts arithmetic division on a string field, it returns null because the operation cannot be performed on non-numeric data. The commas must be removed (e.g., using `replace` or `tonumber`) before the field can be used in calculations.
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 eval command has a syntax error.
Why it's wrong here
The eval syntax is correct.
- ✓
The field is actually a string with commas.
Why this is correct
Commas cause the string to be non-numeric, leading to null results in division.
- ✗
The field needs to be converted first.
Why it's wrong here
Converting to number after removing commas would solve it, but the immediate cause is the comma.
- ✗
The division operator does not work on string fields.
Why it's wrong here
While true, the core issue is the commas formatting.
Go deeper
Related to this question
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 →
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.