ServiceNow CAD Practice Test 39
Question 380
A developer considers putting an API token in an ordinary readable application property. Select TWO statements that correctly combine the Properties are not a secret vault method with evidence or its governing principle.
- Define a well-named application property with documented type, default and governance.
- Place a plaintext password into a broadly readable sys_property because it is convenient.
- Read an application property using gs.getProperty with a safe documented fallback.
- Tests show only permitted principals can access credentials while timeout remains configurable.
- Store sensitive credentials in a supported secure credential mechanism and use properties for nonsecret settings.
Explanation
Correct Answers
D:Tests show only permitted principals can access credentials while timeout remains configurable. This is directly observable validation of the Properties are not a secret vault result.
E:Store sensitive credentials in a supported secure credential mechanism and use properties for nonsecret settings. This is the intended action for Properties are not a secret vault.
Incorrect Answers
A:Define a well-named application property with documented type, default and governance. This serves the different Application properties for behavior toggles objective, not the selected Properties are not a secret vault plan. Ordinary configuration properties should not be assumed suitable for protected secrets.
B:Place a plaintext password into a broadly readable sys_property because it is convenient. This is not part of a safe or effective Properties are not a secret vault design. Exposing a token in property values or logs can leak access to an external system.
C:Read an application property using gs.getProperty with a safe documented fallback. This serves the different gs.getProperty with fallback objective, not the selected Properties are not a secret vault plan. Ordinary configuration properties should not be assumed suitable for protected secrets.
Question 381
A developer needs to discover which internally created application is installed and its version. Which approach BEST meets the requirement while respecting the system constraints?
- Review application records and installed version in My Company Applications or supported manager.
- Treat the number of visible navigator modules as a reliable application version identifier.
- Use the supported Application Repository distribution and installation workflow where applicable.
- Smoke-test records, roles, flows and integrations and retain supported recovery steps.
Explanation
Correct Answer
A:Review application records and installed version in My Company Applications or supported manager. Installed application management identifies versioned app artifacts rather than only source folders. Verification should demonstrate that the installed version and owning scope match approved release metadata.
Incorrect Answers
B:Treat the number of visible navigator modules as a reliable application version identifier. This is an unsafe or ineffective shortcut for My Company Applications lifecycle. Unknown installed versions can create drift between test and production.
C:Use the supported Application Repository distribution and installation workflow where applicable. This primarily addresses Application repository release distribution, not the specific My Company Applications lifecycle decision. Here, installed application management identifies versioned app artifacts rather than only source folders.
D:Smoke-test records, roles, flows and integrations and retain supported recovery steps. This primarily addresses Post-install validation and rollback, not the specific My Company Applications lifecycle decision. Here, installed application management identifies versioned app artifacts rather than only source folders.
Question 382
A developer needs code to retrieve an HTTP status and response body for a vendor API. Testing exposes this failure: Assuming every network call succeeds can silently lose changes. Which remediation should be applied FIRST?
- Use supported credential or connection alias mechanisms with least privilege.
- Check status, handle errors and parse expected response fields.
- Apply bounded timeout and retry handling with an idempotency strategy for writes.
- Print a success message without executing or inspecting the REST request.
Explanation
Correct Answer
B:Check status, handle errors and parse expected response fields. Confirmation requires seeing that logs show an actual HTTP status and parsed permitted content from the response.
Incorrect Answers
A:Use supported credential or connection alias mechanisms with least privilege. It addresses REST authentication with stored credentials, not the diagnosed RESTMessageV2 execution and response failure. Assuming every network call succeeds can silently lose changes.
C:Apply bounded timeout and retry handling with an idempotency strategy for writes. It addresses REST timeout and retry safety, not the diagnosed RESTMessageV2 execution and response failure. Assuming every network call succeeds can silently lose changes.
D:Print a success message without executing or inspecting the REST request. This retains the RESTMessageV2 execution and response problem. RESTMessageV2 performs server-side outbound requests and returns a response object.
Question 383
Several scheduled scripts share the same eligibility calculation. If the relevant Utility Script Include for scheduled jobs safeguard is omitted, which outcome is the MOST directly associated failure?
- Copying an algorithm into each event and job makes them drift during fixes.
- Raising misspelled event names can prevent intended listeners from firing.
- Hardcoding an operational threshold in many scripts complicates controlled changes.
- Passing secrets or unvalidated user-supplied addresses in event parameters can disclose data.
Explanation
Correct Answer
A:Copying an algorithm into each event and job makes them drift during fixes. Shared Script Includes centralize server business logic for maintainability. The corrective approach is to define and test one reusable utility with correct scoped access.
Incorrect Answers
B:Raising misspelled event names can prevent intended listeners from firing. This failure pattern belongs chiefly to Event registry for named events; it is not the failure most directly tested in the Utility Script Include for scheduled jobs situation. Copying an algorithm into each event and job makes them drift during fixes.
C:Hardcoding an operational threshold in many scripts complicates controlled changes. This failure pattern belongs chiefly to Application properties for behavior toggles; it is not the failure most directly tested in the Utility Script Include for scheduled jobs situation. Copying an algorithm into each event and job makes them drift during fixes.
D:This failure pattern belongs chiefly to Event parameters for notifications; it is not the failure most directly tested in the Utility Script Include for scheduled jobs situation.
Question 384
An older implementation uses Workflow records but new requirements favor supported modern automation. If the relevant Workflow versus Flow Designer lifecycle safeguard is omitted, which outcome is the MOST directly associated failure?
- Blind replacement without mapping approvals and conditions can change business behavior.
- A trigger on every update can repeatedly execute expensive or sensitive actions.
- Handcoded email in every rule can produce duplicate sends and poor auditability.
- Duplicated automation steps can diverge after one flow is revised.
Explanation
Correct Answer
A:Blind replacement without mapping approvals and conditions can change business behavior. Legacy Workflow and Flow Designer coexist in some instances but differ in maintenance and capability. The corrective approach is to inventory current behavior and validate a controlled transition when suitable.
Incorrect Answers
B:A trigger on every update can repeatedly execute expensive or sensitive actions. This failure pattern belongs chiefly to Flow Designer record trigger; it is not the failure most directly tested in the Workflow versus Flow Designer lifecycle situation. Blind replacement without mapping approvals and conditions can change business behavior.
C:Handcoded email in every rule can produce duplicate sends and poor auditability. This failure pattern belongs chiefly to Event-driven email versus synchronous code; it is not the failure most directly tested in the Workflow versus Flow Designer lifecycle situation. Blind replacement without mapping approvals and conditions can change business behavior.
D:Duplicated automation steps can diverge after one flow is revised. This failure pattern belongs chiefly to Reusable subflow design; it is not the failure most directly tested in the Workflow versus Flow Designer lifecycle situation. Blind replacement without mapping approvals and conditions can change business behavior.
Question 385
A development team needs an external API to reject invalid input types cleanly. An engineer must explain the recommendation for REST endpoint and payload validation. Which underlying principle is the MOST accurate?
- REST integrations depend on endpoint, method, headers and payload schema.
- Coalesce matches imported values to target rows and chooses update versus insert.
- Integration authentication should be managed separately from code configuration.
- HTTP statuses and safe logs support distinguishing integration errors.
Explanation
Correct Answer
A:REST integrations depend on endpoint, method, headers and payload schema. Therefore the implementation decision is to validate HTTP method, content type, required JSON fields and endpoint contract.
Incorrect Answers
B:Coalesce matches imported values to target rows and chooses update versus insert. This describes the separate Coalesce for update versus insert mechanism; the present case instead requires REST endpoint and payload validation. Sending malformed JSON or wrong verbs produces rejected or incorrect requests.
C:Integration authentication should be managed separately from code configuration. This describes the separate REST authentication with stored credentials mechanism; the present case instead requires REST endpoint and payload validation. Sending malformed JSON or wrong verbs produces rejected or incorrect requests.
D:HTTP statuses and safe logs support distinguishing integration errors. This describes the separate REST logging and diagnostics mechanism; the present case instead requires REST endpoint and payload validation. Sending malformed JSON or wrong verbs produces rejected or incorrect requests.
Question 386
A server-side utility must check whether the caller holds an approved business role. A reviewer proposes this shortcut: Read an editable client field named role and treat it as equivalent to gs.hasRole. Which principle BEST explains why a different solution is needed?
- Server-side user identity references are more robust than trusting submitted display names.
- Debugging ACL evaluation is more reliable than guessing from form visibility.
- gs.hasRole consults effective user role membership in a server-side context.
- GlideSystem can access system property values for server-side configuration.
Explanation
Correct Answer
C:Gs.hasRole consults effective user role membership in a server-side context. The appropriate approach is to use a documented server-side GlideSystem role check such as gs.hasRole with the intended role.
Incorrect Answers
A:Server-side user identity references are more robust than trusting submitted display names. This is about gs.getUserID for current identity, not why the proposed gs.hasRole server authorization shortcut should be rejected. Browser-only role detection is not reliable authorization for server mutations.
B:Debugging ACL evaluation is more reliable than guessing from form visibility. This is about Access Control Debug and denial analysis, not why the proposed gs.hasRole server authorization shortcut should be rejected. Browser-only role detection is not reliable authorization for server mutations.
D:GlideSystem can access system property values for server-side configuration. This is about gs.getProperty server configuration, not why the proposed gs.hasRole server authorization shortcut should be rejected. Browser-only role detection is not reliable authorization for server mutations.
Question 387
A flow must send the new case number to a notification step. Which approach BEST meets the requirement while respecting the system constraints?
- Review existing Workflow behavior and select an appropriate supported Flow Designer design for new automation.
- Copy a sample case number as fixed text into every subsequent flow action.
- Map the appropriate trigger and step output data pills into action inputs.
- Inspect the flow execution details and failing step outcomes in the permitted environment.
Explanation
Correct Answer
C:Map the appropriate trigger and step output data pills into action inputs. Data pills carry typed step and trigger outputs through a flow. Verification should demonstrate that execution details show later actions receive actual values from the intended source.
Incorrect Answers
A:Review existing Workflow behavior and select an appropriate supported Flow Designer design for new automation. This primarily addresses Workflow versus Flow Designer lifecycle, not the specific Flow Designer data pills decision. Here, data pills carry typed step and trigger outputs through a flow.
B:Copy a sample case number as fixed text into every subsequent flow action. This is an unsafe or ineffective shortcut for Flow Designer data pills. Hard-coded values can misroute actions when incoming records differ.
D:Inspect the flow execution details and failing step outcomes in the permitted environment. This primarily addresses Flow execution logs and troubleshooting, not the specific Flow Designer data pills decision. Here, data pills carry typed step and trigger outputs through a flow.
Question 388
Two departments build similarly named business rules and tables. Which practical correction or implementation decision is MOST directly appropriate?
- Expose documented limited interfaces and test cross-scope invocation.
- Design cross-scope permissions and user ACLs separately.
- Change only a label while assuming it moves an artifact into another scope.
- Verify the application picker and scope prefix before creating files.
Explanation
Correct Answer
D:Verify the application picker and scope prefix before creating files. The intended behavior can be checked because application files carry the correct scope identifiers and distinct names.
Incorrect Answers
A:Expose documented limited interfaces and test cross-scope invocation. This could help Restricted cross-scope scripting, but it does not resolve the Application scope namespace case. Scoped apps isolate application artifacts and reduce naming collisions.
B:Design cross-scope permissions and user ACLs separately. This could help Scope boundaries versus ACL authorizations, but it does not resolve the Application scope namespace case. Scoped apps isolate application artifacts and reduce naming collisions.
C:Change only a label while assuming it moves an artifact into another scope. This would not correct the Application scope namespace workflow. Editing in Global by mistake can create uncontrolled shared metadata.
Question 389
An app should change an optional reminder interval without editing JavaScript. Which approach BEST meets the requirement while respecting the system constraints?
- Store the configuration in a form label and assume all server scripts read it automatically.
- Read an application property using gs.getProperty with a safe documented fallback.
- Use a unique, namespaced app property naming convention.
- Define a well-named application property with documented type, default and governance.
Explanation
Correct Answer
D:Define a well-named application property with documented type, default and governance. Application properties externalize configurable behavior from code. Verification should demonstrate that changing the property in a test instance changes the intended behavior.
Incorrect Answers
A:Store the configuration in a form label and assume all server scripts read it automatically. This is an unsafe or ineffective shortcut for Application properties for behavior toggles. Hardcoding an operational threshold in many scripts complicates controlled changes.
B:Read an application property using gs.getProperty with a safe documented fallback. This primarily addresses gs.getProperty with fallback, not the specific Application properties for behavior toggles decision. Here, application properties externalize configurable behavior from code.
C:Use a unique, namespaced app property naming convention. This primarily addresses Property naming in scoped applications, not the specific Application properties for behavior toggles decision. Here, application properties externalize configurable behavior from code.
Question 390
Staff need a navigation item that opens all equipment loans as a list. After the recommended List module target table change is implemented, which observation MOST directly verifies that it works?
- The eligible user reaches a new record form of the correct table.
- Navigation opens a list restricted by the expected filter and ACLs.
- Attempts to create duplicate business keys are detected according to configured constraints.
- Selecting the module opens the intended records list.
Explanation
Correct Answer
D:Selecting the module opens the intended records list. This directly tests whether the List module target table goal was met. Modules are navigation actions that point to lists, forms or other supported destinations.
Incorrect Answers
A:The eligible user reaches a new record form of the correct table. This is evidence about New-record module entry point, not direct proof of the required List module target table behavior. The relevant check is that selecting the module opens the intended records list.
B:Navigation opens a list restricted by the expected filter and ACLs. This is evidence about Filtered module navigation, not direct proof of the required List module target table behavior. The relevant check is that selecting the module opens the intended records list.
C:Attempts to create duplicate business keys are detected according to configured constraints. This is evidence about Unique business identifier and indexes, not direct proof of the required List module target table behavior. The relevant check is that selecting the module opens the intended records list.