ExamGecko
Question list
Search
Search

Question 163 - SPLK-1002 discussion

Report
Export

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

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

Which of the following will return results?

A.
'weekly sales (3)'
Answers
A.
'weekly sales (3)'
B.
'weekly_sales($3.995, $108)'
Answers
B.
'weekly_sales($3.995, $108)'
C.
'weekly_sales (3.99, 10)'
Answers
C.
'weekly_sales (3.99, 10)'
D.
'weekly sales (3.99, 10)'
Answers
D.
'weekly sales (3.99, 10)'
Suggested answer: C

Explanation:

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.

asked 23/09/2024
Van Raoul Datuin
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first