ServiceNow CAD Practice Test 73
Question 720
A new reservation must be rejected when a required invariant is violated. After the recommended Before Business Rule validation change is implemented, which observation MOST directly verifies that it works?
- Invalid desktop submissions are blocked and users receive actionable guidance.
- Multiple callers get consistent results with one maintained implementation.
- An onLoad client script can access the prepared permitted scratchpad value.
- The transaction reflects the intended value or is aborted according to the rule.
Explanation
Correct Answer
D:The transaction reflects the intended value or is aborted according to the rule. This directly tests whether the Before Business Rule validation goal was met. Before Business Rules act before the database operation in the applicable transaction.
Incorrect Answers
A:Invalid desktop submissions are blocked and users receive actionable guidance. This is evidence about onSubmit client script validation, not direct proof of the required Before Business Rule validation behavior. The relevant check is that the transaction reflects the intended value or is aborted according to the rule.
B:Multiple callers get consistent results with one maintained implementation. This is evidence about Script Include utility reuse, not direct proof of the required Before Business Rule validation behavior. The relevant check is that the transaction reflects the intended value or is aborted according to the rule.
C:An onLoad client script can access the prepared permitted scratchpad value. This is evidence about Display Business Rule and g_scratchpad, not direct proof of the required Before Business Rule validation behavior. The relevant check is that the transaction reflects the intended value or is aborted according to the rule.
Question 721
A connected vendor endpoint returns 403 for one request but 200 for another. After the recommended REST logging and diagnostics change is implemented, which observation MOST directly verifies that it works?
- The final table contains valid records and an exception report tracks rejects.
- Errors identify authorization, path or payload issues without logging secrets.
- A controlled test shows the expected HTTP request and provider response.
- Repeated tests do not create duplicate external records for the same business operation.
Explanation
Correct Answer
B:Errors identify authorization, path or payload issues without logging secrets. This directly tests whether the REST logging and diagnostics goal was met. HTTP statuses and safe logs support distinguishing integration errors.
Incorrect Answers
A:The final table contains valid records and an exception report tracks rejects. This is evidence about Import reconciliation and onBefore rejection, not direct proof of the required REST logging and diagnostics behavior. The relevant check is that errors identify authorization, path or payload issues without logging secrets.
C:A controlled test shows the expected HTTP request and provider response. This is evidence about Outbound REST Message configuration, not direct proof of the required REST logging and diagnostics behavior. The relevant check is that errors identify authorization, path or payload issues without logging secrets.
D:Repeated tests do not create duplicate external records for the same business operation. This is evidence about REST timeout and retry safety, not direct proof of the required REST logging and diagnostics behavior. The relevant check is that errors identify authorization, path or payload issues without logging secrets.
Question 722
A scheduled script requires a nonsecret toggle from an application property. Testing exposes this failure: Putting access-control decisions solely in a user-editable property can create bypasses. Which remediation should be applied FIRST?
- Check membership using an appropriate server-side GlideUser method such as gs.getUser().isMemberOf.
- Treat every property value as authenticated proof that the user has the required role.
- Scope and document the property and preserve real ACL enforcement.
- Use a supported GlideSystem info or error message method for user-facing feedback where appropriate.
Explanation
Correct Answer
C:Scope and document the property and preserve real ACL enforcement. Confirmation requires seeing that behavior follows the documented property after a controlled update.
Incorrect Answers
A: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.getProperty server configuration failure. Putting access-control decisions solely in a user-editable property can create bypasses.
B:Treat every property value as authenticated proof that the user has the required role. This retains the gs.getProperty server configuration problem. GlideSystem can access system property values for server-side configuration.
D: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.getProperty server configuration failure. Putting access-control decisions solely in a user-editable property can create bypasses.
Question 723
A form should stop submission when a user has not confirmed a required business declaration. If the relevant onSubmit client script validation safeguard is omitted, which outcome is the MOST directly associated failure?
- Browser validation cannot replace secure server-side checks for alternate write channels.
- A misleading success message can hide a failed write or create duplicate retries.
- Arbitrary DOM selectors can break after platform interface upgrades.
- Ignoring the loading condition can produce unnecessary work while the form initializes.
Explanation
Correct Answer
A:Browser validation cannot replace secure server-side checks for alternate write channels. onSubmit scripts run in the client before the form is submitted. The corrective approach is to combine clear onSubmit feedback with authoritative server enforcement.
Incorrect Answers
B:A misleading success message can hide a failed write or create duplicate retries. This failure pattern belongs chiefly to Producer post-submission behavior; it is not the failure most directly tested in the onSubmit client script validation situation. Browser validation cannot replace secure server-side checks for alternate write channels.
C:Arbitrary DOM selectors can break after platform interface upgrades. This failure pattern belongs chiefly to g_form API for form fields; it is not the failure most directly tested in the onSubmit client script validation situation. Browser validation cannot replace secure server-side checks for alternate write channels.
D:Ignoring the loading condition can produce unnecessary work while the form initializes. This failure pattern belongs chiefly to onChange client script guards; it is not the failure most directly tested in the onSubmit client script validation situation. Browser validation cannot replace secure server-side checks for alternate write channels.
Question 724
A partner-facing producer should not permit unrelated employees to create internal restricted records. After the recommended Record producer access and audience change is implemented, which observation MOST directly verifies that it works?
- Eligible users create appropriate records while unauthorized create and read attempts fail.
- The script responds to deliberate field changes without duplicate startup actions.
- After submission the user receives an accurate confirmation without extra duplicate records.
- Submitting the producer creates a correctly populated target record.
Explanation
Correct Answer
A:Eligible users create appropriate records while unauthorized create and read attempts fail. This directly tests whether the Record producer access and audience goal was met. Producer visibility and target-table access are distinct authorization concerns.
Incorrect Answers
B:The script responds to deliberate field changes without duplicate startup actions. This is evidence about onChange client script guards, not direct proof of the required Record producer access and audience behavior. The relevant check is that eligible users create appropriate records while unauthorized create and read attempts fail.
C:After submission the user receives an accurate confirmation without extra duplicate records. This is evidence about Producer post-submission behavior, not direct proof of the required Record producer access and audience behavior. The relevant check is that eligible users create appropriate records while unauthorized create and read attempts fail.
D:Submitting the producer creates a correctly populated target record. This is evidence about Record Producer creates app record, not direct proof of the required Record producer access and audience behavior. The relevant check is that eligible users create appropriate records while unauthorized create and read attempts fail.
Question 725
A scoped integration attempts an operation on a protected object in another application. If the relevant Scope privileges and tracking safeguard is omitted, which outcome is the MOST directly associated failure?
- Storing every business fact in unstructured script text prevents robust queries.
- Making changes in the wrong scope complicates packaging and protection.
- Editing in Global by mistake can create uncontrolled shared metadata.
- Approving all cross-scope privileges removes a layer of application isolation.
Explanation
Correct Answer
D:Approving all cross-scope privileges removes a layer of application isolation. Runtime cross-scope controls provide a review boundary separate from data ACLs. The corrective approach is to test and document allowed inter-scope calls and deny unneeded ones.
Incorrect Answers
A:Storing every business fact in unstructured script text prevents robust queries. This failure pattern belongs chiefly to Application-owned table creation; it is not the failure most directly tested in the Scope privileges and tracking situation. Approving all cross-scope privileges removes a layer of application isolation.
B:Making changes in the wrong scope complicates packaging and protection. This failure pattern belongs chiefly to Application picker and context; it is not the failure most directly tested in the Scope privileges and tracking situation. Approving all cross-scope privileges removes a layer of application isolation.
C:Editing in Global by mistake can create uncontrolled shared metadata. This failure pattern belongs chiefly to Application scope namespace; it is not the failure most directly tested in the Scope privileges and tracking situation. Approving all cross-scope privileges removes a layer of application isolation.
Question 726
An external API returns a timeout after it may have created a task. Which approach BEST meets the requirement while respecting the system constraints?
- Use supported sn_ws.RESTMessageV2 server-side APIs and validate response status and payload.
- Retry a potentially successful write unlimited times whenever the client times out.
- Validate HTTP method, content type, required JSON fields and endpoint contract.
- Apply bounded timeout and retry handling with an idempotency strategy for writes.
Explanation
Correct Answer
D:Apply bounded timeout and retry handling with an idempotency strategy for writes. Network failure does not prove a remote write was never committed. Verification should demonstrate that repeated tests do not create duplicate external records for the same business operation.
Incorrect Answers
A:Use supported sn_ws.RESTMessageV2 server-side APIs and validate response status and payload. This primarily addresses RESTMessageV2 execution and response, not the specific REST timeout and retry safety decision. Here, network failure does not prove a remote write was never committed.
B:Retry a potentially successful write unlimited times whenever the client times out. This is an unsafe or ineffective shortcut for REST timeout and retry safety. Retrying a non-idempotent POST without a key can create duplicate requests.
C:Validate HTTP method, content type, required JSON fields and endpoint contract. This primarily addresses REST endpoint and payload validation, not the specific REST timeout and retry safety decision. Here, network failure does not prove a remote write was never committed.
Question 727
A developer finishes a tested Script Include change and needs a source-history checkpoint. After the recommended Commit application changes to Git change is implemented, which observation MOST directly verifies that it works?
- The app is linked to the expected repository and committed changes are traceable.
- The remote repository history includes the intended files and commit ID.
- Instance metadata reflects approved source revisions without overwriting unrelated work.
- The change record identifies author, reviewer, tests and approved target version.
Explanation
Correct Answer
B:The remote repository history includes the intended files and commit ID. This directly tests whether the Commit application changes to Git goal was met. Git commits preserve source revisions so reviewers can trace changes.
Incorrect Answers
A:The app is linked to the expected repository and committed changes are traceable. This is evidence about Link app to Git repository in Studio, not direct proof of the required Commit application changes to Git behavior. The relevant check is that the remote repository history includes the intended files and commit ID.
C:Instance metadata reflects approved source revisions without overwriting unrelated work. This is evidence about Retrieve upstream source changes, not direct proof of the required Commit application changes to Git behavior. The relevant check is that the remote repository history includes the intended files and commit ID.
D:The change record identifies author, reviewer, tests and approved target version. This is evidence about Code review and scoped contribution workflow, not direct proof of the required Commit application changes to Git behavior. The relevant check is that the remote repository history includes the intended files and commit ID.
Question 728
A new table needs required types and lengths defined before forms use them. An engineer must explain the recommendation for Dictionary field attributes and type safety. Which underlying principle is the MOST accurate?
- Script includes and API access can be constrained across application scopes.
- Field dictionaries determine storage type and metadata beyond form appearance.
- Many-to-many relations need an association rather than a single scalar reference.
- Table extension shares parent schema and behavior rather than duplicating every common field.
Explanation
Correct Answer
B:Field dictionaries determine storage type and metadata beyond form appearance. Therefore the implementation decision is to configure field types and dictionary attributes suited to data semantics.
Incorrect Answers
A:Treating every property as text can cause incorrect calculations and queries. Script includes and API access can be constrained across application scopes.
C:Treating every property as text can cause incorrect calculations and queries. Many-to-many relations need an association rather than a single scalar reference.
D:Treating every property as text can cause incorrect calculations and queries. Table extension shares parent schema and behavior rather than duplicating every common field.
Question 729
A developer finishes a tested Script Include change and needs a source-history checkpoint. If the relevant Commit application changes to Git safeguard is omitted, which outcome is the MOST directly associated failure?
- Installing without a dependency plan can leave missing tables or APIs.
- Assuming Studio can perform every Git conflict merge can risk source loss.
- Pulling without checking local changes may overwrite or conflict with active development.
- Changes left uncommitted can be missing from the agreed repository version.
Explanation
Correct Answer
D:Changes left uncommitted can be missing from the agreed repository version. Git commits preserve source revisions so reviewers can trace changes. The corrective approach is to review modified app files and commit only verified changes.
Incorrect Answers
A:Installing without a dependency plan can leave missing tables or APIs. This failure pattern belongs chiefly to App installation dependencies; it is not the failure most directly tested in the Commit application changes to Git situation. Changes left uncommitted can be missing from the agreed repository version.
B:This failure pattern belongs chiefly to Branch and merge limitations in platform integration; it is not the failure most directly tested in the Commit application changes to Git situation.
C:Pulling without checking local changes may overwrite or conflict with active development. This failure pattern belongs chiefly to Retrieve upstream source changes; it is not the failure most directly tested in the Commit application changes to Git situation. Changes left uncommitted can be missing from the agreed repository version.
Question 730
A Business Rule should conditionally permit a sensitive action by an operator. An engineer must explain the recommendation for gs.hasRole server authorization. Which underlying principle is the MOST accurate?
- Human-readable names and stable internal record identifiers serve different purposes.
- Security checks must protect actual data access regardless of how records are reached.
- Feedback methods communicate to the user and are not substitutes for access controls.
- gs.hasRole consults effective user role membership in a server-side context.
Explanation
Correct Answer
D:Gs.hasRole consults effective user role membership in a server-side context. Therefore the implementation decision is to use a documented server-side GlideSystem role check such as gs.hasRole with the intended role.
Incorrect Answers
A:Browser-only role detection is not reliable authorization for server mutations. This describes the separate gs.getUserName versus sys_id mechanism; the present case instead requires gs.hasRole server authorization.
B:Browser-only role detection is not reliable authorization for server mutations. Security checks must protect actual data access regardless of how records are reached.
C:Browser-only role detection is not reliable authorization for server mutations. Feedback methods communicate to the user and are not substitutes for access controls.