CCNA Application development using ServiceNow Studio Questions

60 questions · Application development using ServiceNow Studio · All types, answers revealed

1
Multi-Selecthard

A developer is creating an application in ServiceNow Studio and needs to ensure that all new records created in a custom table are automatically assigned a number. Which THREE methods can be used to achieve this? (Choose three.)

Select 3 answers
A.Use a default value on the number field.
B.Use a flow with a create record action that sets the number.
C.Use a database view to generate numbers.
D.Use a client script to set the number on load.
E.Use a business rule with a script.
AnswersA, B, E

A default value, such as a function, can generate a number automatically.

Why this answer

Options A, B, and C are correct. A business rule can set the number via script, a flow can assign a number using a 'Create Record' step, and a default value on the number field will apply automatically. Option D (client script) is unreliable because it runs client-side and can be bypassed.

Option E (database view) does not generate numbers.

2
MCQeasy

A developer needs to create a custom application that tracks employee training completions. The application must allow managers to view a list of their direct reports' training records. Which ServiceNow Studio feature should be used to define the relationship between the Manager and Employee tables?

A.Create a Reference field on the Employee table pointing to the sys_user table.
B.Write a Business Rule to populate a manager field.
C.Configure an Access Control Rule (ACL) to filter records.
D.Use the GlideRecord API to join the tables in a script.
AnswerA

Correct: Reference fields define relationships between tables.

Why this answer

Option A is correct because a Reference field on the Employee table pointing to the sys_user table establishes a direct database relationship between the employee record and their manager record. This allows the platform to automatically resolve the manager's user record and enables out-of-the-box features like dot-walking and related list displays in ServiceNow Studio.

Exam trap

The trap here is that candidates confuse runtime data manipulation (Business Rules, GlideRecord) with schema definition (Reference fields), or confuse security controls (ACLs) with data relationships, leading them to select options that address behavior rather than structure.

How to eliminate wrong answers

Option B is wrong because a Business Rule is procedural logic that runs on database operations (insert/update/delete) and does not define a persistent table relationship; it would only populate a field after the relationship structure already exists. Option C is wrong because an Access Control Rule (ACL) controls read/write permissions on records, not the structural relationship between tables. Option D is wrong because GlideRecord API is used for server-side scripting to query and manipulate data at runtime, not for defining static table relationships in the application schema.

3
MCQeasy

A developer is working on an application in Studio and needs to create a new table that extends a base table. Which step is essential?

A.Import the table from an update set.
B.Use the 'Create Application File' wizard and select 'Table'.
C.Use the Database Views module.
D.Define the table schema manually via script.
AnswerB

This is the standard method in Studio for creating tables.

Why this answer

Option B is correct because in Studio, the recommended way to create a new table is using the 'Create Application File' wizard and selecting 'Table'. Options A and D are not Studio-specific methods, and C is not a standard creation approach.

4
Multi-Selectmedium

Which TWO statements are true about using ServiceNow Studio for application development?

Select 2 answers
A.Studio provides a guided interface to create application files such as tables, business rules, and client scripts.
B.Studio requires a separate HI (High-Impact) instance to develop applications.
C.When creating a new application in Studio, a new scope is automatically generated without user input.
D.Studio can only be used by users with the admin role.
E.Studio allows integration with source control systems like Git for version management.
AnswersA, E

Studio is designed to streamline creation of application artifacts.

Why this answer

Option A is correct because ServiceNow Studio provides a guided, low-code interface that simplifies the creation of application artifacts such as tables, business rules, client scripts, UI policies, and more. It offers wizards and templates to help developers build components without needing to manually write all the underlying XML or JavaScript from scratch, making it ideal for rapid application development within the Now Platform.

Exam trap

The trap here is that candidates often assume Studio requires admin privileges or a special instance type, but in reality, Studio is designed for all application developers and works on any standard instance, and the scope creation process always requires user confirmation.

5
MCQhard

A developer has created a custom application and wants to ensure that all changes are captured in an update set for migration. Which practice should be followed?

A.Set the application to 'Published' to automatically create update sets.
B.Use the 'Update Sets' module to capture all changes from the application.
C.Use the 'Export to Update Set' feature in Studio.
D.Manually copy changes to another instance.
AnswerC

This creates a complete update set for the application.

Why this answer

Option B is correct because Studio's 'Export to Update Set' feature packages all application changes into an update set XML. Option A is manual and error-prone, C is not a built-in feature, and D may miss scope-specific changes.

6
MCQhard

A developer is building a flow in Flow Designer as part of a scoped application. The flow needs to trigger when a record is created in a specific table. Which trigger should be used?

A.'Record Created' trigger with a condition
B.'Event' trigger
C.'Application Record Created' trigger
D.'Scheduled' trigger
AnswerA

Correct trigger.

Why this answer

Option C is correct because the 'Record Created' trigger fires on record creation. Option A is incorrect as 'Scheduled' is time-based. Option B is incorrect as 'Application Record Created' is not a standard trigger.

Option D is incorrect as 'Event' requires custom events.

7
MCQhard

A developer is building a custom application in ServiceNow Studio for IT asset management. The application includes a table 'Asset' with fields: asset_tag (string), serial_number (string), purchase_date (date), cost (currency), and status (choice: In Use, In Stock, Retired). The developer needs to create a business rule that automatically sets the status to 'Retired' when the cost is zero and the purchase_date is older than 5 years. The business rule should run before the record is saved to the database and should not prevent the save if conditions are not met. The developer writes the following business rule in Studio: Table: Asset, When: Before, Order: 100, Condition: current.cost == 0 && current.purchase_date < gs.yearsAgoStart(5). The script is: current.status = 'Retired'; However, the status is not being updated as expected. What is the most likely issue?

A.Replace gs.yearsAgoStart(5) with gs.yearsAgoEnd(5) to get the end of the year 5 years ago.
B.Change the table from 'Asset' to 'Asset [new]' as the business rule may be on the wrong table.
C.Increase the order of the business rule to 200 to ensure it runs after other rules.
D.Replace gs.yearsAgoStart(5) with gs.yearsAgo(5) to get the exact date 5 years ago.
AnswerD

gs.yearsAgo(5) returns the date exactly 5 years before the current date, which correctly implements 'older than 5 years'.

