Research & Evidence-Based Practice 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 Research & Evidence-Based Practice flashcards as text
Which Spring Boot Actuator metric exposed via Micrometer provides evidence of HTTP request duration distribution including slow outliers?
Answer: http.server.requests with percentile histograms enabled
The http.server.requests metric with percentile histograms enabled (management.metrics.distribution.percentiles-histogram) records request duration distribution, exposing tail latency outliers.
A team uses Spring's @Profile annotation to control bean registration. What is the evidence-based way to verify the correct profile is active in an integration test?
Answer: Use @ActiveProfiles in the test class and assert with Environment.getActiveProfiles()
@ActiveProfiles on the test class activates specific profiles, and asserting via Environment.getActiveProfiles() provides concrete evidence that the expected profile-conditional beans were loaded.
Evidence-based capacity planning for a Spring Boot application on Kubernetes relies on which Actuator probe configuration?
Answer: Exposing /actuator/health/liveness and /actuator/health/readiness as separate probes
Spring Boot 2.3+ provides separate /actuator/health/liveness and /actuator/health/readiness probes, giving Kubernetes fine-grained evidence for restart vs. traffic-routing decisions.
When researching Spring AOP proxy behavior, which empirical test reveals whether a self-invocation call bypasses the proxy?
Answer: Call the advised method externally and check the advice fires; then call it internally (this.method()) and confirm the advice does NOT fire
Externally calling the proxied method while observing advice execution, then repeating via self-invocation (this.method()), empirically demonstrates that proxy-based AOP does not intercept internal calls.
Which Spring testing utility allows researchers to assert on the exact JSON structure and values returned by a REST controller without starting a full HTTP server?
Answer: MockMvc with jsonPath assertions
MockMvc with Hamcrest jsonPath matchers performs full Spring MVC request/response cycle including serialization in-process, allowing precise JSON structure assertions without a running HTTP server.
A Spring researcher wants to prove that BeanPostProcessors execute before @PostConstruct. Which approach provides direct experimental evidence?
Answer: Add logging in a custom BeanPostProcessor and in a @PostConstruct method; observe log order at startup
Instrumenting both a BeanPostProcessor.postProcessBeforeInitialization() and a @PostConstruct method with distinct log statements and observing startup log order is direct empirical evidence of the initialization sequence.
When publishing Spring research results on dependency injection performance, which measurement methodology avoids the common confound of including Spring context startup time in per-injection latency?
Answer: Warm up the context fully before the timed loop, then measure only the injection or lookup operation in steady state
Fully warming the Spring context before the timed benchmark loop isolates the actual injection or lookup cost from one-time startup overhead, producing valid steady-state performance data.
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