- A
Create an authentication profile of type 'API Key' and reference it in the REST message.
Auth profiles securely store credentials and can be referenced without exposing the key.
- B
Hardcode the API key in the script.
Why wrong: Hardcoding secrets is a security risk and not maintainable.
- C
Store the API key in a system property encrypted.
Why wrong: While encrypted, system properties are not designed for credential management; secrets may be exposed in logs.
- D
Use a REST message variable and set the header directly.
Why wrong: This still requires storing the key in script or prompt, not secure.
Quick Answer
The correct approach is to create an authentication profile of type 'API Key' and reference it in the REST message. This is the proper method because ServiceNow’s REST API Explorer and REST messages are designed to leverage authentication profiles for secure credential management, automatically injecting the API key into the request header without exposing it in scripts, system properties, or hardcoded values. On the ServiceNow Certified Application Developer (CAD) exam, this scenario tests your understanding of secure integration patterns, often appearing as a distractor where candidates might be tempted to store the key in a system property or script include—both of which violate best practices for encrypting and centrally managing credentials. A common trap is assuming the API key can be passed directly in the REST message header configuration, but the exam emphasizes that authentication profiles handle encryption and lifecycle management automatically. Memory tip: think "Profile, not Property"—always use an authentication profile to secure an API key in REST API Explorer, never a system property or script.
SNOW-CAD Platform Features and Integration Practice Question
This SNOW-CAD practice question tests your understanding of platform features and integration. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A developer is implementing a custom integration using the ServiceNow REST API Explorer. The endpoint requires an API key in the header. Which approach should be used to secure the API key?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Create an authentication profile of type 'API Key' and reference it in the REST message.
Option A is correct because the ServiceNow REST API Explorer and REST messages support authentication profiles, which securely store and manage API keys. By creating an 'API Key' authentication profile and referencing it in the REST message, the API key is automatically injected into the request header without exposing it in scripts or system properties. This approach follows ServiceNow best practices for credential management and ensures the key is encrypted and centrally managed.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create an authentication profile of type 'API Key' and reference it in the REST message.
Why this is correct
Auth profiles securely store credentials and can be referenced without exposing the key.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Hardcode the API key in the script.
Why it's wrong here
Hardcoding secrets is a security risk and not maintainable.
- ✗
Store the API key in a system property encrypted.
Why it's wrong here
While encrypted, system properties are not designed for credential management; secrets may be exposed in logs.
- ✗
Use a REST message variable and set the header directly.
Why it's wrong here
This still requires storing the key in script or prompt, not secure.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may think storing the API key in an encrypted system property (Option C) is sufficient, but they overlook that the key still needs to be retrieved and injected into the header via script, which is less secure and not the recommended ServiceNow pattern for REST message integrations.
Detailed technical explanation
How to think about this question
ServiceNow authentication profiles for REST messages use the OOB 'API Key' type, which stores the key in the 'sys_auth_profile' table with encryption at rest. When the REST message executes, the platform automatically adds the key to the 'X-API-Key' header (or a custom header defined in the profile) before sending the HTTP request, ensuring the key never appears in script code or glide record queries. In a real-world scenario, if the external API requires the key in a different header name (e.g., 'Authorization: Bearer <key>'), the authentication profile can be configured to map the key to the correct header, which is not possible with manual script approaches.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the SNOW-CAD exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Platform Features and Integration — study guide chapter
Learn the concepts, then practise the questions
- →
Platform Features and Integration practice questions
Targeted practice on this topic area only
- →
All SNOW-CAD questions
500 questions across all exam domains
- →
ServiceNow Certified Application Developer CAD study guide
Full concept coverage aligned to exam objectives
- →
SNOW-CAD practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SNOW-CAD practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Working with Data practice questions
Practise SNOW-CAD questions linked to Working with Data.
Platform Features and Integration practice questions
Practise SNOW-CAD questions linked to Platform Features and Integration.
Integrating and managing application data practice questions
Practise SNOW-CAD questions linked to Integrating and managing application data.
Automating application logic with business rules and scripts practice questions
Practise SNOW-CAD questions linked to Automating application logic with business rules and scripts.
Application development using ServiceNow Studio practice questions
Practise SNOW-CAD questions linked to Application development using ServiceNow Studio.
Creating and customizing tables and data practice questions
Practise SNOW-CAD questions linked to Creating and customizing tables and data.
Designing interfaces and user experiences practice questions
Practise SNOW-CAD questions linked to Designing interfaces and user experiences.
Core Application Development practice questions
Practise SNOW-CAD questions linked to Core Application Development.
User Interface Development practice questions
Practise SNOW-CAD questions linked to User Interface Development.
SNOW-CAD fundamentals practice questions
Practise SNOW-CAD questions linked to SNOW-CAD fundamentals.
SNOW-CAD scenario practice questions
Practise SNOW-CAD questions linked to SNOW-CAD scenario.
SNOW-CAD troubleshooting practice questions
Practise SNOW-CAD questions linked to SNOW-CAD troubleshooting.
Practice this exam
Start a free SNOW-CAD practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SNOW-CAD question test?
Platform Features and Integration — This question tests Platform Features and Integration — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create an authentication profile of type 'API Key' and reference it in the REST message. — Option A is correct because the ServiceNow REST API Explorer and REST messages support authentication profiles, which securely store and manage API keys. By creating an 'API Key' authentication profile and referencing it in the REST message, the API key is automatically injected into the request header without exposing it in scripts or system properties. This approach follows ServiceNow best practices for credential management and ensures the key is encrypted and centrally managed.
What should I do if I get this SNOW-CAD question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 25, 2026
This SNOW-CAD practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CAD exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.