Courseiva
Macros, Saved Searches and CIMmediumMultiple ChoiceObjective-mapped

SPLK-1002 Macros, Saved Searches and CIM Practice Question

A user reports that a macro named `my_macro` is not expanding in a search. The macro is defined in a private app called 'App_A'. The user is running the search in a different app called 'App_B'. What is the most likely cause of the issue?

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 macro is not shared to the global context.

Macros are confined to the app where they are defined unless they are shared to the global context. Since my_macro is defined in App_A but the user is searching from App_B, and the macro is not shared globally, it will not expand in App_B. Thus, option D is correct. Option A is incorrect because a syntax error would typically produce a specific error message, not just fail to expand. Option B is incorrect because permission to view the macro does not affect cross-app expansion; sharing to global context is required. Option C is incorrect because Splunk macro names are case-insensitive.

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 has a syntax error that prevents expansion.

    Why it's wrong here

    A syntax error would cause a different error message, not simply not expanding.

  • The user does not have permission to view the macro.

    Why it's wrong here

    Permissions affect who can use the macro, but the app context is the primary barrier if not shared.

  • The macro name is case-sensitive and the user used wrong case.

    Why it's wrong here

    Macro names are case-insensitive in Splunk.

  • The macro is not shared to the global context.

    Why this is correct

    Macros are local to the app unless explicitly shared globally.

About these practice questions

This SPLK-1002 question is part of Courseiva's 475-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.