Question 451 of 520
UI, Navigation and FormshardMultiple ChoiceObjective-mapped

ACL Deny Read Access to Non-Admin Users

This SNOW-CSA practice question tests your understanding of ui, navigation and forms. 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.

Exhibit

(function() {
    if (gs.hasRole('admin')) {
        return true;
    }
    return false;
})()

Refer to the exhibit. This is a script used in an ACL on the 'incident' table with 'type' set to 'record' and 'operation' set to 'read'. What is the effect of this ACL?

Exhibit

(function() {
    if (gs.hasRole('admin')) {
        return true;
    }
    return false;
})()

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

Denies read access to non-admin users

The ACL script uses `gs.getUser().hasRole('admin')` to check if the current user has the 'admin' role. If the user is not an admin, the script returns `false`, which denies read access. This effectively restricts read access to admin users only, denying it to all non-admin users. Option C correctly describes this behavior.

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.

  • Grants read access only to admin

    Why it's wrong here

    This is partially true but incomplete; the ACL also denies non-admin (default deny).

  • Denies read access to everyone

    Why it's wrong here

    Admin users are granted access.

  • Denies read access to non-admin users

    Why this is correct

    Non-admin users get false, so they are denied read access.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Grants read access to everyone

    Why it's wrong here

    The script returns false for non-admin users, so they are denied.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often misinterpret a deny rule as a grant rule, thinking the ACL 'grants read access to admin' when it actually denies access to non-admin users, with admin access being the default behavior when no deny applies.

Detailed technical explanation

How to think about this question

In ServiceNow, ACLs with 'type' set to 'record' and 'operation' set to 'read' evaluate the script condition before allowing or denying access. The `gs.getUser().hasRole('admin')` method checks the user's roles against the 'admin' role; if the user lacks this role, the script returns `false`, causing the ACL to deny the read operation. This is a common pattern for role-based access control, where a deny rule is used to restrict access to a specific role, and the implicit allow for that role comes from the absence of a deny condition.

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 security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.

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

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-CSA 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-CSA 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-CSA question test?

UI, Navigation and Forms — This question tests UI, Navigation and Forms — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Denies read access to non-admin users — The ACL script uses `gs.getUser().hasRole('admin')` to check if the current user has the 'admin' role. If the user is not an admin, the script returns `false`, which denies read access. This effectively restricts read access to admin users only, denying it to all non-admin users. Option C correctly describes this behavior.

What should I do if I get this SNOW-CSA 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

Keep practising

More SNOW-CSA practice questions

Last reviewed: Jul 4, 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-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.