exam questions

Exam SPLK-1002 All Questions

View all questions & answers for the SPLK-1002 exam

Exam SPLK-1002 topic 1 question 26 discussion

Actual exam question from Splunk's SPLK-1002
Question #: 26
Topic #: 1
[All SPLK-1002 Questions]

Given the macro definition below, what should be entered into the Name and Arguments fields to correctly configure the macro?

  • A. The macro name is sessiontracker and the arguments are action, JESSIONID.
  • B. The macro name is sessiontracker(2) and the arguments are action, JESSIONID.
  • C. The macro name is sessiontracker and the arguments are $action$, $JESSIONID$.
  • D. The macro name is sessiontracker(2) and the Arguments are $action$, $JESSIONID$.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
emlch
Highly Voted 10 months, 3 weeks ago
Selected Answer: B
B is the correct answer. If your macro have arguments you must specify them in parenthesis after the macro name (like <macroname>(<numberofarguments>)) When you specify the arguments you have to tell splunk what are the arguments name (without the $).
upvoted 6 times
...
MxQ3
Most Recent 10 months, 2 weeks ago
B is correct.
upvoted 4 times
...
ravindraz
1 year, 11 months ago
B is the correct answer, see p213 of f2
upvoted 2 times
...
sosevo2147
2 years, 1 month ago
B Is correct Answer
upvoted 2 times
Atavius
2 years ago
And why it is not A? I mean there is nothing about macro name in that screen.
upvoted 1 times
Atavius
2 years ago
Nevermind I just realized that it is number of arguments.
upvoted 2 times
...
...
...
Lalithadevi
2 years, 1 month ago
B Is correct Answer
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago