SPLK-1002 Macros, Saved Searches and CIM Practice Question
An analyst creates a macro that uses `| inputlookup` to validate a macro argument. Which statement about macro validation is true?
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 macro can use `| inputlookup` to define a list of valid values for an argument.
Macros can use `| inputlookup` within their definition to validate arguments by checking against a lookup table. Option A is incorrect because macro validation is possible using lookups. Option C is incorrect because validation is implemented within the macro, not in the saved search. Option D is incorrect because macros do not support regex validation; they rely on lookups for argument validation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Macro validation is not possible; arguments are always trusted.
Why it's wrong here
Validation is possible via lookups or inline conditions.
- ✓
The macro can use `| inputlookup` to define a list of valid values for an argument.
Why this is correct
This is a common pattern to ensure argument values are valid.
- ✗
Macro validation must be implemented in the saved search that uses the macro.
Why it's wrong here
Validation can be part of the macro itself.
- ✗
Macro arguments can be validated using regular expressions inside the definition.
Why it's wrong here
Splunk does not support regex validation directly in macro definitions.
Go deeper
Related to this question
About these practice questions
This SPLK-1002 question is part of Courseiva's 475-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-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.