ServiceNow CAD Practice Questions

ServiceNow Certified Application Developer (CAD) exam preparationAligned with the official exam blueprint KB0011498 (v14.0)

ServiceNow CAD practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 90 minutes.

ServiceNow CAD free question 6 / 10 · Domain 2: Application User Interface

The rule "When Change Type is Emergency, the Justification field is mandatory" must be applied not only to form entry but also to records created through import sets and web services. Which feature should be used?

  1. Client script, which runs logic in the browser when a form loads or when a field value changes
  2. UI policy, which controls whether fields are mandatory, read-only, or visible on a form in the browser
  3. UI action, which starts server or client processing from a button, link, or menu item on a form or list
  4. Data policy, which applies rules to all data entering the system, including import sets and web services
Show the answer and explanation

Answer: D

Why this is correct
Data policies enforce data consistency by setting mandatory and read-only states for fields. UI policies only apply to data entered on a form through the standard browser, while data policies can apply rules to all data entered into the system, including data brought in through import sets or web services and data entered through the mobile UI.

Why the other options are wrong
"UI policy, which controls whether fields are mandatory, read-only, or visible on a form in the browser" … A UI policy applies only to data entered on a form through the standard browser. Records created by an import set or a web service are not subject to it.
"Client script, which runs logic in the browser when a form loads or when a field value changes" … Client scripts also run in the browser on forms. Data that never passes through a form is not checked by them.
"UI action, which starts server or client processing from a button, link, or menu item on a form or list" … UI actions provide buttons, links, and context menu items. They do not enforce a mandatory rule on data.

Using it on the form too
Select Use as UI Policy on client in the data policy record to apply the same policy in the browser, so you do not need a duplicate UI policy. By default, data policies apply to all GlideRecord operations, and you can opt out for SOAP web service targets, import sets, and client-side UI policies.

Go to the ServiceNow CAD practice app (10 free questions; purchase unlocks all questions)

See the full practice set