nerdexam
ServiceNow

CAD · Question #184

What is the function of the GlideRecord class in ServiceNow?

The correct answer is A. It is used to query the database, update records, and create new records. The GlideRecord class is a fundamental server-side API in ServiceNow used to interact with the database, allowing scripts to query, insert, update, and delete records on any table.

Submitted by salim_om· Apr 18, 2026Designing and Creating an Application

Question

What is the function of the GlideRecord class in ServiceNow?

Options

  • AIt is used to query the database, update records, and create new records.
  • BIt manages the lifecycle of ServiceNow incidents.
  • CIt runs scheduled jobs to perform system maintenance.
  • DIt serves as the primary user authentication tool.

How the community answered

(21 responses)
  • A
    90% (19)
  • B
    5% (1)
  • C
    5% (1)

Why each option

The GlideRecord class is a fundamental server-side API in ServiceNow used to interact with the database, allowing scripts to query, insert, update, and delete records on any table.

AIt is used to query the database, update records, and create new records.Correct

The GlideRecord class provides an object-oriented API for interacting with the ServiceNow database, enabling server-side scripts to perform CRUD (Create, Read, Update, Delete) operations on records in tables.

BIt manages the lifecycle of ServiceNow incidents.

While GlideRecord can be used to manipulate incident records, its function is not limited to managing the incident lifecycle; it's a generic database interaction class.

CIt runs scheduled jobs to perform system maintenance.

Scheduled jobs are managed by the `Scheduled Job` module and execute scripts, but the GlideRecord class itself is not responsible for running scheduled jobs.

DIt serves as the primary user authentication tool.

User authentication is handled by the platform's security mechanisms, including LDAP, SAML, OAuth, and local authentication, not directly by the GlideRecord class.

Concept tested: GlideRecord database interaction API

Source: https://docs.servicenow.com/bundle/utah-application-development/page/app-store/dev_portal/API_reference/GlideRecord/concept/GlideRecordAPI.html

Topics

#GlideRecord#Server-side scripting#Database interaction#API

Community Discussion

No community discussion yet for this question.

Full CAD Practice