Quality Control & Assurance Flashcards
7 cards from real Spring Framework practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Quality Control & Assurance flashcards as text
Which tool integrated with Spring Boot Actuator provides health checks that can be used for quality assurance in production?
Answer: Spring Actuator HealthIndicator
Spring Boot Actuator's HealthIndicator interface allows components to report their health status via the /actuator/health endpoint.
What is the role of Testcontainers when used with Spring Boot tests?
Answer: Starts real Docker containers (e.g., databases) during integration tests
Testcontainers starts and manages real Docker containers for services like PostgreSQL or Redis during integration test execution.
In Spring, which annotation marks a method to run before each test method in a JUnit 5 test class?
Answer: @BeforeEach
JUnit 5 uses @BeforeEach (not JUnit 4's @Before) to annotate setup methods that run before each individual test.
Which Spring framework feature allows you to verify that a method was called on a @MockBean a specific number of times?
Answer: Verify API from Mockito via Mockito.verify()
Mockito.verify() combined with times() allows assertions on how many times a method was called on a mock or spy bean.
What does the @Transactional annotation do when applied to a Spring test method?
Answer: Rolls back the transaction after each test by default
When @Transactional is applied to a Spring test, the transaction is rolled back after each test method by default, keeping the database clean.
Which Spring Boot Actuator metric can help QA teams detect slow database queries in production?
Answer: spring.datasource.hikari.pending-threads
The HikariCP metric for pending threads indicates connection pool exhaustion, which can signal slow queries blocking other requests.
What is the purpose of the @ParameterizedTest annotation in JUnit 5 when writing Spring tests?
Answer: Runs the same test method multiple times with different input values
@ParameterizedTest enables running the same test with multiple data sets, improving coverage without duplicating test methods.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- docs.broadcom.com — Test delivery, retake policy, exam information · verified Oct 2026
- spring-academy.broadcom.com — Eligibility · verified Oct 2026
- broadcom.com — Fees, exam format, passing score, time limit · verified Oct 2026