ServiceNow CAD Practice Test 20
Question 190
A billing app exposes a read-only shared reference table to a scheduling app. After the recommended Table application access and CRUD scope change is implemented, which observation MOST directly verifies that it works?
- The form displays understandable feedback without exposing restricted data.
- The controlled ACL or metadata change belongs to the intended application and passes review.
- A consumer installation respects configured artifact edit and visibility restrictions.
- Authorized read requests succeed while forbidden cross-scope writes fail.
Explanation
Correct Answer
D:Authorized read requests succeed while forbidden cross-scope writes fail. This directly tests whether the Table application access and CRUD scope goal was met. Table application access determines cross-scope operation possibilities beyond user permissions.
Incorrect Answers
A:The form displays understandable feedback without exposing restricted data. This is evidence about gs.addInfoMessage user feedback, not direct proof of the required Table application access and CRUD scope behavior. The relevant check is that authorized read requests succeed while forbidden cross-scope writes fail.
B:The controlled ACL or metadata change belongs to the intended application and passes review. This is evidence about Scope context and security rule ownership, not direct proof of the required Table application access and CRUD scope behavior. The relevant check is that authorized read requests succeed while forbidden cross-scope writes fail.
C:A consumer installation respects configured artifact edit and visibility restrictions. This is evidence about Protected application files and distribution, not direct proof of the required Table application access and CRUD scope behavior. The relevant check is that authorized read requests succeed while forbidden cross-scope writes fail.
Question 191
A case form has fifty fields and users cannot find the contact section. After the recommended Form layout sections and field placement change is implemented, which observation MOST directly verifies that it works?
- Users locate the expected section and save correctly without changing stored field definitions.
- Invalid entries fail on both form submission and non-form write paths.
- Desktop form reacts as expected to condition changes during manual testing.
- Eligible users create appropriate records while unauthorized create and read attempts fail.
Explanation
Correct Answer
A:Users locate the expected section and save correctly without changing stored field definitions. This directly tests whether the Form layout sections and field placement goal was met. Form design controls presentation of existing table fields rather than database storage.
Incorrect Answers
B:Invalid entries fail on both form submission and non-form write paths. This is evidence about Client-side validation versus authoritative enforcement, not direct proof of the required Form layout sections and field placement behavior. The relevant check is that users locate the expected section and save correctly without changing stored field definitions.
C:Desktop form reacts as expected to condition changes during manual testing. This is evidence about UI policies for required and visible fields, not direct proof of the required Form layout sections and field placement behavior. The relevant check is that users locate the expected section and save correctly without changing stored field definitions.
D:Eligible users create appropriate records while unauthorized create and read attempts fail. This is evidence about Record producer access and audience, not direct proof of the required Form layout sections and field placement behavior. The relevant check is that users locate the expected section and save correctly without changing stored field definitions.
Question 192
A team must follow governance to create or modify security-sensitive ACL definitions. An engineer must explain the recommendation for Elevated security_admin privilege for ACL edits. Which underlying principle is the MOST accurate?
- ACL role, condition and script gates are evaluated to determine permitted operations.
- Protected artifact policies are distinct from user ACLs and application scope names.
- ACLs gate operations on table data rather than merely changing navigation.
- ACL editing has elevated administrative authorization beyond ordinary app role membership.
Explanation
Correct Answer
D:ACL editing has elevated administrative authorization beyond ordinary app role membership. Therefore the implementation decision is to obtain authorized privileged role elevation, such as security_admin when required, before ACL edits.
Incorrect Answers
A:Ordinary developer access should not silently grant universal security-rule editing. This describes the separate Access control condition versus role mechanism; the present case instead requires Elevated security_admin privilege for ACL edits.
B:Ordinary developer access should not silently grant universal security-rule editing. This describes the separate Protected application files and distribution mechanism; the present case instead requires Elevated security_admin privilege for ACL edits.
C:Ordinary developer access should not silently grant universal security-rule editing. This describes the separate Table read access control mechanism; the present case instead requires Elevated security_admin privilege for ACL edits.
Question 193
A Business Rule should conditionally permit a sensitive action by an operator. Testing exposes this failure: Browser-only role detection is not reliable authorization for server mutations. Which remediation should be applied FIRST?
- Read an editable client field named role and treat it as equivalent to gs.hasRole.
- Enforce sensitive conditions server-side and verify ACLs separately.
- Use a supported GlideSystem info or error message method for user-facing feedback where appropriate.
- Check membership using an appropriate server-side GlideUser method such as gs.getUser().isMemberOf.
Explanation
Correct Answer
B:Enforce sensitive conditions server-side and verify ACLs separately. Confirmation requires seeing that role-positive and role-negative tests produce the expected server-side branch.
Incorrect Answers
A:Read an editable client field named role and treat it as equivalent to gs.hasRole. This retains the gs.hasRole server authorization problem. gs.hasRole consults effective user role membership in a server-side context.
C:Use a supported GlideSystem info or error message method for user-facing feedback where appropriate. It addresses gs.addInfoMessage user feedback, not the diagnosed gs.hasRole server authorization failure. Browser-only role detection is not reliable authorization for server mutations.
D:Check membership using an appropriate server-side GlideUser method such as gs.getUser().isMemberOf. It addresses gs.getUser().isMemberOf group membership, not the diagnosed gs.hasRole server authorization failure. Browser-only role detection is not reliable authorization for server mutations.
Question 194
A script reads a property containing the string false to decide whether to enable alerts. Which approach BEST meets the requirement while respecting the system constraints?
- Parse and validate property strings into the expected data types before using them.
- Use a unique, namespaced app property naming convention.
- Read an application property using gs.getProperty with a safe documented fallback.
- Assume all string property values automatically become correctly typed booleans or numbers.
Explanation
Correct Answer
A:Parse and validate property strings into the expected data types before using them. Property APIs may return strings and require explicit type interpretation. Verification should demonstrate that the false string disables the flag and numeric values obey documented bounds.
Incorrect Answers
B:Use a unique, namespaced app property naming convention. This primarily addresses Property naming in scoped applications, not the specific Parse property types explicitly decision. Here, property APIs may return strings and require explicit type interpretation.
C:Read an application property using gs.getProperty with a safe documented fallback. This primarily addresses gs.getProperty with fallback, not the specific Parse property types explicitly decision. Here, property APIs may return strings and require explicit type interpretation.
D:Assume all string property values automatically become correctly typed booleans or numbers. This is an unsafe or ineffective shortcut for Parse property types explicitly. Treating nonempty false text as truthy can enable a feature unintentionally.
Question 195
Requesters need a concise create form while analysts need detailed resolution fields. A reviewer proposes this shortcut: Treat a view as a second independent record with different underlying identity. Which principle BEST explains why a different solution is needed?
- Related lists expose relationships to records rather than concatenating child IDs into a text field.
- GlideAjax enables supported asynchronous calls from client logic to server Script Includes.
- Client behavior improves usability but is not a trusted server security or integrity boundary.
- Form views offer alternative presentations of the same table record.
Explanation
Correct Answer
D:Form views offer alternative presentations of the same table record. The appropriate approach is to configure tailored form views and assign views through supported mechanisms.
Incorrect Answers
A:Related lists expose relationships to records rather than concatenating child IDs into a text field. This is about Related lists on forms, not why the proposed Multiple form views by persona shortcut should be rejected. Maintaining only one sprawling view can hinder usability for distinct personas.
B:GlideAjax enables supported asynchronous calls from client logic to server Script Includes. This is about GlideAjax asynchronous client-server pattern, not why the proposed Multiple form views by persona shortcut should be rejected. Maintaining only one sprawling view can hinder usability for distinct personas.
C:Client behavior improves usability but is not a trusted server security or integrity boundary. This is about Client-side validation versus authoritative enforcement, not why the proposed Multiple form views by persona shortcut should be rejected. Maintaining only one sprawling view can hinder usability for distinct personas.
Question 196
A workflow in one app calls a script include defined in another scoped app. After the recommended Restricted cross-scope scripting change is implemented, which observation MOST directly verifies that it works?
- Authorized cross-scope reads succeed while disallowed operations fail.
- Only permitted application callers can execute the supported utility.
- Authorized testers submit and view records while unauthorized testers are denied.
- The intended dependency works with a recorded allowed cross-scope policy.
Explanation
Correct Answer
B:Only permitted application callers can execute the supported utility. This directly tests whether the Restricted cross-scope scripting goal was met. Script includes and API access can be constrained across application scopes.
Incorrect Answers
A:Authorized cross-scope reads succeed while disallowed operations fail. This is evidence about Cross-scope table application access, not direct proof of the required Restricted cross-scope scripting behavior. The relevant check is that only permitted application callers can execute the supported utility.
C:Authorized testers submit and view records while unauthorized testers are denied. This is evidence about Experience design and app permissions, not direct proof of the required Restricted cross-scope scripting behavior. The relevant check is that only permitted application callers can execute the supported utility.
D:The intended dependency works with a recorded allowed cross-scope policy. This is evidence about Scope privileges and tracking, not direct proof of the required Restricted cross-scope scripting behavior. The relevant check is that only permitted application callers can execute the supported utility.
Question 197
A field change should update a help message without running on initial form population. Which approach BEST meets the requirement while respecting the system constraints?
- Use documented g_form methods suited to the field and client context.
- Use an accessible client-callable Script Include with asynchronous GlideAjax and validated input.
- Treat every onChange invocation during load as a confirmed user edit.
- Use onChange with checks for isLoading and the relevant old/new value.
Explanation
Correct Answer
D:Use onChange with checks for isLoading and the relevant old/new value. onChange execution receives old and new values and a loading flag. Verification should demonstrate that the script responds to deliberate field changes without duplicate startup actions.
Incorrect Answers
A:Use documented g_form methods suited to the field and client context. This primarily addresses g_form API for form fields, not the specific onChange client script guards decision. Here, onChange execution receives old and new values and a loading flag.
B:Use an accessible client-callable Script Include with asynchronous GlideAjax and validated input. This primarily addresses GlideAjax asynchronous client-server pattern, not the specific onChange client script guards decision. Here, onChange execution receives old and new values and a loading flag.
C:Treat every onChange invocation during load as a confirmed user edit. This is an unsafe or ineffective shortcut for onChange client script guards. Ignoring the loading condition can produce unnecessary work while the form initializes.
Question 198
Several scheduled scripts share the same eligibility calculation. After the recommended Utility Script Include for scheduled jobs change is implemented, which observation MOST directly verifies that it works?
- A test notification uses only authorized event context.
- Multiple calling flows complete the same validated subflow behavior.
- The job and event consumer produce consistent results on the same test records.
- The event appears with its expected name and processing after an approved action.
Explanation
Correct Answer
C:The job and event consumer produce consistent results on the same test records. This directly tests whether the Utility Script Include for scheduled jobs goal was met. Shared Script Includes centralize server business logic for maintainability.
Incorrect Answers
A:A test notification uses only authorized event context. This is evidence about Event parameters for notifications, not direct proof of the required Utility Script Include for scheduled jobs behavior. The relevant check is that the job and event consumer produce consistent results on the same test records.
B:Multiple calling flows complete the same validated subflow behavior. This is evidence about Reusable subflow design, not direct proof of the required Utility Script Include for scheduled jobs behavior. The relevant check is that the job and event consumer produce consistent results on the same test records.
D:The event appears with its expected name and processing after an approved action. This is evidence about Event registry for named events, not direct proof of the required Utility Script Include for scheduled jobs behavior. The relevant check is that the job and event consumer produce consistent results on the same test records.
Question 199
A developer attempts to change protected access control records but cannot save them. Which approach BEST meets the requirement while respecting the system constraints?
- Obtain authorized privileged role elevation, such as security_admin when required, before ACL edits.
- Grant the security_admin role permanently to every end user for form convenience.
- Configure ACL role and condition requirements and verify records that satisfy each part.
- Create a correctly scoped table-level read ACL with an appropriate role or condition.
Explanation
Correct Answer
A:Obtain authorized privileged role elevation, such as security_admin when required, before ACL edits. ACL editing has elevated administrative authorization beyond ordinary app role membership. Verification should demonstrate that a properly privileged administrator can edit controlled ACLs with a recorded change.
Incorrect Answers
B:Grant the security_admin role permanently to every end user for form convenience. This is an unsafe or ineffective shortcut for Elevated security_admin privilege for ACL edits. Ordinary developer access should not silently grant universal security-rule editing.
C:Configure ACL role and condition requirements and verify records that satisfy each part. This primarily addresses Access control condition versus role, not the specific Elevated security_admin privilege for ACL edits decision. Here, aCL editing has elevated administrative authorization beyond ordinary app role membership.
D:Create a correctly scoped table-level read ACL with an appropriate role or condition. This primarily addresses Table read access control, not the specific Elevated security_admin privilege for ACL edits decision. Here, aCL editing has elevated administrative authorization beyond ordinary app role membership.
Question 200
A developer attempts to change protected access control records but cannot save them. If the relevant Elevated security_admin privilege for ACL edits safeguard is omitted, which outcome is the MOST directly associated failure?
- A script that always sets answer true grants more access than intended.
- Ordinary developer access should not silently grant universal security-rule editing.
- Treating a free-form group name as membership proof bypasses authorization.
- A read role alone should not imply unrestricted mutation of records.
Explanation
Correct Answer
B:Ordinary developer access should not silently grant universal security-rule editing. ACL editing has elevated administrative authorization beyond ordinary app role membership. The corrective approach is to follow controlled elevation and verify the changed ACL with negative tests.
Incorrect Answers
A:A script that always sets answer true grants more access than intended. This failure pattern belongs chiefly to Scripted ACL conditional check; it is not the failure most directly tested in the Elevated security_admin privilege for ACL edits situation. Ordinary developer access should not silently grant universal security-rule editing.
C:Treating a free-form group name as membership proof bypasses authorization. This failure pattern belongs chiefly to gs.getUser().isMemberOf group membership; it is not the failure most directly tested in the Elevated security_admin privilege for ACL edits situation. Ordinary developer access should not silently grant universal security-rule editing.
D:A read role alone should not imply unrestricted mutation of records. This failure pattern belongs chiefly to Table write operation ACL; it is not the failure most directly tested in the Elevated security_admin privilege for ACL edits situation. Ordinary developer access should not silently grant universal security-rule editing.