Courseiva
Service Catalog and WorkflowshardMultiple ChoiceObjective-mapped

SNOW-CSA Service Catalog and Workflows Practice Question

A catalog item uses a workflow with a 'Run Script' activity that contains a script to update a custom table. The script works correctly when executed manually in the Scripts Background, but fails when invoked by the workflow. What is the most likely reason?

⚠ Common exam trap

ServiceNow often tests the misconception that a script's behavior is identical in all execution contexts, but the trap here is that candidates overlook the security context difference between Scripts Background (admin privileges) and workflow execution (workflow user privileges), leading them to choose a generic scripting error like undefined variables or API misuse.

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 workflow runs with a different security context, causing permission issues

The most likely reason is that the workflow runs under the security context of the workflow engine (typically the 'workflow' user or the system user), not the current user's context. When the script is executed manually in Scripts Background, it runs with the full privileges of the admin user, which may include write access to the custom table. In contrast, the workflow's Run Script activity may lack the necessary ACL permissions (e.g., write or create) on the custom table, causing the GlideRecord update to fail silently or throw an error.

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 workflow runs with a different security context, causing permission issues

    Why this is correct

    Background scripts run as the user executing them, while workflow scripts may run as system or a designated user with different rights.

  • The workflow script references a variable that is undefined in that context

    Why it's wrong here

    An undefined variable would cause a script error in both manual and workflow execution.

  • The script uses incorrect GlideRecord API methods

    Why it's wrong here

    If the script works manually, API usage is likely correct.

  • The workflow is in draft mode

    Why it's wrong here

    A draft workflow would not execute, so no failure would occur.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

Courseiva writes every SNOW-CSA question from scratch — 504 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.