Question 2 of 500

Quick Answer

The correct answer is that GlideAggregate can be used inside a business rule to compute values, and it extends GlideRecord to perform SQL-like GROUP BY operations. This is because GlideAggregate inherits all GlideRecord methods while adding aggregate functions such as sum, count, avg, min, and max, allowing you to run server-side calculations directly within a business rule without needing a separate script include or scheduled job. On the ServiceNow Certified Application Developer CAD exam, this concept tests your understanding of when to use GlideAggregate versus a standard GlideRecord query—a common trap is trying to use GlideRecord’s getRowCount() for grouped data, which only returns a total count, not aggregated values per group. Remember that GlideAggregate is your go-to tool whenever you need to summarize data across multiple records, like counting open incidents per category or summing costs per department. A helpful memory tip: think of GlideAggregate as “GlideRecord with a calculator”—it does everything GlideRecord does, but adds math.

SNOW-CAD Practice Question: Automating application logic with business rules and scripts

This SNOW-CAD practice question tests your understanding of automating application logic with business rules and scripts. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which TWO statements are true about using GlideAggregate in business rules?

Question 1hardmulti select
Full question →

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

GlideAggregate can be used to perform SQL-like GROUP BY operations.

Option B is correct because GlideAggregate extends GlideRecord and allows performing SQL-like GROUP BY operations on database queries, enabling aggregation of data such as sums, counts, averages, etc. Option C is correct because GlideAggregate can be instantiated and used within a business rule to compute aggregated values from the database, which is a common pattern for server-side calculations.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • GlideAggregate allows adding non-aggregated fields to the result set using addField().

    Why it's wrong here

    addField() is used to specify fields to group by, not to add non-aggregated fields; all selected fields must be in GROUP BY or aggregate function.

  • GlideAggregate can be used to perform SQL-like GROUP BY operations.

    Why this is correct

    GlideAggregate is designed to perform grouping and aggregate functions like count, sum, min, max.

    Related concept

    Read the scenario before looking for a memorised answer.

  • GlideAggregate can be used inside a business rule to compute values.

    Why this is correct

    Business rules can use GlideAggregate to query and aggregate data from the database.

    Related concept

    Read the scenario before looking for a memorised answer.

  • GlideAggregate automatically orders the results by the aggregated field.

    Why it's wrong here

    GlideAggregate does not automatically order results; you must use addOrderBy() to specify ordering.

  • GlideAggregate can only be used in client scripts.

    Why it's wrong here

    GlideAggregate is a server-side API and cannot be used in client scripts.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse GlideAggregate's addField() with GlideRecord's addField() for retrieving field values, not realizing that in GlideAggregate, addField() is used for grouping and does not return raw non-aggregated data.

Detailed technical explanation

How to think about this question

Under the hood, GlideAggregate translates method calls like addAggregate('COUNT', 'field') into SQL aggregate functions combined with GROUP BY clauses. A subtle behavior is that when you use addQuery() to filter records, the aggregation is applied only to the filtered set, which can significantly impact performance on large tables. In real-world scenarios, GlideAggregate is often used in business rules to compute totals or counts for validation or to update related records efficiently without looping through individual records.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SNOW-CAD practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SNOW-CAD practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SNOW-CAD question test?

Automating application logic with business rules and scripts — This question tests Automating application logic with business rules and scripts — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: GlideAggregate can be used to perform SQL-like GROUP BY operations. — Option B is correct because GlideAggregate extends GlideRecord and allows performing SQL-like GROUP BY operations on database queries, enabling aggregation of data such as sums, counts, averages, etc. Option C is correct because GlideAggregate can be instantiated and used within a business rule to compute aggregated values from the database, which is a common pattern for server-side calculations.

What should I do if I get this SNOW-CAD question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.