DOP-C02 Question 29
Select 3Your team is building a CI/CD pipeline for a microservices-based application deployed on AWS. The pipeline must ensure that API endpoints work as expected when multiple services interact, verify the security of the application, and confirm that new features meet customer requirements. Which types of tests should be included in the pipeline to meet these goals?
- A
Integration tests
- B
Unit tests
- C
Acceptance tests
- D
User interface (UI) tests
- E
Security scans
Show answer and explanation
Correct answers: A, C, E
Explanation
To meet the stated goals, integration tests are needed to validate API interactions between microservices, security scans ensure the application is secure, and acceptance tests confirm that new features meet customer requirements. Unit and UI tests are not as directly relevant to the specific objectives outlined in this scenario.
- A. Correct.
Integration tests are essential for verifying that API endpoints and interactions between different services in the microservices architecture work as expected. This matches the requirement of ensuring API endpoints function correctly in a multi-service interaction.
- B. Incorrect.
Unit tests are used to test individual components or functions in isolation and do not directly address the requirements of validating service interactions, security, or feature acceptance.
- C. Correct.
Acceptance tests confirm whether new features meet customer requirements. These tests are crucial for ensuring that the application aligns with business needs and user expectations.
- D. Incorrect.
User interface (UI) tests focus on validating the visual and interactive aspects of the application but are not directly relevant to API interactions or security testing requirements in this scenario.
- E. Correct.
Security scans are necessary to ensure the application is free from vulnerabilities and meets security compliance. These tests are directly aligned with the requirement of verifying the security of the application.