Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Splunk Exam SPLK-1002 Topic 4 Question 113 Discussion

Actual exam question for Splunk's SPLK-1002 exam
Question #: 113
Topic #: 4
[All SPLK-1002 Questions]

The macro weekly sales (2) contains the search string:

index=games | eval ProductSales = $Price$ * $AmountSold$

Which of the following will return results?

Show Suggested Answer Hide Answer
Suggested Answer: C

To use a search macro in a search string, you need to place a back tick character (`) before and after the macro name1. You also need to use the same number of arguments as defined in the macro2. The macro weekly sales (2) has two arguments: Price and AmountSold. Therefore, you need to provide two values for these arguments when you call the macro.

The option A is incorrect because it uses parentheses instead of back ticks around the macro name. The option B is incorrect because it uses underscores instead of spaces in the macro name. The option D is incorrect because it uses spaces instead of commas to separate the argument values.


Contribute your Thoughts:

Theola
4 days ago
I'm going with Option D. It's the most straightforward and easy to understand.
upvoted 0 times
...
Frederica
8 days ago
I disagree, I believe the answer is D.
upvoted 0 times
...
Latrice
10 days ago
Option C looks good to me. It has the correct syntax for the search string.
upvoted 0 times
...
Rebbeca
15 days ago
I think the answer is C.
upvoted 0 times
...

Save Cancel