Visit Official SkillCertPro Website :-
For a full set of 600 questions. Go to
https://skillcertpro.com/product/servicenow-application-developer-cad-exam-questions/
SkillCertPro offers detailed explanations to each question which helps to understand the concepts better.
It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
SkillCertPro updates exam questions every 2 weeks.
You will get life time access and life time free updates
SkillCertPro assures 100% pass guarantee in first attempt.
Question 1:
Which one of the following is true for a custom Embedded Help page created by a developer for a custom application ?
A. Can be marked as created by ServiceNow
B. Can include images
C. Can be used for both a list and a form
D. Can require a role
E. Can be displayed is a separate browser window
Answer: D
Explanation:
D. Can require a role
Embedded Help pages are designed to be role-based, meaning a developer can specify a role on the Embedded Help record. This ensures that the help content is only displayed to users who have that specific role, providing targeted and relevant information.
Incorrect:
A. Can be marked as created by ServiceNow
The “ServiceNow Help” configuration option is a read-only field that is automatically selected for baseline help records provided by ServiceNow. Developers are not able to select this option for their own custom Embedded Help pages.
B. Can include images
While some help content can include images, Embedded Help pages have limitations. The newer Help Center, for example, has more advanced support for images and other rich content. Standard Embedded Help pages may not support images.
C. Can be used for both a list and a form
Embedded Help is context-sensitive and page-specific. A separate Embedded Help page must be created for a list and a form because they have different URI paths. A single page cannot serve both views simultaneously.
E. Can be displayed in a separate browser window
The core function of Embedded Help is to provide in-context assistance without requiring the user to navigate away. It opens as a pane or sidebar within the current browser window, not in a separate window.
Question 2:
When configuring an Access Control which has no condition or script, which one of the following statements is not true ?
A. Table.id will grant access to a specific record on a table
B. Table.field will grant access to a specific field on a record
C. Table.none will grant access to every record on the table
D. Table.* will grant access to every field on a record
Answer: A
Explanation:
A. Table.id will grant access to a specific record on a table
The format Table.id is not a valid syntax for defining Access Controls to grant access to a specific record in ServiceNow. To grant access to a specific record (row-level security), you typically use an ACL on Table.none with a condition that evaluates to true for that specific record (e.g., sys_id == 'specific_sys_id' or a query against a field that uniquely identifies the record). Without a condition or script, Table.id does not function as a valid ACL for record-specific access.
Incorrect Options (the ones that ARE true):
B. Table.field will grant access to a specific field on a record
This statement is true. An Access Control configured with Table.field_name specifically targets a particular field on records within that table. If the ACL is met (e.g., user has the required role), they will gain access to that specific field for the records they can access.
C. Table.none will grant access to every record on the table
This statement is true. Table.none (often visually represented as the table name followed by -- None -- in the UI) is a row-level Access Control. If a user satisfies this ACL (e.g., has the required role), they gain access to all records (rows) within that table. This is the foundational ACL for granting access to records.
D. Table. will grant access to every field on a record*
This statement is true. Table.* (the wildcard character) is a field-level Access Control. If a user satisfies this ACL, they gain access to all fields on a record, provided they also have row-level access (e.g., through a Table.none ACL). This is often used to grant broad field access after row-level access has been established, or to override more specific field ACLs with a broader grant.
Question 3:
How can a developer extract data from the response body after calling a REST web service ? More than one response may be correct.
A. Click the Convert Response Body button to convert the response
B. Use the Convert Response Body wizard to translate the response into an object
C. Use the XMLDocument2 API to extract data from XML formatted responses
D. Use the JSON API to convert JSON formatted responses to a JavaScript object
E. Use the XMLDocument2 Script Include to parse the XML
Answer: C and D
Explanation:
C. Use the XMLDocument2 API to extract data from XML formatted responses: This is correct because if the REST web service response body is in XML format, the XMLDocument2 API in ServiceNow can be used to parse the XML and extract the required data. The XMLDocument2 API provides methods to navigate and manipulate XML documents effectively.
D. Use the JSON API to convert JSON formatted responses to a JavaScript object: This is correct because if the REST web service response body is in JSON format, the JSON API in ServiceNow can be used to parse the JSON string and convert it into a JavaScript object. This allows developers to easily work with and manipulate the data contained in the JSON response.
A. Click the Convert Response Body button to convert the response: This is incorrect because there is no “Convert Response Body” button in ServiceNow for converting the response body of a REST web service.
B. Use the Convert Response Body wizard to translate the response into an object: This is incorrect because there is no such wizard in ServiceNow for translating the response body of a REST web service into an object. The conversion must be done programmatically using the appropriate APIs.
E. Use the XMLDocument2 Script Include to parse the XML: This is incorrect because XMLDocument2 is not a Script Include but an API. The term “Script Include” is not applicable in this context. Instead, the XMLDocument2 API is directly used within scripts to parse XML documents.
Question 4:
How do you run a test as a different user ? More than one response may be correct.
A. Log in as the user before running the test
B. Use the Create and Impersonate User test step
C. Use the Create a User test step
D. Use the Impersonate test step
E. Impersonate the user before running the test
Answer: B and D
Explanation:
B. Use the Create and Impersonate User test step
This ATF test step allows you to dynamically create a new user account within the test run and immediately impersonate them. This is extremely useful for tests where you need a fresh user identity (e.g., a new hire, a specific role that doesn’t exist yet) without manually setting them up beforehand. The user is created for the duration of the test and typically cleaned up afterward.
D. Use the Impersonate test step
This ATF test step is used when you already have an existing user account that you want to impersonate for a portion of your test. You specify the sys_id or user_name of an existing user. This is the standard way to test functionality from the perspective of different existing users (e.g., an ITIL user, a manager, an end-user). The test will execute all subsequent steps as that impersonated user until another impersonation step or the end of the test.
Incorrect:
A. Log in as the user before running the test
This is not a method within the Automated Test Framework (ATF). ATF runs automatically, and you do not manually log in and out for each step. The impersonation happens programmatically within the test execution environment. While you might manually test by logging in as a user, it’s not how you automate it with ATF.
C. Use the Create a User test step
The “Create a User” test step only creates a user. It does not automatically impersonate them. If you only use this step, the test would continue running as the original “Run As” user defined for the test (often “System Administrator” by default). To run as the created user, you would need a subsequent “Impersonate” step.
E. Impersonate the user before running the test
This is also not a method within ATF. ATF tests are designed to be self-contained and run from a starting state. You don’t “impersonate” someone before an ATF test starts in the same way you would manually. The impersonation functionality is built into the ATF test steps themselves. The test environment handles the impersonation internally during execution.
Question 5:
Which one of the following is part of the client-side scripting API ?
A. GlideSystem object (gs)
B. Workflow.scratchpad
C. Current and previous objects
D. GlideUser object (g_user)
Answer: D
Explanation:
Client-Side Scripting: Client-side scripts execute within the user’s browser. They interact directly with the user interface elements and provide a more interactive experience.
GlideUser Object: The g_user object is specifically designed for client-side scripting. It provides information about the currently logged-in user, such as their roles, groups, and other user-related details.
Why other options are incorrect:
A. GlideSystem object (gs): The gs object is primarily used for server-side scripting. It provides access to server-side functionalities like logging, database interactions, and system properties.
B. Workflow.scratchpad: The Workflow.scratchpad is used to store data within a workflow context. It’s not a client-side object.
C. Current and previous objects: These objects are primarily used in server-side scripts (like Business Rules) to access the current record and its previous state. They are not directly available in client-side scripts.
For a full set of 600 questions. Go to
https://skillcertpro.com/product/servicenow-application-developer-cad-exam-questions/
SkillCertPro offers detailed explanations to each question, which helps to understand the concepts better.
It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
SkillCertPro updates exam questions every 2 weeks.
You will get life time access and life time free updates
SkillCertPro assures 100% pass guarantee in first attempt.
Question 6:
How can a developer create test run data sets for parameterized tests ? More than one response may be correct.
A. Import a spreadsheet with the data
B. Link to a table and run the test for every record in a table
C. Manually create parameter value sets
D. Write a REST web service call to a data source
E. Write a JavaScript to generate random data
Answer: B and C
Explanation:
B. Link to a table and run the test for every record in a table
This is a primary and powerful method for creating data sets for parameterized tests. In ATF, you can configure a parameterized test to use a “data generator” that sources data directly from an existing ServiceNow table. For each record in the specified table, ATF will run a separate iteration of the test, substituting the parameter values from the fields of that record. This is highly efficient for testing against existing data or a predefined set of test data records.
C. Manually create parameter value sets
This is the most straightforward way to define a small, specific set of data for parameterized tests. When you configure a parameterized test, you can directly add individual “parameter value sets” in the related list. For each set, you manually enter the specific values for each parameter defined in the test. This is ideal for scenarios where you have a limited, fixed set of input data you want to test against.
Incorrect:
A. Import a spreadsheet with the data
While you can import data into ServiceNow tables from spreadsheets, ATF’s parameterized tests do not have a direct, built-in feature to consume a spreadsheet as a data source for test parameters. You would typically import the spreadsheet data into a custom table first, and then use option B (link to a table) to use that data for parameterized testing.
ServiceNow ATF does not provide a direct feature to import parameterized test data from spreadsheets (like Excel) for parameterized test runs. Test data sets are typically created manually within the ATF interface.
D. Write a REST web service call to a data source
ATF parameterized tests do not inherently support making outbound REST calls to pull data from external sources directly into the parameter generation process. While you could potentially write a custom script within an ATF step to make a REST call and then use that data for subsequent steps, it’s not a direct mechanism for generating the test’s parameter data sets itself. The parameter data sets are generated before the test steps execute.
E. Write a JavaScript to generate random data
ATF’s built-in parameterized test functionality doesn’t provide a direct interface to write arbitrary JavaScript to generate random data sets for the parameters themselves. While individual test steps can contain scripts that generate random data within the step, this is distinct from how the parameterized test itself receives its input data sets for its iterations. For random data, you might generate it in a table and then link to that table, but direct JavaScript generation for the parameter sets isn’t a native option.
Question 7:
Which one of the following is the correct way to insert a video into custom Embedded Help content ?
A. Use the Link button to paste the HTML for embedding a video into the custom Embedded Help content
B. Use the Video button to paste the html for embedding a video into the into the custom Embedded Help content
C. Use the video button to paste the video link into the custom Embedded Help content
D. Use the Link button to paste the video link into the custom Embedded Help content
E. You cannot include videos in custom Embedded Help
Answer: B
Explanation:
B. Use the Video button to paste the html for embedding a video into the custom Embedded Help content
According to ServiceNow’s official documentation (e.g., within the docs.servicenow.com domain, under “Embed a video in help content”), when you are authoring rich text content, such as for an Embedded Help record, the HTML editor toolbar provides a dedicated Video button (often represented by a film strip icon). Clicking this button opens a dialog box. In this dialog, you are expected to paste the HTML embed code (typically an <iframe> tag) that is provided by video hosting services like YouTube or Vimeo. This embed code is crucial as it contains all the necessary instructions for the browser to display the video player directly within the help content.
Incorrect:
A. Use the Link button to paste the HTML for embedding a video into the custom Embedded Help content
The “Link” button in an HTML editor is designed for creating standard hyperlinks (<a> tags), not for embedding multimedia content directly. If you paste raw HTML embed code into the URL field of a link dialog, the editor will likely misinterpret it, resulting in either a broken link, text encoding issues, or preventing the video from embedding as intended.
C. Use the video button to paste the video link into the custom Embedded Help content
While the “Video” button is the correct tool, simply pasting a raw video URL (e.g., https://www.youtube.com/watch?v=xyz) into the dialog opened by the video button is typically insufficient for a direct embed. The editor’s video embedding functionality usually requires the full HTML embed code to properly render the video player. Pasting just the link would likely result in an error or a non-functioning embed, rather than a properly displayed video.
D. Use the Link button to paste the video link into the custom Embedded Help content
This action would create a standard clickable hyperlink in the help content. When a user clicks this link, their browser would typically open a new tab or window and navigate to the video’s page on the external hosting platform (e.g., YouTube). This does not embed the video directly within the Embedded Help pane itself, which is the objective.
E. You cannot include videos in custom Embedded Help
This statement is incorrect. ServiceNow explicitly supports and provides mechanisms for embedding videos into custom Embedded Help content, allowing developers to create richer and more interactive help experiences for users.
Question 8:
When a ServiceNow instance requests information from a web service, ServiceNow is the web service:
A. Provider
B. Specialist
C. Publisher
D. Consumer
Answer: D
Explanation:
Web Service Consumer: When ServiceNow requests information from an external web service, it acts as the consumer of that service.
ServiceNow initiates the request and receives data from the external service provider.
Why other options are incorrect:
A. Provider: A provider is the entity that offers the web service and provides the data.
B. Specialist: This term is not typically used in the context of web service interactions.
C. Publisher: This term is more commonly associated with the distribution of software or content, not the role of a system requesting data from a web service.
Question 9:
Custom Application Developers are required to create custom embedded help for every role in a custom application ?
A.TRUE
B. FALSE
Answer: B
Explanation:
FALSE
Not Required for Every Role: While creating custom Embedded Help for each role in a custom application can be beneficial, it’s not an absolute requirement.
You can create general Embedded Help content that applies to all users of the application.
You can create role-specific Embedded Help for certain roles, but it’s not mandatory for every single role.
Flexibility in Implementation: The level of detail and granularity in your Embedded Help implementation will depend on the complexity of your application and the specific needs of your users.
Question 10:
Application developers configure ServiceNow using industry standard JavaScript to
A. Extend and add functionality
B. Customize the organization’s company logo and banner text
C. Enable the right-click to edit the context menus on applications in the navigator
D. Configure the outgoing email display name
Answer: A
Explanation:
JavaScript for Customization: ServiceNow leverages JavaScript extensively for customization and extension. Developers use JavaScript to:
Create Business Rules: Automate actions based on record changes.
Develop UI Actions: Add custom buttons and actions to forms and lists.
Write Client Scripts: Enhance the user interface with interactive elements and dynamic behavior.
Create Server-Side Scripts: Perform complex server-side operations, such as data manipulation, integrations, and workflow orchestration.
Why other options are incorrect:
B. Customize the organization’s company logo and banner text: While these customizations might involve some scripting, they are typically configured through more user-friendly interfaces within the ServiceNow platform.
C. Enable the right-click to edit the context menus on applications in the navigator: Context menu customizations generally involve UI Policy and Client Scripting, but not exclusively JavaScript.
D. Configure the outgoing email display name: This is typically configured through system properties or email settings within the ServiceNow platform.
For a full set of 600 questions. Go to
https://skillcertpro.com/product/servicenow-application-developer-cad-exam-questions/
SkillCertPro offers detailed explanations to each question which helps to understand the concepts better.
It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
SkillCertPro updates exam questions every 2 weeks.
You will get life time access and life time free updates
SkillCertPro assures 100% pass guarantee in first attempt.