Courseiva

SPLK-1002 · topic practice

Macros, Saved Searches and CIM practice questions

Practise Splunk Core Certified Power User SPLK-1003 Macros, Saved Searches and CIM practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Macros, Saved Searches and CIM

What the exam tests

What to know about Macros, Saved Searches and CIM

Macros, Saved Searches and CIM questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Macros, Saved Searches and CIM exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Macros, Saved Searches and CIM questions

20 questions · select your answer, then reveal the explanation

An admin created a macro `myfilter(host)` with definition: `host=$host$ | stats count`. When calling `myfilter(webserver)`, the search returns no results. What is the most likely cause?

What is the most likely cause of the error?

Exhibit

Refer to the exhibit.
The following macro definition is saved in a Splunk environment:
```
[name="my_macro"]
args = host, index, sourcetype
definition = search index=$index$ host=$host$ sourcetype=$sourcetype$
```
When a user runs `| `my_macro(index=main host=web01 sourcetype=access_combined)``, they receive the error: "Error in 'search' command: Unable to parse the search: Expected '(', found end of command."

Which TWO of the following are valid considerations when defining macros in Splunk?

An administrator configures a saved search that uses a macro to generate a summary index every hour. The macro includes a time range argument with default value `earliest=-1h@h latest=@h`. The saved search does not pass any time range argument, so the default is used. After a few days, the summary index is missing data for the last hour of each day. What is the most likely cause?

Which THREE of the following are valid ways to define macro arguments in Splunk? (Select exactly 2.)

An engineer wants to create a saved search that runs every hour and searches against 90 days of data. To optimize performance, they should...

Refer to the exhibit. An analyst executes the following search: `| filter_status(status_code=500)`. What will be the result?

Exhibit

[filter_status]
args = status_code
definition = search index=web status=$arg1$ | stats count by status

A security analyst wants to create a macro that extracts IP addresses from a field named `src_ip` and returns a count of unique IPs per source. Which macro definition accomplishes this?

A team regularly runs a saved search that joins two large indexes. Performance is poor. Which design change would MOST improve query performance?

Which TWO of the following are valid uses of the Common Information Model (CIM) in Splunk?

Which THREE of the following are best practices for creating saved searches?

Which TWO of the following are valid ways to reference a macro in a search?

A Splunk administrator notices that a scheduled saved search `Daily Summary` fails every day at 2:00 AM with the error "Search job expired due to inactivity." The search runs against a large index and takes about 30 minutes to complete. What is the most likely cause?

A security analyst wants to create a saved search that triggers an alert when more than 100 failed login attempts occur within a 5-minute window from the same source IP. The search should run every 5 minutes and alert only once per window. Which setting should be configured?

A Splunk admin wants to create a macro that extracts the username from a log line that always starts with 'User: <username>'. The macro should be reusable across searches. Which definition is correct?

An organization uses Splunk CIM to normalize data from multiple sources. They have a custom data source that logs firewall events with a field 'action' containing values 'accept', 'deny', 'drop'. They want to map this to the CIM field 'action'. Which configuration is required?

A Splunk admin notices that a saved search scheduled to run every 10 minutes is consistently taking 15 minutes to complete, causing overlapping runs. The search aggregates data across multiple indexes and uses a large time window. What is the best way to prevent overlap and ensure the search completes?

Which TWO of the following are valid ways to create a macro in Splunk? (choose two)

Which THREE of the following are components of the Splunk Common Information Model (CIM)? (choose three)

A user wants to create a macro that calculates the average response time for web requests. The macro should accept a field name as an argument and return the average. Which syntax is correct for defining the macro?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Macros, Saved Searches and CIM sessions

Start a Macros, Saved Searches and CIM only practice session

Every question in these sessions is drawn from the Macros, Saved Searches and CIM domain — nothing else.

Related practice questions

Related SPLK-1002 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the SPLK-1002 exam test about Macros, Saved Searches and CIM?
Macros, Saved Searches and CIM questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Macros, Saved Searches and CIM questions in a focused session?
Yes — the session launcher on this page draws every question from the Macros, Saved Searches and CIM domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other SPLK-1002 topics?
Use the topic links above to move to related areas, or go back to the SPLK-1002 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the SPLK-1002 exam covers. They are not copied from any real exam or dump site.