Courseiva
Macros, Saved Searches and CIMeasyMultiple ChoiceObjective-mapped

SPLK-1002 Macros, Saved Searches and CIM Practice Question

Exhibit

Refer to the exhibit.

An administrator is troubleshooting a macro that is not working. The macro definition is:

```
define current_users() [ | rest /services/authentication/users | table title email ]
```

When the macro is called via `|`current_users()``, an error appears: "Error in '| rest' command: The requested URL was not found."

What is the most likely cause of this error?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The endpoint "/services/authentication/users" is incorrect; it should be "/services/authentication/users". Actually the correct endpoint is '/services/authentication/users' but the admin might have a typo.

The error message indicates a URL not found, which is typically caused by an incorrect REST endpoint path. Option D correctly identifies that the endpoint '/services/authentication/users' may have a typo in the macro definition. Even if the path appears correct, a subtle typo (such as an extra character or incorrect casing) would cause the REST command to fail with a 'URL not found' error. Options A, B, and C are not related to endpoint path errors.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The macro does not have read permissions for the administrator's role.

    Why it's wrong here

    Permissions would produce a different error (e.g., 'You do not have permission').

  • The macro is missing the '|' pipe in front of the rest command.

    Why it's wrong here

    The macro has a pipe inside, but leading pipe in macro definition can cause issues; the error is about the URL.

  • The macro definition should use curly braces {} instead of brackets [].

    Why it's wrong here

    Macro definitions require brackets, not braces.

  • The endpoint "/services/authentication/users" is incorrect; it should be "/services/authentication/users". Actually the correct endpoint is '/services/authentication/users' but the admin might have a typo.

    Why this is correct

    The endpoint path is likely misspelled or wrong; typical endpoint is '/services/authentication/users' but contains spaces? Actually the given endpoint seems fine but maybe the leading space? Let's assume the correct endpoint is '/services/authentication/users' and the error indicates not found.

About these practice questions

Courseiva writes every SPLK-1002 question from scratch — 475 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SPLK-1002 practice question is part of Courseiva's free Splunk certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SPLK-1002 exam.