DevOps Tools Engineer (LPIC-OT 701) — Question 39
What is tested by unit tests?
Answer options
- A. The syntactical correctness of the source code of a software component.
- B. The formal validity of a service's external REST API.
- C. The integration of multiple component of the same software.
- D. The correctness of a specific function of a software component.
- E. The throughput, load capacity and latency of a service.
Correct answer: D
Explanation
Unit tests are designed to verify the functionality of individual functions or methods within a software component, ensuring they perform as expected. Options A, B, C, and E focus on different aspects of software quality, such as syntax, API validation, integration, and performance metrics, which are not the primary goal of unit testing.