Courseiva
Service Catalog and WorkflowsmediumMultiple ChoiceObjective-mapped

SNOW-CSA Service Catalog and Workflows Practice Question

Exhibit

if (g_form.getValue('type') == 'hardware') {
    g_form.setMandatory('serial_number', true);
}

Refer to the exhibit. A UI policy is defined with the above script condition. Which of the following is correct?

⚠ Common exam trap

Many exam-takers confuse UI policies (client-side) with business rules (server-side) and incorrectly assume that 'g_form' requires server-side execution, when in fact UI policies are client-side and use 'g_form' natively.

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

The UI policy runs on client-side and makes serial_number mandatory when type is hardware.

UI policies run on the client side (in the browser) and can use script conditions to evaluate field values. In this case, the script condition checks if the 'type' field equals 'hardware', and if true, the UI policy makes the 'serial_number' field mandatory. This is a standard client-side behavior for UI policies.

Answer analysis

Option-by-option breakdown

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

  • The UI policy will only apply if the 'type' field is changed.

    Why it's wrong here

    The condition runs on form load and on change of any variable? Actually UI policies run when the form loads and on relevant changes.

  • The UI policy must run on server-side to use g_form.

    Why it's wrong here

    g_form is a client-side API, so it runs client-side.

  • The script is invalid because UI policies cannot use script conditions.

    Why it's wrong here

    UI policies can use script conditions.

  • The UI policy runs on client-side and makes serial_number mandatory when type is hardware.

    Why this is correct

    UI policies are client-side by default; the script condition is evaluated on the client.

About these practice questions

One of 504 original SNOW-CSA 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SNOW-CSA 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-CSA exam.