Why this answer

The issue is that `gs.yearsAgoStart(5)` returns the start of the year (January 1st) five years ago, not the exact date five years ago. This means a record with a purchase_date that is, for example, 5 years and 1 month old might still be after that start-of-year date and thus not match the condition. The correct method is `gs.yearsAgo(5)`, which returns the exact date and time five years ago, ensuring the comparison works as intended for any purchase_date older than 5 years.

Exam trap

The trap here is that candidates confuse `gs.yearsAgoStart()` and `gs.yearsAgoEnd()` with `gs.yearsAgo()`, not realizing that the 'Start' and 'End' variants are for fiscal or calendar year boundaries, not for exact date arithmetic.

How to eliminate wrong answers

Option A is wrong because `gs.yearsAgoEnd(5)` returns the end of the year (December 31st) five years ago, which would be even less restrictive than `gs.yearsAgoStart`, making the condition even less likely to match records that are exactly 5+ years old. Option B is wrong because the table name 'Asset' is correct; the business rule is defined on the 'Asset' table, and there is no indication the table is misnamed or that a '[new]' suffix is needed—Studio uses the actual table name. Option C is wrong because increasing the order does not fix the logic error; order only affects the sequence of execution among multiple business rules, but the condition itself is incorrect due to the wrong date function.

8
MCQmedium

A developer is building a custom application in ServiceNow Studio. The application requires a table that stores incident-like records but with additional custom fields. The developer wants to leverage existing functionality such as assignment rules, escalation, and SLA tracking. Which approach should the developer take?

A.Extend the Incident table and add custom fields to the extended table.
B.Clone the Incident table and rename it, then modify the clone.
C.Create a new table from scratch and manually add all necessary fields and business rules.
D.Use the Configuration Management Database (CMDB) to store the records.
AnswerA

Extending the Incident table inherits all existing features like assignment rules, escalation, and SLA tracking.

Why this answer

Extending the Incident table (Option A) is correct because it allows the developer to inherit all existing Incident functionality—such as assignment rules, escalation, and SLA tracking—while adding custom fields. In ServiceNow, table extension creates a child table that inherits all business rules, ACLs, and workflows from the parent, ensuring the custom application leverages the full Incident lifecycle without reimplementation.

Exam trap

The trap here is that candidates may think cloning or creating from scratch gives more control, but ServiceNow's extension model is the only way to inherit core functionality without manual rework, and the exam tests understanding that extension preserves parent-child relationships and system updates.

How to eliminate wrong answers

Option B is wrong because cloning the Incident table creates a separate, independent table that does not inherit future updates or patches to the Incident table, leading to maintenance overhead and potential divergence from core functionality. Option C is wrong because creating a table from scratch requires manually recreating all business rules, assignment rules, escalation logic, and SLA definitions, which is inefficient and error-prone, defeating the purpose of leveraging existing functionality. Option D is wrong because the CMDB is designed for configuration items (CIs) and their relationships, not for operational incident-like records; storing such records in the CMDB violates its data model and would not support assignment rules, escalation, or SLA tracking.

9
Multi-Selecteasy

Which TWO application file types can be exported as XML from Studio?

Select 2 answers
A.Business Rules
B.Reports
C.System Properties
D.UI Policies
E.Homepages
AnswersA, D

Correct. Business Rules are exportable application files.

Why this answer

Options A and B are correct because Business Rules and UI Policies are standard application files that can be exported. Option C is wrong as Reports are not part of the application file system. Option D is wrong because Homepages are also not application files.

Option E is wrong as System Properties are configuration items, not exported as XML via Studio.

10
MCQhard

A developer is creating a business rule that runs before a query to modify the query condition. Which event should be specified?

A.'before insert'
B.'after query'
C.'display'
D.'before query'
AnswerD

Correct event for modifying query.

Why this answer

Option C is correct because 'before query' allows modifying the query before execution. Option A is incorrect as it is for inserts. Option B is incorrect because 'after query' is too late.

Option D is incorrect as 'display' is for form display.

11
MCQmedium

Refer to the exhibit. The above JSON represents an application manifest generated by Studio. What does the dependency on 'global' with version '>=3.0.0' indicate?

A.The application requires an update set from global scope.
B.The application must be installed on an instance with ServiceNow version 3.0.0 or later.
C.The application depends on another application with scope 'global' that must be at least version 3.0.0.
D.The application's global update set must be at version 3.0.0.
AnswerB

'global' scope with a version constraint indicates the minimum platform version.

Why this answer

Option B is correct. In ServiceNow application manifests, a dependency on 'global' refers to the platform version (ServiceNow release). It means the application requires the instance to be at least version 3.0.0.

Option A confuses update sets, C misinterprets scope, and D is incorrect.

12
Multi-Selectmedium

A developer is using ServiceNow Studio to deploy a custom application to a production instance. Which THREE actions are recommended best practices for deployment?

Select 3 answers
A.Use update sets to move the application to production.
B.Publish the application to the ServiceNow Store for deployment.
C.Test the application thoroughly in a sub-production instance before deployment.
D.Export the application as a scoped application archive (.snc) file.
E.Ensure all application dependencies are included in the export.
AnswersC, D, E

Testing in a non-production environment is critical.

Why this answer

Option C is correct because testing in a sub-production instance (e.g., development or test instance) is a fundamental best practice to validate application functionality, identify defects, and ensure stability before deploying to production. ServiceNow Studio integrates with update sets and scoped applications, but thorough testing in an isolated environment prevents disruptions to live services and data.

Exam trap

The trap here is that candidates may confuse update sets (which are suitable for platform customizations but not for scoped applications) with the recommended deployment method for Studio-created applications, or mistakenly think the ServiceNow Store is a valid internal deployment target.

13
MCQeasy

A developer wants to use ServiceNow Studio to create a client script that runs when a form loads and sets a field value based on the current user's department. Which type of client script should be used?

A.onLoad client script
B.onChange client script
C.onSubmit client script
D.onCellEdit client script
AnswerA

onLoad runs when the form is opened.

Why this answer

An onLoad client script runs automatically when a form is opened, making it the correct choice for setting a field value based on the current user's department at the time the form loads. This script type executes in the browser after the form data is retrieved but before the user interacts with the form, allowing immediate field population.

