43 questions from the Managing Applications domain of the ServiceNow Certified Application Developer (CAD) exam, each with its answer and an explanation. Read them through as revision, then sit the full practice exam to test yourself on them under multiple-choice conditions.
Answer
Linking an application to source control asks for the repository URL and the credentials to reach it: a user name and a password or access token. You link the application that is open in Studio, so its name is not something you enter.
Answer
Delegated development gives non-admin users developer permissions on a specific scoped application, and administrators choose what they can change, such as script fields, security records or particular file types. It cannot grant development rights to global applications.
Answer
Protection policies take effect only when the application is installed from the ServiceNow Store, not on the instance where it is developed. A Protected script include can't be viewed or edited by the customer who installs it, while Read-only lets them see the script but not change it.
Answers
Source control operations, such as linking an application to a repository or importing one from it, require the source_control role or the admin role. source_control_admin and git_admin are not the roles used for these operations.
Answers
The Automated Test Framework and Flow Designer work with global applications as well as scoped ones. Linking to source control and delegated development are available only for scoped applications.
Answer
Apply Remote Changes, which brings the latest commits from the remote repository into the instance, can be run both from Studio's Source Control menu and from the Git repository record. The other operations are available in only one of those places.
Answer
Stash Local Changes sets aside uncommitted changes on the instance so remote changes can be applied first and the stashed changes applied later. A branch is a separate line of development, and a tag marks a specific version.
Answer
The Application Files related list on the application record shows every file that belongs to the application and will be included when it is published. Global search and update sets don't give a complete list for one application, and opening records one by one is slow and error-prone.
Answer
Customizations to a Store application are tracked, and entitled, separately from the vendor's application, which keeps the vendor's version intact. Customizations can be reverted to return to the base application.
Answer
In Team Development, the Team Dashboard on a development instance shows its parent instance, local changes to push, remote changes to pull and code reviews, and it is where developers push, pull and resolve collisions.
Answer
Team Development can require a code review for pushes to a parent instance. A reviewer then approves or rejects the changes before they are committed on the parent.
Answer
An exclusion policy stops selected changes from being pushed to or pulled from particular instances in the Team Development hierarchy. Roles control what users can do, not which changes move between instances.
Answers
All four are captured: report definitions, CMDB updates such as changes to CI classes and their attributes, customizations such as business rules, UI policies and workflows, and new or changed tables and fields.
Answer
In Team Development each instance has one parent instance, and developers push changes only to that parent. Changes move up the hierarchy one level at a time rather than to any instance.
Answer
The ServiceNow Store is the marketplace where customers find and download certified applications and integrations built by ServiceNow and its partners, both free and paid. Discussions happen in the Community, and support cases are logged in HI.
Answer
A custom application can be moved to other instances, for example by publishing it to the application repository, linking it to source control, or moving its changes with update sets.
Answer
The update_synch attribute marks a table's records as configuration, so changes to them are recorded in the current update set. Tables without it hold data that update sets don't track.
Answer
A protection policy stops customers who install a Store application from viewing or changing a script include, which protects the developer's code. It takes effect when the application is installed from the Store.
Answer
Each application scope has one default update set. If it is marked complete, a new default update set, such as Default1, is created to take its place.
Answer
Team Development tracks changes with the version records of each customization on the instances in its hierarchy, and compares them to detect collisions. Git is used by the separate source control integration in Studio.
Answer
Changes to both global and scoped applications can be rolled back, for example by backing out an update set or rolling back an application installation.
Answer
Files in the global scope can be moved between global applications or removed from one, because global applications share the same scope. Files can't be moved in and out of a scoped application, because they belong to its namespace.
Answer
Mobile Studio can be used on custom tables covered by an App Engine Pro subscription or higher, and on custom tables assigned to Pro product bundle subscriptions or higher. There is no separate Mobile Studio add-on, and other subscriptions don't include it.
Answer
Under the App Engine and custom table model, a user who has been given create, read, update or delete rights on a custom table counts as a user of that table, whether or not they actually use it.
Answer
Custom UI test steps test components on custom pages, such as UI pages, UI controls and wizards. Form field values are tested with the standard form test steps, such as setting and validating field values.
Answer
Custom tables are counted against a Now Platform App Engine subscription or the custom table entitlement bundled with a product, even when they are used to configure that product. Only exempt and grandfathered custom tables are not counted.
Answer
Adding the glide.source_control.default_branch_name system property sets the branch name that applications linked to source control use by default. The other names don't match ServiceNow's property naming.
Answer
Custom UI test steps work with components a user can interact with, by setting a value or clicking. A form field label is static text that can't be set or clicked, so there is nothing for these steps to test, even though the label is in the page and readable by JavaScript.
Answer
Studio supports context menu options, formatting code with JS Beautify and integrating with source control. Downloading selected session logs is done outside Studio, with the system logs.
Answers
The first statement is false because ATF rolls back the changes made during a test when it finishes, and the third is false because ATF doesn't support testing attachment-dependent business rules this way. Running tests in parallel on desktop and mobile browsers and marking conflicting tests as mutually exclusive are both supported.
Answers
atf_test_admin gives full access to ATF, and atf_test_designer lets users create and maintain tests. atf_test_config and atf_test_user are not ATF roles.
Answer
There is no fixed limit on how many tests a suite can contain, whatever the instance version or application scope. In practice the size of a suite is limited only by how long it takes to run.
Answer
Homepages and content pages are not captured automatically. To move one, you add it to the current update set yourself, for example by unloading the page.
Answer
When code review is required, pushing changes to the parent instance starts a review, and users with the teamdev_code_reviewer role are notified and can approve or reject the changes.
Answer
Studio's code search looks for text in scripts across all applications, not only in one business rule, which helps find every place a function, field or table is used.
Answer
Create a User is the ATF test step that creates a user for a test, with the roles and groups the test needs, so the test can then impersonate that user.
Answer
Applications can be installed from ServiceNow Share, from the ServiceNow Store or from the application repository. The Copy button on an application record makes a new application based on the existing one rather than installing an application.
Answer
An application installs a table's records only when they are included as application files, which is what the Create Application Files feature does. Clone settings, extending Task and number counters don't add records to the application.
Answer
A test step passes only when its outcome matches the expected result set in its assertion. A failed insert doesn't make the step succeed on its own.
Answers
Inside a test, the Create and Impersonate User step creates a temporary user and switches to it, and the Impersonate step switches to an existing user. Logging in or impersonating before the run doesn't change who the test runs as, and Create a User on its own doesn't switch to the new user.
Answers
A parameterized test gets its data sets either by being linked to a table, so it runs once for each record, or from parameter value sets the developer enters by hand. Spreadsheets, REST calls and scripts that generate random data aren't ways to create them.
Answer
An ATF schedule runs its test suites automatically at a configured frequency, such as daily or weekly, so regression tests run without anyone starting them.
Answer
Client-side test steps, such as setting values on a form, need a browser, and the client test runner is the browser page that runs them. Server-side steps run on the instance without it, and data sets and schedules are separate ATF features.