Splunk Core Certified Power User — Question 180
How is a variable for a macro defined?
Answer options
- A. Place the variable name inside of percentage signs: %variable name%.
- B. Place the variable name inside of curly braces: {variable name}.
- C. Place the variable name inside of dollar signs: $variable name$.
- D. Place the variable name inside of asterisks: *variable name*.
Correct answer: C
Explanation
The correct answer is C because in macro definitions, variables are typically encapsulated with dollar signs to differentiate them from regular text. The other options use incorrect symbols that do not conform to standard macro variable syntax.