Exam trap

The trap here is that candidates may confuse onLoad with onChange, thinking a field change event is needed to set a value, but the requirement explicitly states 'when a form loads', which directly maps to the onLoad client script type.

How to eliminate wrong answers

Option B is wrong because an onChange client script triggers only when a specific field value changes, not when the form initially loads, so it cannot set the field value on form open. Option C is wrong because an onSubmit client script runs when the form is submitted, which is too late for setting a value on load. Option D is wrong because an onCellEdit client script is used in list or grid views for inline cell editing, not for form load events.

14
Multi-Selectmedium

Which THREE of the following are components that can be created directly within ServiceNow Studio?

Select 3 answers
A.Business Rule
B.Report
C.ACL
D.UI Macro
E.Flow
AnswersA, C, D

Created in Studio.

Why this answer

Options A, B, and E are correct: Business Rules, UI Macros, and ACLs can be created in Studio. Reports are created in Reports module. Flows are created in Flow Designer.

15
MCQhard

A developer encounters this error when running a business rule in a scoped application. The table 'x_myapp_incident' was created in the application scope and has records in it. What is the most likely cause?

A.The ACLs on the table restrict access for the script's user.
B.The business rule is trying to access a table in a different scope without using the 'global.' prefix.
C.The application was installed via an update set and the table was not included.
D.The table was removed from the application scope after creation.
AnswerD

If the table is removed from the scope, it becomes inaccessible.

Why this answer

When a table is removed from an application scope after creation, the table still exists in the instance but is no longer associated with the application. Business rules running in the scoped application cannot access tables that are not part of the application's scope, causing an error. This is because scoped applications enforce strict table visibility rules, and only tables explicitly included in the application scope are accessible.

Exam trap

ServiceNow often tests the distinction between a table not existing at all versus a table existing but being out of scope, leading candidates to mistakenly choose options about update sets or ACLs instead of recognizing the scope removal scenario.

How to eliminate wrong answers

Option A is wrong because ACLs control record-level access (read/write/delete), not the ability to reference a table in a script; a missing table error is a compile-time or runtime scope visibility issue, not an ACL denial. Option B is wrong because the table 'x_myapp_incident' already has the application's scope prefix, so it is not in a different scope; the error is about the table being removed from the current scope, not about missing a 'global.' prefix. Option C is wrong because if the application was installed via an update set and the table was not included, the table would simply not exist in the instance; the error message indicates the table exists (it has records) but is not accessible from the scoped application.

16
MCQmedium

A developer is creating a custom application in ServiceNow Studio and wants to ensure that the application can be easily installed in other instances without conflicts. Which approach should the developer follow?

A.Develop the application in global scope and manually copy components to target instances.
B.Use the 'Application' module in the navigator to create a new application without scope.
C.Create the application with a unique scope prefix in Studio and export as a scoped application.
D.Create the application in the global scope and use update sets for distribution.
AnswerC

Scoped applications provide isolation and easy distribution.

Why this answer

Option C is correct because creating an application with a unique scope prefix in ServiceNow Studio ensures that all application artifacts (tables, scripts, UI elements) are isolated within that scope, preventing naming conflicts with other applications. Exporting as a scoped application allows the application to be installed in other instances via the ServiceNow Store or manual import, preserving its scope isolation and dependencies.

Exam trap

The trap here is that candidates may think update sets (Option D) are a valid distribution method for custom applications, but update sets are designed for configuration changes in global scope and lack the isolation and dependency management that scoped applications provide.

How to eliminate wrong answers

Option A is wrong because developing in global scope and manually copying components to target instances bypasses the scope isolation mechanism, leading to potential naming conflicts and missing dependencies, and is not a supported distribution method. Option B is wrong because the 'Application' module in the navigator does not allow creating an application without a scope; all applications in ServiceNow must have a scope, and creating one without a scope is not possible. Option D is wrong because creating the application in global scope and using update sets for distribution does not provide scope isolation, and update sets can cause conflicts when applied to instances with existing customizations, unlike scoped applications which are self-contained.

17
Multi-Selecthard

A developer is creating a scoped application and needs to reference a global table (e.g., 'sys_user') from a business rule. Which TWO statements are true regarding cross-scope access?

Select 2 answers
A.Scoped applications can create records in global tables via GlideRecord without restrictions.
B.Scoped applications can call global script includes by default.
C.To write to a global table, the application must be granted the 'global' scope or have appropriate ACLs.
D.Scoped applications can update global tables without any additional configuration.
E.Scoped applications can read global tables using the 'global.' prefix.
AnswersC, E

Writing requires explicit permission.

Why this answer

Option C is correct because scoped applications operate within an access control framework that restricts direct writes to global tables. To write to a global table like 'sys_user', the application must either be granted the 'global' scope (which removes scoping restrictions) or have appropriate ACLs that explicitly allow the write operation. Without these, a scoped application's GlideRecord write will fail due to cross-scope access controls enforced by the ServiceNow platform.

Exam trap

ServiceNow often tests the misconception that scoped applications can freely read and write global tables with just the 'global.' prefix, but the trap is that the prefix only grants read access—writes always require additional ACLs or global scope assignment.

18
Multi-Selectmedium

Which TWO of the following are valid methods to create a new application scope in ServiceNow Studio?

Select 2 answers
A.Convert a global table to scoped.
B.Import an application from an update set.
C.Use the Application Creation Wizard.
D.Click 'Create Application' in the Studio dashboard.
E.Clone an existing application.
AnswersD, E

Primary method.

Why this answer

Options A and C are correct: clicking 'Create Application' and cloning an existing application are valid. Option B is importing, not creating. Option D is not a method.

Option E is not a Studio feature.

19
MCQeasy

Refer to the exhibit. What does this script do?

A.Does nothing because get returns false.
B.Updates the state of incident INC001234 to 2.
C.Creates a new incident.
D.Deletes the incident.
AnswerB

The script uses get() to fetch the record, setValue to change state, and update() to save.

Why this answer

Option A is correct. The script retrieves the incident with number 'INC001234', sets its state to 2, and updates the record. Option B would require deleteRecord(), C would require insert(), and D is false because get returns true if found.

20
MCQeasy

