CAD Quality Assurance & Compliance 2 — Questions and Answers
Question 1: Which testing technique verifies that a system meets specified requirements by examining it from the end-user's perspective without knowledge of internal code?
- White-box testing
- Black-box testing (Correct answer)
- Gray-box testing
- Unit testing
Correct answer: Black-box testing
Black-box testing validates software behavior based solely on inputs and expected outputs, without inspecting internal code structure.
Question 2: In ServiceNow CAD development, which tool is used to enforce coding standards and detect potential issues in scoped application scripts?
- Script Debugger
- Instance Scan (Correct answer)
- Update Set Viewer
- Flow Designer
Correct answer: Instance Scan
Instance Scan runs predefined checks against your instance to identify configuration and scripting issues that could affect quality or performance.
Question 3: A developer wants to ensure that a new business rule does not break existing functionality. Which type of testing should be performed?
- Smoke testing
- Regression testing (Correct answer)
- Load testing
- Acceptance testing
Correct answer: Regression testing
Regression testing re-executes prior test cases to confirm that new changes have not introduced defects in previously working features.
Question 4: What is the primary purpose of a code review in the CAD development lifecycle?
- To deploy code to production
- To identify defects and ensure adherence to coding standards before release (Correct answer)
- To generate automated test scripts
- To document API endpoints
Correct answer: To identify defects and ensure adherence to coding standards before release
Code reviews catch bugs, enforce standards, and share knowledge among team members before code is merged or deployed.
Question 5: Which SDLC phase is primarily concerned with verifying that the delivered system satisfies the business requirements agreed upon with stakeholders?
- Design
- Development
- User Acceptance Testing (UAT) (Correct answer)
- Maintenance
Correct answer: User Acceptance Testing (UAT)
UAT is the final validation phase where end users confirm the system meets their needs before go-live.
Question 6: A scoped application in ServiceNow must comply with which security model to prevent cross-scope data access?
- Role-based access control
- Application scope isolation (Correct answer)
- IP allow-listing
- OAuth 2.0
Correct answer: Application scope isolation
ServiceNow's application scope isolation restricts scoped apps from accessing tables and scripts outside their designated namespace without explicit cross-scope access grants.
Question 7: During automated testing, a test that verifies a single function or method in isolation is called a:
- Integration test
- System test
- Unit test (Correct answer)
- End-to-end test
Correct answer: Unit test
Unit tests target individual functions or methods in isolation, typically using mocks for dependencies, to verify smallest code units.
Which testing technique verifies that a system meets specified requirements by examining it from the end-user's perspective without knowledge of internal code?