SNOW-CAD Integrating and managing application data Practice Question
A large enterprise uses ServiceNow for IT service management. The company has recently implemented a custom integration that pulls incident data from an external monitoring system via REST every 5 minutes. The integration runs as a scheduled job that creates new incidents and updates existing ones. Over the past week, users have reported that the system becomes sluggish during peak hours (9-11 AM). The performance team identifies that the integration job is causing high database contention. The job currently queries the incident table for existing records using a condition on the 'source' field and then updates or inserts records in a loop. Each job run processes around 500 records. The incident table has several million records. The developer is asked to optimize the integration. What should the developer do first?
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
✓
Add an index on the 'source' field in the incident table.
The query on the 'source' field without an index is causing full table scans, leading to high database contention. Adding an index on the 'source' field will drastically reduce the cost of looking up existing records, improving performance significantly. The other options are either less effective or address secondary concerns.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the scheduled job interval to every 10 minutes to reduce frequency.
Why it's wrong here
Reducing frequency may help during peak hours but does not address the root cause of slow queries; contention will still occur when the job runs.
- ✗
Modify the scheduled job to use GlideAggregate to check for existing records before update.
Why it's wrong here
GlideAggregate is for aggregation queries, not for record retrieval; it does not solve the indexing issue.
- ✓
Add an index on the 'source' field in the incident table.
Why this is correct
Correct: Adding an index on the 'source' field will optimize the query and reduce contention.
- ✗
Change the integration to use batch processing with a database view.
Why it's wrong here
Database views aggregate data from multiple tables for reporting purposes and do not resolve the high contention caused by row-level locking during iterative updates. This approach fails to address the primary bottleneck of sequential record processing in a loop. Batching via Import Sets or using sys_id lookups would reduce database overhead instead. Using views is effective when you need to join disparate tables for read-only dashboards, but it does not facilitate high-frequency data ingestion.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SNOW-CAD question from scratch — 481 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 →
Same concept, more angles
1 more way this is tested on SNOW-CAD
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A customer reports that a scheduled data synchronization job takes longer than expected. The job queries the 'cmdb_ci' table and updates records based on an external source. The DBA suggests adding an index on the 'source' field. After adding the index, performance does not improve. What is the most likely reason?
hard- A.The index was not created correctly.
- B.The job runs during peak hours.
- ✓ C.The job uses a condition that filters on a different field.
- D.The database is replicated to a secondary site.
Why C: Indexes only improve performance when the query condition uses the indexed field. If the job filters on a different field, the index on 'source' will not be used.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SNOW-CAD practice question is part of Courseiva's free ServiceNow 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 SNOW-CAD exam.