A company needs to create a new application in ServiceNow Studio. What is the correct first step?

A.Navigate to System Applications > Studio and click 'Create Application'.
B.Open Studio from the left navigation menu, then click 'Create Application'.
C.Use the Application Navigator to create a new application.
D.Go to Application Files > New and select 'Application'.
AnswerB

Correct first step in Studio.

Why this answer

Option A is correct because opening Studio and clicking 'Create Application' is the standard method. Option B is incorrect because the System Applications module is deprecated for creating applications. Option C is incorrect because it creates individual files, not an application.

Option D is incorrect because the Application Navigator does not have a 'create application' option.

21
MCQmedium

A developer is working on a new application and wants to ensure all changes are tracked for deployment. The developer creates a new application in Studio and makes modifications. When the developer tries to create an update set, the application changes are not captured. The developer checks the application properties and sees the 'Update Set' field is set to 'Default'. The developer is in a scoped application. What is a possible reason?

A.The application is marked as 'Not in an update set'.
B.The application's scope is set to 'Global'.
C.The application is in a different phase.
D.The developer has not set the 'Update Set' field on the application.
AnswerA

Correct. This causes changes to not be tracked.

Why this answer

Option A is correct because if the application's 'Update Set' field is set to 'None' or 'Not in an update set', changes won't be captured. Option B is wrong because the application is scoped. Option C is wrong because there is no 'Update Set' field on the application record directly; it's a property.

Option D is wrong because phases are irrelevant.

22
MCQmedium

A company uses a scoped application to manage IT equipment. The application has a client script that calls a GlideRecord query on a large table. Recently, the script started showing 'Script exceeded maximum execution time' errors. The developer checks the Studio debugger and sees the query runs on the entire table without filters. The developer needs to fix this issue. The environment is production, and downtime must be minimized. Which course of action should the developer take?

A.Move the query to a Business Rule and use a client-callable API.
B.Increase the script execution timeout in system properties.
C.Use GlideAggregate with multiple queries.
D.Add an index on the table.
AnswerA

Correct. Offloading to server-side solves the timeout and improves performance.

Why this answer

Option D is correct because moving the query to a Business Rule and using a client-callable API (like GlideAjax) offloads the processing to the server and avoids client-side timeouts. Option A is wrong because increasing timeout is not a sustainable fix. Option B is wrong because GlideAggregate is for aggregation, not for retrieving records.

Option C is wrong because adding an index would not help if the query is unfiltered; it would still scan.

23
Multi-Selecthard

A developer is experiencing an issue where a client script is not executing in a scoped application. Which TWO of the following could be causing the issue?

Select 2 answers
A.The script has a syntax error.
B.The script is in the global scope but the application is scoped.
C.The user does not have the 'client_script_admin' role.
D.The script's 'Condition' is set to 'true'.
E.The script is using a global variable.
AnswersA, B

Will prevent execution.

Why this answer

Options A and D are correct: script in global scope (not accessible) and syntax error are common causes. Option B is a valid condition. Option C using global variable is fine.

Option E is not a role requirement.

24
MCQhard

A large enterprise has multiple scoped applications that share common code. The developer created a shared application as a dependency. However, when updating the shared application, some dependent applications break. The developer needs to manage updates to the shared application without causing disruptions. The environment is under change control and requires approval for any deployment. Which approach is the best practice?

A.Use Semantic Versioning and test before update.
B.Create a separate update set for each dependent application.
C.Use update sets to track changes to the shared application.
D.Avoid shared dependencies and duplicate code in each application.
AnswerA

Correct. Semantic Versioning helps manage breaking changes.

Why this answer

Option C is correct because Semantic Versioning allows developers to communicate changes (major, minor, patch) and test before updating dependencies. Option A is wrong because update sets alone do not manage version compatibility. Option B is wrong because creating separate update sets does not solve compatibility.

Option D is wrong because avoiding shared dependencies is not practical and increases duplication.

25
MCQhard

A developer is designing a UI Policy that should run client-side but references a complex server-side calculation. Which approach is best?

A.Create a Business Rule and call it from UI Policy.
B.Use a client script with GlideAjax.
C.Use a UI Macro.
D.Use a UI Policy condition string.
AnswerB

Correct. GlideAjax enables server-side calls from client scripts.

Why this answer

Option A is correct because GlideAjax allows making asynchronous server calls from client scripts. Option B is wrong as UI Policy condition strings cannot perform complex calculations. Option C is wrong because Business Rules run server-side and cannot be called directly from UI Policy.

Option D is wrong as UI Macros are for UI presentation, not server-side logic.

26
MCQmedium

A developer builds an application in Studio and wants to ensure all changes are captured in an update set. What is true?

A.The developer needs to set the 'Update Set' field on each record to 'Default Update Set'.
B.Studio automatically creates an update set for the application scope when the application is created.
C.Update sets are not used for scoped applications; only for global scope.
D.The developer must manually create a new update set and assign it to the application scope.
AnswerB

Correct behavior.

Why this answer

Option B is correct because Studio automatically creates an update set for the application scope. Option A is incorrect because manual creation is not required. Option C is incorrect because records are automatically associated.

Option D is incorrect because update sets are used for scoped applications.

27
MCQhard

A developer is troubleshooting a client script that hides a field on a form when a condition is met, but it is not working. The script is attached to the 'g_form' object in Studio. What is the most likely reason?

A.The client script is set to run on the 'Load' event instead of 'Change'.
B.The script is using a deprecated API.
C.The script is not running due to a missing 'Run As' role.
D.The field is not part of the application scope.

Why this answer

Option C is correct because a business rule that modifies query conditions must use 'before query'. Option A is incorrect because it runs on insert, not query. Option B is incorrect because 'after query' is too late.

Option D is incorrect because 'display' is for form display, not query.

28
MCQmedium

A developer needs to share a custom table from a scoped application with another application. What is the best practice in Studio?

A.Set the table's 'Accessible from' field to include the other application scope.
B.Export the table definition as XML and import into the other application.
C.Create a cross-scope privilege.
D.Use a web service to expose the table data.
AnswerC

Standard method.

Why this answer

Option D is correct because cross-scope privileges are the standard way to share tables between scoped applications. Option A is incorrect as exporting and importing is not a real-time sharing method. Option B is incorrect because there is no 'Accessible from' field.

