Splunk Core Certified Power User — Question 141
Ben created a macro named airport_code_translator(2). His coworker, Alice, wants to use the macro to find the name of a nearby airport.
Which of the following search strings will return the results that Alice needs?
Answer options
- A. "airport_code_translator(LAX, English)"
- B. 'airport_code_translator(LAX, English)'
- C. $airport_code_translator(LAX, English)$
- D. airport_code_translator(LAX, English)
Correct answer: B
Explanation
The correct answer is B because the use of single quotes around the macro call signifies that it should be treated as a string. The other options either lack the necessary quotation marks or use incorrect formatting that would not yield the intended results.