XSOAR-Engineer Use Case Planning And Development Practice Question
An XSOAR engineer is planning a custom integration fetch-incidents mechanism using REST API polling. The target API uses cursor-based pagination with timestamp markers. How must the integration code store the pagination state between polling intervals to ensure no incidents are missed?
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
✓
Using demisto.getLastRun() and demisto.setLastRun() to persist cursor timestamps between execution cycles.
Integrations in XSOAR store pagination markers and last-run timestamps using `demisto.getLastRun()` and `demisto.setLastRun()`.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Using demisto.getLastRun() and demisto.setLastRun() to persist cursor timestamps between execution cycles.
Why this is correct
getLastRun and setLastRun persist state across integration polling executions in the XSOAR database.
- ✗
Writing the cursor value to a global environment variable in the operating system shell.
Why it's wrong here
OS environment variables are ephemeral across integration container restarts and do not persist reliably.
- ✗
Storing the cursor in the browser local storage of the administrator who configured the instance.
Why it's wrong here
Browser local storage is inaccessible to backend integration execution containers running API polls.
- ✗
Hardcoding the timestamp directly into the integration YAML source code.
Why it's wrong here
Hardcoding timestamps prevents dynamic updating as new incidents are fetched over time.
About these practice questions
This XSOAR-Engineer question is part of Courseiva's 219-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 →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Palo Alto Networks exam blueprint
This XSOAR-Engineer practice question is part of Courseiva's free Palo Alto Networks 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 XSOAR-Engineer exam.