Option C is incorrect because web services are not the best practice for table sharing.

29
MCQmedium

A large enterprise has developed a custom scoped application in ServiceNow Studio to manage employee onboarding. The application includes multiple business rules, client scripts, and a custom table. Recently, after a clone from production to a sub-production instance, the application fails to upgrade properly. The developer notices that the application version in the sub-prod instance shows an older version than the source, and many application files appear to be missing. The developer suspects the issue is related to how the application was packaged or the upgrade process. What should the developer do to resolve this issue?

A.Run the 'Application File Synchronization' job to refresh the application files from the source.
B.Use the Studio 'Compare Application' feature to identify missing files and manually copy them over.
C.Check the update set that was used to move the application; ensure all application artifacts are included and re-apply it.
D.Delete the application from the sub-prod instance and re-import the application source from the production instance's export.
AnswerD

Correct: Exporting and importing the entire application as XML ensures all files and metadata are preserved.

Why this answer

Option D is correct because when a clone from production to sub-production results in an older application version and missing files, the most reliable fix is to delete the broken application and re-import a fresh export from the source instance. Cloning can corrupt scoped application metadata or leave orphaned records, and re-importing ensures the entire application payload—including all business rules, client scripts, and table definitions—is restored from a known-good source. This bypasses any incremental update set issues or synchronization failures that may have occurred during the clone.

Exam trap

The trap here is that candidates assume update sets or synchronization jobs can fix scoped application issues, but ServiceNow treats scoped applications as atomic units that require full re-import after a clone to avoid version drift and missing artifacts.

How to eliminate wrong answers

Option A is wrong because the 'Application File Synchronization' job is designed to sync file attachments (e.g., images, scripts) within an instance, not to restore missing application artifacts after a clone; it cannot fix version mismatches or missing table definitions. Option B is wrong because the 'Compare Application' feature only highlights differences between instances but does not provide a mechanism to copy files; manually copying files is error-prone and does not address the underlying version corruption. Option C is wrong because update sets are not used to move scoped applications; scoped applications are exported and imported as a single XML or via the App Repository, and re-applying an update set would not restore the full application structure or correct versioning issues.

30
MCQeasy

A developer is creating a Scheduled Job in Studio that needs to run every hour. Which type of trigger should be selected?

A.Date
B.Run once
C.Interval
D.Daily
AnswerC

Interval triggers can be set to repeat every hour.

Why this answer

Option A is correct because an Interval trigger allows specifying a repeat interval, e.g., every 60 minutes. Daily runs once per day, Date runs at a specific date/time, and Run once runs one time.

31
MCQmedium

A developer notices that the business rule does not set the assignment group as expected when a new record is created with state 0. What is the most likely issue?

A.The script has a syntax error.
B.The assignment_group value is not a valid sys_id of a group.
C.The business rule runs after the record is saved, so updates are ignored.
D.The business rule condition is incorrect.
AnswerB

The hardcoded sys_id might not correspond to an existing group.

Why this answer

The most likely issue is that the assignment_group value provided in the script is not a valid sys_id of an existing group. In ServiceNow, the assignment_group field is a reference field to the sys_user_group table, and it must contain a valid sys_id. If the sys_id is invalid or does not exist, the field will not be set, and the business rule will appear to have no effect.

Exam trap

ServiceNow often tests the misconception that any string value can be assigned to a reference field, but in ServiceNow, reference fields require a valid sys_id or a display value that matches an existing record.

How to eliminate wrong answers

Option A is wrong because a syntax error would typically cause the business rule to fail entirely, often generating an error message in the system log, rather than silently not setting the assignment group. Option C is wrong because business rules can run before or after the record is saved; if the business rule runs after save, updates to the record are still applied as long as the script uses the current.update() method or modifies the record directly. Option D is wrong because an incorrect condition would prevent the business rule from running at all, but the developer notes the rule runs (state is set to 0) yet the assignment group is not set, indicating the condition is likely correct.

32
MCQmedium

After importing an update set from another instance, a scoped application shows multiple conflicts in Studio. What is the best first step to resolve?

A.Delete the application and re-import.
B.Review each conflict and choose the correct version.
C.Discard all local changes.
D.Accept all remote changes.
AnswerB

Correct. Proper conflict resolution requires manual review.

Why this answer

Option C is correct because reviewing each conflict and choosing the correct version ensures no unintended changes. Option A is wrong because blindly accepting remote changes may overwrite necessary local modifications. Option B is wrong because discarding local changes could lose important work.

Option D is wrong as it is drastic and unnecessary.

33
MCQmedium

When building a custom application using ServiceNow Studio, which of the following is NOT a recommended practice for version control?

A.Create a new application version for each major release.
B.Track changes using update sets.
C.Use application scope to isolate changes.
D.Directly edit system tables outside of the application scope.
AnswerD

This can lead to unintended side effects and is not controlled by the application versioning.

Why this answer

Option C is correct because directly editing system tables outside the application scope can cause conflicts and is not version-controlled within the application. Options A, B, and D are recommended practices.

34
MCQeasy

Which of the following is a benefit of using ServiceNow Studio for application development?

A.It allows development directly in the production instance.
B.It requires no version control.
C.It automatically deploys applications to all instances.
D.It provides a guided interface to create application components.
AnswerD

Core benefit.

Why this answer

Option D is correct because Studio provides a guided interface for creating application components. Option A is incorrect because developing in production is not recommended. Option B is incorrect as development does not automatically deploy to all instances.

Option C is incorrect because Studio supports version control.

35
Matchingmedium

Match each ServiceNow scripting API to its function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Database operations (CRUD)

Aggregate queries (sum, count, etc.)

System-level methods (user, session, etc.)

Asynchronous server calls from client

Client-side form manipulation

Why these pairings

These are core Glide APIs used in ServiceNow scripting.

36
MCQmedium

When creating a business rule in Studio, a developer wants the rule to run only when the state field changes from 'New' to 'Work in Progress'. Which condition should be used?

A.current.state.changesFrom('New')
B.current.state == 'New' && previous.state == 'Work in Progress'
C.current.state.changesTo('Work in Progress')
D.current.state.changes()
AnswerC

