SNOW-CAD Working with Data Practice Question
Which TWO statements are true about GlideAggregate?
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
✓
It provides methods like addAggregate and getAggregate.
Options C and D are correct. GlideAggregate extends the GlideRecord class (D) and provides methods like addAggregate and getAggregate (C) for performing aggregate queries on database tables. Option A is incorrect because getRowCount() is a method of GlideRecord, not the primary method for retrieving counts; GlideAggregate uses addAggregate('COUNT', 'field') and getAggregate() instead. Option B is incorrect because GlideAggregate can be used with any field, not just sys_id. Option E is incorrect because GlideAggregate works on a single table per query; to aggregate across multiple tables, you would need separate queries or database views.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It uses getRowCount() to retrieve the count.
Why it's wrong here
Wrong: getRowCount() is for GlideRecord; GlideAggregate uses addAggregate('COUNT') and getAggregate().
- ✗
It can only be used with sys_id fields.
Why it's wrong here
Wrong: It works with any field.
- ✓
It provides methods like addAggregate and getAggregate.
Why this is correct
Correct: These are key methods for aggregation.
- ✓
It extends the GlideRecord class.
Why this is correct
Correct: GlideAggregate is a subclass of GlideRecord.
- ✗
It can aggregate data across multiple tables in a single query.
Why it's wrong here
Wrong: GlideAggregate works on a single table.
Go deeper
Related to this question
About these practice questions
One of 481 original SNOW-CAD practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.