Managing Applications

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.

  1. 1.Which one of the following is NOT required to link a ServiceNow application to a Git repository?

    Answer

    • Application name

    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.

  2. 2.Identify the incorrect statement about Delegated Development in ServiceNow.

    Answer

    • Administrators can grant non-admin users the ability to develop global applications.

    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.

  3. 3.Which one of the following is true for a Script Include with a Protection Policy value of Protected?

    Answer

    • The Protection Policy is applied only if the application is downloaded from the ServiceNow App Store

    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.

  4. 4.Which roles grant access to source control repository operations, such as importing applications from source control or linking an application to source control?

    Answers

    • source_control
    • admin

    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.

  5. 5.Which of the following features are available to Global applications?

    Answers

    • Automated Test Framework
    • Flow Designer

    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.

  6. 6.Which source control operation is available from BOTH Studio and the Git Repository?

    Answer

    • Apply Remote Changes

    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.

  7. 7.The source control operation used to store local changes on an instance for later application is called a(n) ______.

    Answer

    • Stash

    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.

  8. 8.To see what scripts, reports, and other application artifacts will be in a published application:

    Answer

    • Examine the Application Files Related List in the application to be published

    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.

  9. 9.Which of the following statements is true for managing applications purchased from the Store?

    Answer

    • There are separate entitlements for application-customizations.

    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.

  10. 10.The Team Dashboard provides a central place to manage all Team Development activities on your development instance. True or False?

    Answer

    • TRUE

    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.

  11. 11.Team Development administrators can require that pushes undergo _____ before they are accepted.

    Answer

    • code review

    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.

  12. 12.Developers can create an _____ to prevent pushes or pulls to particular instances in the Team Development hierarchy.

    Answer

    • exclusion policy

    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.

  13. 13.Which of the following changes are captured in update sets?

    Answers

    • Reports
    • CMDB Update
    • Customization
    • Tables & Fields

    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.

  14. 14.A ServiceNow developer can push updates to any instance in the Team Development hierarchy. True or False?

    Answer

    • FALSE

    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.

  15. 15.What is the ServiceNow app store?

    Answer

    • A website for downloading ServiceNow applications

    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.

  16. 16.Can you copy a custom application from one instance to another?

    Answer

    • Yes

    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.

  17. 17.Update sets track customizations on tables that have the update_synch dictionary attribute. True or False?

    Answer

    • TRUE

    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.

  18. 18.Is the protection policy on a script include useful to protect code for applications published to the ServiceNow Store?

    Answer

    • Yes

    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.

  19. 19.More than one update set can be the default set for any application scope. True or False?

    Answer

    • FALSE

    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.

  20. 20.Team Development uses Git to manage versions. True or False?

    Answer

    • False (uses version records)

    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.

  21. 21.Is it possible to roll back both Global and Scoped applications?

    Answer

    • Yes

    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.

  22. 22.In relation to application files, which of the below is false?

    Answer

    • Move files in and out of a scoped application

    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.

  23. 23.On which type of custom table can I use Mobile Studio?

    Answer

    • On all custom tables that fall under the App Engine License if the customer has an App Engine 'Pro' subscription or higher and to all custom tables assigned to product bundle subscriptions 'Pro' Bundles or higher.

    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.

  24. 24.How does ServiceNow determine if a user has the right to use a custom table under the Now Platform App Engine Subscription or custom table model?

    Answer

    • A user that has been provided rights within the system to create, read, update, or delete on a custom table is considered a User of that table regardless of actual usage.

    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.

  25. 25.Using the Custom UI test step in the Automated Test Framework (ATF), which of the following is NOT a testable page component?

    Answer

    • Form field values

    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.

  26. 26.Under the new Now Platform App Engine or bundled custom table entitlements of my ServiceNow products, such as ITSM, I am allowed to create as many custom tables as I want without incurring additional fees, as long as these custom tables are used for the purpose of configuring or customizing that ServiceNow product.

    Answer

    • Incorrect – all custom tables created or implemented (except exempt and grandfathered custom tables) are counted against either a Now Platform App Engine subscription or the specific bundled custom table entitlement that is included with most ServiceNow packages in the new model.

    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.

  27. 27.In Studio, once an application is linked to source control, a default branch is set. Which property can be added to specify the default Git branch name to work from?

    Answer

    • glide.source_control.default_branch_name

    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.

  28. 28.In ATF's Custom UI test steps, why are form field labels untestable page components?

    Answer

    • They are not settable or clickable

    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.

  29. 29.Which of the following actions is NOT supported by Studio?

    Answer

    • Download only the required session logs

    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.

  30. 30.Which ATF statements are false?

    Answers

    • If you modify records while a test is running in the same browser session, the changes will not be rolled back
    • Test an attachment-dependent business rule by uploading an attachment either from a form or from a server-side API call

    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.

  31. 31.Which roles are available in the Automated Test Framework (ATF)?

    Answers

    • atf_test_designer
    • atf_test_admin

    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.

  32. 32.What is the maximum number of test cases that can be added to a suite in ATF (Automated Test Framework)?

    Answer

    • There is no such limit. You can have one suite with many test cases.

    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.

  33. 33.Are homepages and content pages added to update sets by default?

    Answer

    • No

    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.

  34. 34.Which role is required to perform a code review for code pushes in Team Development?

    Answer

    • teamdev_code_reviewer

    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.

  35. 35.What does the code search feature do in Studio?

    Answer

    • Searching in all applications

    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.

  36. 36.Which module creates a user for the Automated Test Framework?

    Answer

    • Create a User

    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.

  37. 37.Which of the following is NOT a way to install an application on a ServiceNow instance?

    Answer

    • Select the Copy button on the application record

    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.

  38. 38.When developing a scoped application, Table A's records will be installed with the application when:

    Answer

    • Table A's records are added to the application record using the Create Application Files feature

    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.

  39. 39.True or False? Developers can assert the expected result from a test step so that when a record fails to insert, the test step is successful.

    Answer

    • FALSE

    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.

  40. 40.How do you run a test as a different user?

    Answers

    • Use the Create and Impersonate User test step
    • Use the Impersonate test step

    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.

  41. 41.How can a developer create test run data sets for parameterized tests?

    Answers

    • Link to a table and run the test for every record in a table
    • Manually create parameter value sets

    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.

  42. 42.Which of the following is true about scheduling in ATF?

    Answer

    • Schedules run at a configured frequency

    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.

  43. 43.Which of the following is the purpose of a test runner?

    Answer

    • Execute client-side test steps

    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.

Other CAD domains