This correctly fires only when state changes to 'Work in Progress'.

Why this answer

Option C is correct because changesTo('Work in Progress') triggers when the field changes to that specific value. Option A triggers on any change, B triggers when changing from a value, and D checks current and previous values incorrectly.

37
MCQhard

A developer needs to implement a server-side validation that prevents update to a record if a related record's status is 'Closed'. Where should this logic be placed?

A.ACL
B.Client script
C.UI policy
D.Business rule
AnswerD

Business rules execute on the server and can abort transactions based on conditions.

Why this answer

Option A is correct because a business rule runs server-side when a record is updated and can enforce the validation before the update occurs. Client scripts and UI policies are client-side and can be bypassed. ACLs are for access control, not validation.

38
MCQhard

Refer to the exhibit. A developer created this Script Include for use in a Service Portal widget. When calling the processor from a client script, the developer passes no 'sysparm_name' parameter. What will be the result?

A.The script will return an empty array.
B.The script will execute the processor's constructor only.
C.The script will throw an error because the method is not allowed.
D.The script will run the getData method by default.
AnswerB

Correct: without sysparm_name, only the constructor runs; no method is executed.

Why this answer

When a Script Include is invoked from a Service Portal widget via a processor, the processor's constructor runs automatically. If no 'sysparm_name' parameter is passed, the processor does not know which method to call, so only the constructor executes. The constructor typically initializes properties but does not return data, resulting in no output.

Exam trap

The trap here is that candidates assume a default method (like getData) runs when no method is specified, but ServiceNow's processor architecture requires an explicit 'sysparm_name' to invoke any method beyond the constructor.

How to eliminate wrong answers

Option A is wrong because an empty array is not returned; the constructor runs and returns nothing unless explicitly coded to return an array. Option C is wrong because no error is thrown; the processor simply does not call any method beyond the constructor. Option D is wrong because the getData method is not called by default; it only runs if the 'sysparm_name' parameter matches its name.

39
MCQeasy

A developer needs to add a new table to an existing scoped application in ServiceNow Studio. What is the correct sequence of steps?

A.Open Studio, select the application, click 'Create Application File', choose 'Table', and define the table.
B.Navigate to 'Tables' module, create a new table, and then assign it to the application.
C.Open Studio, select the application, navigate to 'System Definition' > 'Tables' and create the table.
D.Open Studio, go to 'Application Files', click 'New', select 'Table' and configure.
AnswerA

This is the standard method to add a table to a scoped application in Studio.

Why this answer

Option A is correct because in ServiceNow Studio, the proper workflow to add a new table to an existing scoped application is to open Studio, select the application, click 'Create Application File', choose 'Table', and then define the table. This ensures the table is created within the application scope, maintaining proper application isolation and metadata association.

Exam trap

The trap here is that candidates may confuse the global 'Tables' module or 'System Definition' > 'Tables' path with the Studio-specific workflow, not realizing that scoped application tables must be created within Studio to maintain proper application context and metadata association.

How to eliminate wrong answers

Option B is wrong because navigating to the 'Tables' module directly creates a table in the global scope, not within the scoped application, which breaks application isolation and may cause conflicts. Option C is wrong because 'System Definition' > 'Tables' is a global navigation path that does not respect the application scope, and Studio does not use that path for scoped table creation. Option D is wrong because 'Application Files' in Studio is used to view existing application files, not to create new tables; the correct entry point is 'Create Application File'.

40
MCQmedium

A developer is building a custom application that requires a scheduled job to run every hour and check for overdue tasks. In ServiceNow Studio, what is the best way to implement this?

A.Set up a REST API endpoint that external cron jobs call every hour.
B.Create a Business Rule that runs on 'after' insert and update to check for overdue tasks.
C.Use Flow Designer to create a scheduled flow that runs every hour.
D.Create a Scheduled Job in Studio that runs every hour and executes a script to check overdue tasks.
AnswerD

Scheduled Jobs are designed for periodic execution.

Why this answer

Option D is correct because ServiceNow Studio provides a native 'Scheduled Jobs' module that allows developers to create and manage recurring server-side scripts directly within the IDE. This approach leverages the platform's job scheduler, which runs on the node's clock and integrates with the glide system, ensuring reliable hourly execution without external dependencies or performance overhead from transactional triggers.

Exam trap

The trap here is that candidates often confuse Business Rules (which are event-driven) with Scheduled Jobs (which are time-driven), assuming any automation logic can be placed in a Business Rule, but the question explicitly requires a time-based schedule, making only a Scheduled Job appropriate.

How to eliminate wrong answers

Option A is wrong because using an external cron job to call a REST API endpoint introduces unnecessary network latency, security overhead (authentication, firewall rules), and dependency on an external system, whereas ServiceNow has a built-in scheduler that runs server-side without external calls. Option B is wrong because a Business Rule runs only on database insert or update operations, not on a time-based schedule, so it cannot check for overdue tasks every hour unless a record is modified, which is not guaranteed. Option C is wrong because Flow Designer scheduled flows are designed for low-code automation but are less efficient for pure script execution; they incur additional overhead from flow engine processing and are not the best practice for simple script-based checks, whereas a Scheduled Job executes a script directly with minimal overhead.

41
MCQhard

A developer is debugging a Business Rule that runs on 'before' but not showing expected behavior. In Studio, which tool can show the execution order and triggered scripts?

A.Scripts Background
B.Update Set
C.Debugger
D.Flow Designer
AnswerC

Correct. Studio's Debugger shows script execution in context.

Why this answer

Option A is correct because the Debugger in Studio allows stepping through scripts and viewing execution order. Option B is wrong; Scripts Background is for ad-hoc scripts. Option C is wrong; Flow Designer is for flows.

Option D is wrong; Update Set tracks changes, not execution.

42
MCQhard

A developer is troubleshooting a business rule in a scoped application that is not triggering. The rule is set to run 'before' query, with condition 'current.state == 1'. The table has read ACLs that restrict access. What is the most likely reason the business rule is not executing?

A.The condition 'current.state == 1' is incorrect syntax.
B.Another business rule with higher order is preventing execution.
C.The user does not have read access to the records, so the query does not execute the rule.
D.The business rule is scoped and cannot access the table.
AnswerC

Before query rules run only if the user can access the records.

