What are the options that can be set to determine when a Business Rule executes? Choose 4 answers
Correct Answer: B,D,F,G
Business Rules are server-side scripts that run when a record is displayed, inserted, updated, or deleted. The "When" field on the Business Rule form determines exactly when the logic runs relative to the database operation. The four valid options are: Display: Runs before the form is presented to the user (used to pass data from server to client via the Scratchpad). Before: Runs after the user submits the form but before the data is written to the database. (Ideal for validation or updating the current record). After: Runs immediately after the data is written to the database. (Ideal for updating related records). Async: Runs after the data is written, but is processed by a background scheduler rather than immediately. (Ideal for external integrations or heavy calculations that shouldn't block the user's screen). "Load," "Change," "Click," and "Submit" are typically associated with Client Scripts (onLoad, onChange, onSubmit) or UI Actions, not Business Rules.
Question 347
Which testing framework is used to test ServerNew Applications?
Correct Answer: D
The Automated Test Framework (ATF) is the built-in testing framework in ServiceNow used to test applications, including Server-side scripts and logic. Key Features of ATF: Enables automated testing of ServiceNow applications without manual effort. Can test server-side scripts (e.g., Business Rules, Script Includes, and Workflows). Supports UI testing for forms, lists, and portals. Reduces testing time and enhances release reliability. Why ATF is Used for Testing ServiceNow Applications? ServiceNow is a low-code/no-code platform, so ATF provides a platform-specific testing tool. ATF allows test creation without coding, making it easy for administrators and developers to use. Integrates with Continuous Integration (CI/CD) pipelines to ensure smooth updates. Why Other Options Are Incorrect? A . Selenium → ❌ Incorrect Selenium is used for web UI automation, but it is not built into ServiceNow. ATF is the preferred testing framework for ServiceNow applications. B . Test Driven Framework (TDF) → ❌ Incorrect No such framework called "Test Driven Framework" in ServiceNow. TDD (Test-Driven Development) is a software development methodology, not a testing tool. C . JUnit → ❌ Incorrect JUnit is a Java-based testing framework used for Java applications. ServiceNow scripts use JavaScript, not Java. Official ServiceNow Documentation Reference: Automated Test Framework (ATF)
Question 348
What do you need to do before you can use an Application-based trigger in your flow?
Correct Answer: C
In ServiceNow Flow Designer, an Application-based trigger is used to initiate a flow based on events from a specific application. Before using an application-based trigger, you must ensure that the necessary application spoke and any required plug-ins are activated. Breakdown of Key Concepts: Application Spokes: Spokes are pre-built integration modules that allow Flow Designer to interact with different applications within ServiceNow. Each application that provides triggers typically has its own spoke. Plug-ins: Some application spokes rely on additional plug-ins for full functionality. These plug-ins must be enabled before the application-based triggers can be used. Why Other Options Are Incorrect: A . Activate application trigger spoke → Incorrect There is no generic "Application Trigger Spoke." Instead, each application has its own spoke that must be enabled. B . Activate trigger security rules → Incorrect Security rules govern access to triggers, but they do not enable the functionality of application-based triggers. D . Assign Application trigger role [sn_app_trigger_write] to SME → Incorrect Roles like sn_app_trigger_write may provide permissions but do not activate the trigger itself. E . Activate application plugins only → Incorrect While plug-ins may be necessary, you also need to activate the corresponding spoke. Reference: ServiceNow Docs: Flow Designer Application Spokes ServiceNow Docs: Activating Plug-ins ServiceNow CSA Official Study Materials (Application-based triggers in Flow Designer)