ServiceNow CAD Practice Test 32
Question 310
A developer has internal helper scripts that should not be used by unrelated apps. After the recommended Private scope protects internal application files change is implemented, which observation MOST directly verifies that it works?
- Role-positive and role-negative tests produce the expected server-side branch.
- Authorized caller contexts invoke the API while unrelated contexts fail.
- Unrelated application contexts cannot invoke private files without permitted cross-scope access.
- A consumer installation respects configured artifact edit and visibility restrictions.
Explanation
Correct Answer
C:Unrelated application contexts cannot invoke private files without permitted cross-scope access. This directly tests whether the Private scope protects internal application files goal was met. Scope protection restricts application artifact usage across apps.
Incorrect Answers
A:Role-positive and role-negative tests produce the expected server-side branch. This is evidence about gs.hasRole server authorization, not direct proof of the required Private scope protects internal application files behavior. The relevant check is that unrelated application contexts cannot invoke private files without permitted cross-scope access.
B:Authorized caller contexts invoke the API while unrelated contexts fail. This is evidence about Script Include accessible from scope setting, not direct proof of the required Private scope protects internal application files behavior. The relevant check is that unrelated application contexts cannot invoke private files without permitted cross-scope access.
D: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 Private scope protects internal application files behavior. The relevant check is that unrelated application contexts cannot invoke private files without permitted cross-scope access.
Question 311
Request owners must receive an email only when approval is granted. After the recommended Email notification trigger and condition change is implemented, which observation MOST directly verifies that it works?
- Test messages are generated only for eligible record transitions.
- The job and event consumer produce consistent results on the same test records.
- Email generation follows the configured notification with separately testable triggers.
- The email log shows generation, recipients and any failure reason.
Explanation
Correct Answer
A:Test messages are generated only for eligible record transitions. This directly tests whether the Email notification trigger and condition goal was met. Notifications select recipients and content based on events or record conditions.
Incorrect Answers
B:The job and event consumer produce consistent results on the same test records. This is evidence about Utility Script Include for scheduled jobs, not direct proof of the required Email notification trigger and condition behavior. The relevant check is that test messages are generated only for eligible record transitions.
C:Email generation follows the configured notification with separately testable triggers. This is evidence about Event-driven email versus synchronous code, not direct proof of the required Email notification trigger and condition behavior. The relevant check is that test messages are generated only for eligible record transitions.
D:The email log shows generation, recipients and any failure reason. This is evidence about Email delivery troubleshooting, not direct proof of the required Email notification trigger and condition behavior. The relevant check is that test messages are generated only for eligible record transitions.
Question 312
A reviewer needs an auditable record of approved application dependencies. Testing exposes this failure: Approving every denied operation creates unsafe transitive privileges. Which remediation should be applied FIRST?
- Authorize only documented target and operation combinations.
- Switch to an authorized scope and follow the platform's security rules for the target object.
- Disable scope enforcement for the entire instance to solve one caller error.
- Review supported application file protection policies and their lifecycle before distribution.
Explanation
Correct Answer
A:Authorize only documented target and operation combinations. Confirmation requires seeing that the approved operation succeeds and unapproved calls remain restricted.
Incorrect Answers
B:Switch to an authorized scope and follow the platform's security rules for the target object. It addresses Scope context and security rule ownership, not the diagnosed Runtime cross-scope access tracking failure. Approving every denied operation creates unsafe transitive privileges.
C:Disable scope enforcement for the entire instance to solve one caller error. This retains the Runtime cross-scope access tracking problem. Cross-scope privilege records track and govern permitted interactions.
D:Review supported application file protection policies and their lifecycle before distribution. It addresses Protected application files and distribution, not the diagnosed Runtime cross-scope access tracking failure. Approving every denied operation creates unsafe transitive privileges.
Question 313
A new incoming mailbox message should create a case while a reply should update its original case. After the recommended Inbound email creation versus reply change is implemented, which observation MOST directly verifies that it works?
- Email generation follows the configured notification with separately testable triggers.
- A fresh email creates one record while a recognized reply updates the intended existing one.
- Changing the property in a test instance changes the intended behavior.
- The test email reaches the expected recipient with accurate reference values.
Explanation
Correct Answer
B:A fresh email creates one record while a recognized reply updates the intended existing one. This directly tests whether the Inbound email creation versus reply goal was met. Inbound email processing uses message classification and matching rules.
Incorrect Answers
A:Email generation follows the configured notification with separately testable triggers. This is evidence about Event-driven email versus synchronous code, not direct proof of the required Inbound email creation versus reply behavior. The relevant check is that a fresh email creates one record while a recognized reply updates the intended existing one.
C:Changing the property in a test instance changes the intended behavior. This is evidence about Application properties for behavior toggles, not direct proof of the required Inbound email creation versus reply behavior. The relevant check is that a fresh email creates one record while a recognized reply updates the intended existing one.
D:The test email reaches the expected recipient with accurate reference values. This is evidence about Email recipients and templates, not direct proof of the required Inbound email creation versus reply behavior. The relevant check is that a fresh email creates one record while a recognized reply updates the intended existing one.
Question 314
A user guesses the sys_id of a private record even though the module is hidden. After the recommended Distinguish module access from record roles change is implemented, which observation MOST directly verifies that it works?
- Direct URL and API tests fail for users without the record role.
- Read, create and write results match an explicit access matrix for each persona.
- Unauthorized write attempts are rejected while permissible reads still succeed.
- Role inspection demonstrates only expected included rights.
Explanation
Correct Answer
A:Direct URL and API tests fail for users without the record role. This directly tests whether the Distinguish module access from record roles goal was met. Security checks must protect actual data access regardless of how records are reached.
Incorrect Answers
B:Read, create and write results match an explicit access matrix for each persona. This is evidence about Impersonation for end-user testing, not direct proof of the required Distinguish module access from record roles behavior. The relevant check is that direct URL and API tests fail for users without the record role.
C:Unauthorized write attempts are rejected while permissible reads still succeed. This is evidence about Table write operation ACL, not direct proof of the required Distinguish module access from record roles behavior. The relevant check is that direct URL and API tests fail for users without the record role.
D:Role inspection demonstrates only expected included rights. This is evidence about Role inclusion and effective access, not direct proof of the required Distinguish module access from record roles behavior. The relevant check is that direct URL and API tests fail for users without the record role.
Question 315
Two apps both use a property called enabled and one must not control the other. After the recommended Property naming in scoped applications change is implemented, which observation MOST directly verifies that it works?
- The owning application reads its own setting without collisions.
- Tests show only permitted principals can access credentials while timeout remains configurable.
- Changing the property in a test instance changes the intended behavior.
- The job and event consumer produce consistent results on the same test records.
Explanation
Correct Answer
A:The owning application reads its own setting without collisions. This directly tests whether the Property naming in scoped applications goal was met. Namespaced properties reduce configuration conflicts among unrelated applications.
Incorrect Answers
B:Tests show only permitted principals can access credentials while timeout remains configurable. This is evidence about Properties are not a secret vault, not direct proof of the required Property naming in scoped applications behavior. The relevant check is that the owning application reads its own setting without collisions.
C:Changing the property in a test instance changes the intended behavior. This is evidence about Application properties for behavior toggles, not direct proof of the required Property naming in scoped applications behavior. The relevant check is that the owning application reads its own setting without collisions.
D:The job and event consumer produce consistent results on the same test records. This is evidence about Utility Script Include for scheduled jobs, not direct proof of the required Property naming in scoped applications behavior. The relevant check is that the owning application reads its own setting without collisions.
Question 316
A scheduled reminder may run twice after a restart and must not send duplicate notices. Which approach BEST meets the requirement while respecting the system constraints?
- Call a registered event with gs.eventQueue from an appropriate server context.
- Move reusable logic into a scoped utility Script Include and call it from permitted server contexts.
- Query only eligible records and mark processed work using a consistent idempotency strategy.
- Assume the calendar schedule alone guarantees a job is never retried.
Explanation
Correct Answer
C:Query only eligible records and mark processed work using a consistent idempotency strategy. Repeating scheduled operations requires state tracking when writes are not naturally idempotent. Verification should demonstrate that re-running the job produces no duplicate business side effects for the same item.
Incorrect Answers
A:Call a registered event with gs.eventQueue from an appropriate server context. This primarily addresses gs.eventQueue dispatch from server script, not the specific Scheduled job idempotent processing decision. Here, repeating scheduled operations requires state tracking when writes are not naturally idempotent.
B:Move reusable logic into a scoped utility Script Include and call it from permitted server contexts. This primarily addresses Utility Script Include for scheduled jobs, not the specific Scheduled job idempotent processing decision. Here, repeating scheduled operations requires state tracking when writes are not naturally idempotent.
D:Assume the calendar schedule alone guarantees a job is never retried. This is an unsafe or ineffective shortcut for Scheduled job idempotent processing. A job without processed markers can create repeated tasks or notifications.
Question 317
An app must evaluate pending reminders each night regardless of user logins. If the relevant Scheduled Script Execution timing safeguard is omitted, which outcome is the MOST directly associated failure?
- Passing secrets or unvalidated user-supplied addresses in event parameters can disclose data.
- Generic property names can be overwritten or misinterpreted across teams.
- Incorrect table or parameter values can make event consumers act on the wrong record.
- Incorrect schedules can skip deadlines or run too frequently.
Explanation
Correct Answer
D:Incorrect schedules can skip deadlines or run too frequently. Scheduled scripts run server logic according to schedule settings independent of interactive form updates. The corrective approach is to test schedule and timezone assumptions with representative dates.
Incorrect Answers
A:Passing secrets or unvalidated user-supplied addresses in event parameters can disclose data. This failure pattern belongs chiefly to Event parameters for notifications; it is not the failure most directly tested in the Scheduled Script Execution timing situation. Incorrect schedules can skip deadlines or run too frequently.
B:Generic property names can be overwritten or misinterpreted across teams. This failure pattern belongs chiefly to Property naming in scoped applications; it is not the failure most directly tested in the Scheduled Script Execution timing situation. Incorrect schedules can skip deadlines or run too frequently.
C:Incorrect table or parameter values can make event consumers act on the wrong record. This failure pattern belongs chiefly to gs.eventQueue dispatch from server script; it is not the failure most directly tested in the Scheduled Script Execution timing situation. Incorrect schedules can skip deadlines or run too frequently.
Question 318
A partner-facing producer should not permit unrelated employees to create internal restricted records. Which approach BEST meets the requirement while respecting the system constraints?
- Configure a Record Producer targeting the required app table and map its variables appropriately.
- Configure and test supported post-submit navigation or confirmation with the correct record reference.
- Configure producer availability and enforce target table create/read ACLs.
- Assume a publicly visible producer automatically grants permanent read access to every created record.
Explanation
Correct Answer
C:Configure producer availability and enforce target table create/read ACLs. Producer visibility and target-table access are distinct authorization concerns. Verification should demonstrate that eligible users create appropriate records while unauthorized create and read attempts fail.
Incorrect Answers
A:Configure a Record Producer targeting the required app table and map its variables appropriately. This primarily addresses Record Producer creates app record, not the specific Record producer access and audience decision. Here, producer visibility and target-table access are distinct authorization concerns.
B:Configure and test supported post-submit navigation or confirmation with the correct record reference. This primarily addresses Producer post-submission behavior, not the specific Record producer access and audience decision. Here, producer visibility and target-table access are distinct authorization concerns.
D:Assume a publicly visible producer automatically grants permanent read access to every created record. This is an unsafe or ineffective shortcut for Record producer access and audience. Relying on a hidden producer alone cannot block direct API record creation.
Question 319
A new custom app needs identifiers that will not collide with global artifacts. If the relevant Application scope namespace safeguard is omitted, which outcome is the MOST directly associated failure?
- Confusing a scope prefix with a runtime user role can leak restricted records.
- A module targeting the wrong table can display unrelated data.
- Editing in Global by mistake can create uncontrolled shared metadata.
- Making changes in the wrong scope complicates packaging and protection.
Explanation
Correct Answer
C:Editing in Global by mistake can create uncontrolled shared metadata. Scoped apps isolate application artifacts and reduce naming collisions. The corrective approach is to verify the application picker and scope prefix before creating files.
Incorrect Answers
A:Confusing a scope prefix with a runtime user role can leak restricted records. This failure pattern belongs chiefly to Scope boundaries versus ACL authorizations; it is not the failure most directly tested in the Application scope namespace situation. Editing in Global by mistake can create uncontrolled shared metadata.
B:A module targeting the wrong table can display unrelated data. This failure pattern belongs chiefly to List module target table; it is not the failure most directly tested in the Application scope namespace situation. Editing in Global by mistake can create uncontrolled shared metadata.
D: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 Application scope namespace situation. Editing in Global by mistake can create uncontrolled shared metadata.
Question 320
A sensitive integration uses proprietary app logic not meant to be public interfaces. An engineer must explain the recommendation for Private scope protects internal application files. Which underlying principle is the MOST accurate?
- Security metadata and application scope boundaries can constrain what ACLs may be edited.
- Read and write authorizations are separate operations that may have different rules.
- Table application access determines cross-scope operation possibilities beyond user permissions.
- Scope protection restricts application artifact usage across apps.
Explanation
Correct Answer
D:Scope protection restricts application artifact usage across apps. Therefore the implementation decision is to keep internal application files within private scope and expose only approved APIs.
Incorrect Answers
A:Marking all utilities public increases unnecessary coupling and attack surface. Security metadata and application scope boundaries can constrain what ACLs may be edited.
B:Marking all utilities public increases unnecessary coupling and attack surface. This describes the separate Table write operation ACL mechanism; the present case instead requires Private scope protects internal application files.
C:Marking all utilities public increases unnecessary coupling and attack surface. Table application access determines cross-scope operation possibilities beyond user permissions.