Why this answer

Business rules that run 'before query' execute when a query is made against the table. If the user lacks read access due to ACL restrictions, the query itself is not permitted, so the business rule never triggers. This is because the platform's security layer evaluates ACLs before executing business rules, preventing the rule from running when the user cannot read the records.

Exam trap

ServiceNow often tests the misconception that business rules always execute regardless of security, when in fact ACLs are evaluated first and can prevent the rule from firing entirely.

How to eliminate wrong answers

Option A is wrong because 'current.state == 1' is valid syntax for comparing a field value in a business rule condition; the double equals is correct for equality checks. Option B is wrong because business rules with higher order only affect the execution sequence when multiple rules run on the same event, but they cannot prevent a rule from executing entirely—order determines sequence, not whether a rule runs. Option D is wrong because scoped applications can access tables within their scope and even global tables if properly configured; the scope does not inherently block access to the table.

43
MCQeasy

A developer is asked to add a new field to a scoped application's table. The developer opens Studio, navigates to the table, and tries to add a new field but the 'Add Field' button is greyed out. The table is part of the scoped application. The developer has the admin role. Other tables in the same application allow field addition. What is the most likely cause?

A.The application is not set to 'In Process'.
B.The developer does not have the admin role.
C.The table is from a different scope.
D.The table is locked by another developer.
AnswerC

Correct. Tables from other scopes cannot be modified in the current application context.

Why this answer

Option C is correct because if the table is from a different scope (e.g., global scope), you cannot modify it directly from the scoped application. Option A is wrong because locking is not a common feature. Option B is wrong because the developer has admin.

Option D is wrong because application phase does not affect field addition.

44
Multi-Selectmedium

A developer is building an application in ServiceNow Studio. Which three of the following are correct practices when using Studio? (Choose three.)

Select 3 answers
A.Utilize the Studio Debugger to test business rules and script includes.
B.Always create application files using the UI instead of importing XML files.
C.Use the Application Explorer to view all application artifacts.
D.Set the application version number manually in the application properties.
E.Avoid using update sets for scoped applications because they are automatically managed.
AnswersA, C, E

Correct: Debugger allows stepping through server-side scripts.

Why this answer

Option A is correct because the Studio Debugger allows developers to set breakpoints and step through business rules and script includes in real time, enabling precise testing of server-side logic within the scoped application context. This is essential for validating script behavior without deploying to a separate test instance.

Exam trap

The trap here is that candidates may think manually setting the version number is harmless or necessary for release management, but ServiceNow's automatic versioning is tied to the application's publish lifecycle and update set tracking, making manual edits a source of synchronization errors.

45
MCQmedium

A developer wants to add a new field to a table that is part of a scoped application. What is the correct method in Studio?

A.In Studio, right-click the table and select 'Add Field'.
B.Create a new field in the application's schema.
C.Use the Application Builder to add a table extension.
D.Navigate to System Definition > Tables and add the field.
AnswerB

Standard method in Studio.

Why this answer

Option A is correct because fields are added via the application's schema in Studio. Option B is incorrect as Application Builder is not the primary method. Option C is incorrect because right-click does not offer 'Add Field'.

Option D is incorrect because navigating to System Definition is for global tables.

46
Drag & Dropmedium

Drag and drop the steps to create an ACL (Access Control List) in ServiceNow into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order

Why this order

The sequence: navigate to ACLs, create new, define type/operation/name, set condition, and submit.

47
MCQeasy

A ServiceNow developer is creating a new scoped application in Studio to manage IT asset lifecycle. They want to ensure the application is easily identifiable and follows best practices. What should the developer set for the application's name and scope fields?

A.Name: 'IT Asset Lifecycle', Scope: 'x_snc_it_asset_lifecycle'
B.Name: 'ITAM', Scope: 'global'
C.Name: 'Asset Management', Scope: 'x_'
D.Name: 'IT Asset Management', Scope: 'x_snc_itam'
AnswerD

Correct: follows best practices with unique prefix and descriptive name.

Why this answer

Option D is correct because scoped applications in ServiceNow must have a unique scope starting with 'x_' followed by a prefix (often the company acronym, e.g., 'snc') and a meaningful name. The name 'IT Asset Management' is descriptive and follows best practices, while the scope 'x_snc_itam' is properly formatted with the company prefix and a concise identifier, ensuring uniqueness and easy identification in the instance.

Exam trap

The trap here is that candidates often choose a scope that is too long or improperly formatted (like 'x_snc_it_asset_lifecycle') thinking it must match the application name exactly, or they mistakenly believe 'global' can be used for scoped apps, failing to recognize that scoped apps require a unique 'x_' scope.

How to eliminate wrong answers

Option A is wrong because the scope 'x_snc_it_asset_lifecycle' is too long and contains underscores that may cause readability issues; ServiceNow best practices recommend keeping scope names concise (e.g., using an acronym like 'itam') while the name can be descriptive. Option B is wrong because the scope 'global' is reserved for global applications and cannot be used for a scoped application; scoped applications require a custom scope starting with 'x_'. Option C is wrong because the scope 'x_' is incomplete and invalid—it must include a company prefix and a meaningful identifier (e.g., 'x_snc_itam'); a bare 'x_' does not provide uniqueness and will cause conflicts.

48
MCQhard

Refer to the exhibit. What is the primary issue with this script if it is intended to update all incidents in state 'New' (state=1) to priority 2?

A.The script will not update any records because of a syntax error in setValue.
B.The script will update only the first record because next() is used incorrectly.
C.The script will cause an infinite loop.
D.The script will update records but may cause performance issues.
AnswerC

Updating the same record while iterating over it can trigger conditions that requery the record, leading to an infinite loop.

Why this answer

Option A is correct. Using gr.update() inside the while loop on the same GlideRecord object can cause an infinite loop if any business rule or trigger re-queries the same record set. This is a known anti-pattern.

Option B is incorrect because setValue syntax is fine. Option C is partially true but not the primary issue. Option D is incorrect because next() iterates correctly.

49
MCQeasy

In ServiceNow Studio, which role is required to create a new scoped application?

A.A global scope update set
B.No special role; any user can create applications
C.Application Creator role
D.Admin role
AnswerD

Admin role is required.

Why this answer

