DOP-C02 Question 32
Select 4Your team is building a CI/CD pipeline for a web application on AWS. The pipeline must ensure that code is reliable, integrates well with other components, meets functional requirements, and remains secure. Which of the following types of tests should be included in the pipeline to meet these requirements?
- A
Unit tests
- B
Integration tests
- C
Acceptance tests
- D
Load tests
- E
Security scans
Show answer and explanation
Correct answers: A, B, C, E
Explanation
To build a robust CI/CD pipeline, you need a combination of testing strategies that ensure code reliability, seamless integration, functional compliance, and security. Unit tests, integration tests, acceptance tests, and security scans collectively address these concerns, making them essential. While load tests are valuable for performance testing, they are not explicitly required for the scenario's stated goals.
- A. Correct.
Unit tests are critical for ensuring that individual components or modules of the application work as expected. They help catch issues at the earliest stage of development.
- B. Correct.
Integration tests validate that different modules or components of the application work together correctly, ensuring seamless interactions within the system.
- C. Correct.
Acceptance tests confirm that the application meets business and functional requirements, ensuring it addresses end-user needs effectively.
- D. Incorrect.
Load tests evaluate the performance of the application under heavy loads, but they focus on performance rather than functionality or security. While useful, they are not essential in this scenario.
- E. Correct.
Security scans are necessary to identify vulnerabilities and ensure the application adheres to security best practices, making them a critical component of the pipeline.