SNOW-CAD User Interface Development Practice Question
A developer wants to customize the appearance of a Service Portal theme. Which approach is recommended to ensure maintainability and scalability?
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
✓
Define CSS custom properties in the theme's stylesheet and use them throughout widgets
The recommended approach because CSS custom properties (CSS variables) allow centralized theme management in the theme's stylesheet, making them reusable across all widgets without duplication. This ensures maintainability and scalability. Option A is incorrect because LESS variables defined in widget styles are scoped to that widget and not shared globally, leading to duplication. Option B is incorrect because editing the default theme record directly can be overwritten during upgrades, causing maintenance issues. Option D is incorrect because inline styles are not scalable, hard to maintain, and cannot be overridden systematically.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use LESS variables inside each widget's widget styles
Why it's wrong here
LESS variables are compiled and scoped; they don't provide the global flexibility of CSS variables.
- ✗
Edit the default theme record to change primary colors
Why it's wrong here
Modifying the default theme may be overwritten during upgrades; it's better to create a custom theme or use CSS variables.
- ✓
Define CSS custom properties in the theme's stylesheet and use them throughout widgets
Why this is correct
CSS variables are globally available and can be updated in one place, making them ideal for theming.
- ✗
Apply inline styles directly in widget templates for fine-grained control
Why it's wrong here
Inline styles are difficult to maintain and override; they should be avoided.
Go deeper
Related to this question
About these practice questions
This SNOW-CAD question is part of Courseiva's 481-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.