Option B is correct because creating scoped applications requires the admin role. Option A is incorrect as Application Creator is not a standard role. Option C is incorrect; not all users can create applications.

Option D is incorrect because global scope update sets are not required.

50
MCQeasy

In ServiceNow Studio, when developing a flow that requires a decision based on a record's category, which component should be used?

A.Action
B.Flow Logic
C.Trigger
D.Condition
AnswerD

Conditions evaluate expressions and allow branching based on the category.

Why this answer

Option A is correct because a Condition component is used to evaluate criteria and branch the flow. Action performs operations, Trigger initiates the flow, and Flow Logic is not a component.

51
MCQmedium

What is the purpose of this script?

A.Delete resolved incidents.
B.Log all new incidents.
C.Update all open incidents.
D.Count the number of incident records.
AnswerB

Correct. It logs incident numbers for state=1 (New).

Why this answer

Option B is correct because 'state' 1 corresponds to 'New' status. The script logs all new incidents. Option A is wrong as it does not update.

Option C is wrong because it does not delete. Option D is wrong because it does not count.

52
Multi-Selecteasy

In ServiceNow Studio, which TWO elements can be created directly from the 'Create Application File' wizard? (Choose two.)

Select 2 answers
A.Flow
B.System Property
C.Update Set
D.Table
E.Business Rule
AnswersD, E

Tables are a common application file created in Studio.

Why this answer

Options A and D are correct. Tables and Business Rules are standard application files that can be created via the wizard. Update Sets (B) are not created as application files; they are containers for changes.

System Properties (C) and Flows (E) are created through other modules (e.g., sys_properties, Flow Designer).

53
MCQmedium

A developer is building a scoped application in Studio that needs to access global records. Which application property should be enabled?

A.Allow access to this application from all scopes.
B.Allow access to all scoped applications.
C.Allow read/write access to tables in global scope.
D.Export table data.
AnswerC

Correct. This enables access to global tables.

Why this answer

Option B is correct because 'Allow read/write access to tables in global scope' permits the application to interact with global tables. Option A is wrong as it is not a valid property. Option C is wrong because 'Export table data' is for data export.

Option D is wrong as it controls access from other scopes.

54
Multi-Selectmedium

A developer is troubleshooting an issue where a business rule is not firing. Which TWO steps should the developer take to diagnose the problem? (Choose two.)

Select 2 answers
A.Check the business rule order.
B.Ensure the business rule has a condition.
C.Run the business rule from the context menu.
D.Verify that the business rule is active.
E.Check if the table is locked.
AnswersB, D

If the condition evaluates to false, the rule does not run.

Why this answer

Options B and C are correct. The business rule must be active and must have a condition that evaluates to true. Option A (order) matters only if multiple rules conflict, but is not the first check.

Option D is not possible; business rules cannot be run manually. Option E is not relevant.

55
MCQeasy

A developer needs to expose a custom table's data via REST API in ServiceNow Studio. Which approach should they use?

A.Configure a REST API from the system Web Services menu.
B.Create a Scripted REST API in Studio.
C.Generate an API from the Application Menu.
D.Use the table API directly without any configuration.
AnswerB

Correct. Studio provides a template for Scripted REST APIs.

Why this answer

Option A is correct because Scripted REST API allows creating custom endpoints in Studio. Option B is wrong as the table API requires ACLs and is not directly available. Option C is wrong because configuring from the system Web Services menu is not part of Studio.

Option D is wrong because generating an API from the Application Menu is not a standard Studio feature.

56
Multi-Selecthard

Which THREE considerations are important when designing a scoped application for a customer?

Select 3 answers
A.Minimize number of update sets.
B.Avoid modifying global tables directly.
C.Scope application name uniquely.
D.Use global Business Rules for performance.
E.Include only necessary features.
AnswersB, C, E

Correct. Modifying global tables can cause conflicts with other applications.

Why this answer

Options B, D, and E are correct. Avoiding direct modification of global tables prevents unintended side effects. Unique scoping avoids conflicts.

Including only necessary features reduces complexity. Option A is wrong as minimizing update sets is not a design consideration. Option C is wrong because using global Business Rules defeats the purpose of scoping.

57
MCQmedium

A developer wants to create a new UI action that appears on the form only when the record is in a specific state. Which property should be configured?

A.Script condition
B.Condition field
C.Form context menu
D.Insert field
AnswerA

This allows a script to check the current state and return true/false.

Why this answer

Option B is correct because the 'Script condition' property allows writing a script to dynamically determine visibility based on state. Option A is for simple conditions but not always sufficient, and C and D are unrelated.

58
Multi-Selectmedium

Which TWO actions can be performed directly from ServiceNow Studio?

Select 2 answers
A.Configure email notifications.
B.Run a scheduled job.
C.Configure form layout.
D.Create a new table.
E.Define a workflow.
AnswersC, D

Correct. Form layout can be edited directly in Studio.

Why this answer

Options A and C are correct because Studio allows creating new tables and editing form layouts. Option B is wrong because running scheduled jobs is not a Studio function. Option D is wrong because defining workflows is deprecated and not in Studio.

Option E is wrong because update set settings are managed separately.

59
MCQeasy

In ServiceNow Studio, which file type is automatically generated when creating a new application?

A.update.xml
B.readme.md
C.manifest.xml
D.app.xml
AnswerC

Correct. Manifest.xml defines application metadata.

Why this answer

Option B is correct because Studio generates a manifest.xml file for each application. Option A is wrong; app.xml is not standard. Option C is wrong; update.xml is for update sets.

Option D is wrong; readme.md is optional.

60
MCQhard

A developer needs to debug an issue where a client script is not triggering when a field changes. What is the most efficient first step in troubleshooting within Studio?

A.Review the syslog for error messages.
B.Open the client script in Studio and use the 'Debug' button.
C.Check the ACLs on the table.
D.Add a gs.log() statement to the server-side code.
AnswerB

This allows running the script in debug mode to see if it fires and track variables.

Why this answer

Option B is correct because Studio includes a debug feature for client scripts that allows step-by-step execution and inspection. Option A is indirect, C is not relevant to client script execution, and D is server-side.

Ready to test yourself?

Try a timed practice session using only Application development using ServiceNow Studio questions.