Splunk Core Certified Power User — Question 93

The macro weekly_sales(2) contains the search string:

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

Which of the following will return results?

Answer options

Correct answer: C

Explanation

The correct answer is C because it directly provides numeric values for the parameters Price and AmountSold as required by the macro. Options A and B are formatted incorrectly due to additional quotes or dollar signs around the numeric values. Option D does not provide enough parameters for the macro to function properly.