Software Testing Technology & Digital Applications 3 — Questions and Answers
Question 1: Which testing technique is best suited for validating the behavior of a digital application under peak user load?
- Exploratory testing
- Load testing (Correct answer)
- Mutation testing
- Sanity testing
Correct answer: Load testing
Load testing simulates a high number of concurrent users to identify performance bottlenecks and verify the system meets throughput requirements.
Question 2: In a CI/CD pipeline, at which stage are automated functional tests most commonly executed?
- Before source code is committed
- After code is merged and the build artifact is created (Correct answer)
- Only in the production environment
- Exclusively during sprint planning
Correct answer: After code is merged and the build artifact is created
Automated functional tests run as part of the CI pipeline after a build is compiled, providing fast feedback before deployment to higher environments.
Question 3: What is 'shift-left testing' in the context of digital application development?
- Moving all testing to the end of the project
- Involving testers and writing tests earlier in the development lifecycle (Correct answer)
- Shifting the test team to a different department
- Running tests from left to right in a test matrix
Correct answer: Involving testers and writing tests earlier in the development lifecycle
Shift-left testing integrates quality activities earlier in the SDLC to catch defects sooner and reduce the cost of fixing them.
Question 4: Which metric is most relevant when evaluating the performance of a database-backed digital application?
- Number of unit tests passing
- Query response time under concurrent connections (Correct answer)
- Lines of code in the data layer
- Number of UI components rendered
Correct answer: Query response time under concurrent connections
Database query response time under concurrent load directly impacts application responsiveness and reveals indexing or locking issues.
Question 5: A tester discovers that a web app's login page is vulnerable to SQL injection. Which category of testing uncovered this?
- Usability testing
- Security testing (Correct answer)
- Compatibility testing
- Regression testing
Correct answer: Security testing
Security testing probes applications for vulnerabilities like SQL injection, XSS, and authentication bypass.
Question 6: When automating tests for a single-page application (SPA) built with React, what challenge do testers frequently encounter?
- Static HTML pages load too fast to capture
- Dynamic content rendered asynchronously requires explicit waits (Correct answer)
- The application cannot be run in headless mode
- Unit tests cannot cover component logic
Correct answer: Dynamic content rendered asynchronously requires explicit waits
SPAs update the DOM asynchronously via JavaScript, so test scripts must wait for elements to appear or data to load before interacting.
Question 7: What is the role of a 'test environment' in digital application testing?
- A physical room where testers work
- An isolated infrastructure that mirrors production for safe test execution (Correct answer)
- The IDE used to write test scripts
- A version control branch dedicated to test code
Correct answer: An isolated infrastructure that mirrors production for safe test execution
A test environment replicates production configuration so tests run realistically without risking live data or user experience.
Which testing technique is best suited for validating the behavior of a digital application under peak user load?