Splunk Core Certified Power User — Question 94
What is the correct format for naming a macro with multiple arguments?
Answer options
- A. monthly_sales[3]
- B. monthly_sales(3)
- C. monthly_sales(argument 1, argument 2, argument 3)
- D. monthly_sales[argument 1, argument 2, argument 3]
Correct answer: B
Explanation
The correct answer is B because macros that accept multiple arguments must use parentheses to enclose the arguments. Options A and D incorrectly use square brackets, which are not valid for this context, and option C does not follow the correct format for a single argument macro.