QuizzesSpring Boot Actuator & Production Readiness
intermediate
spring-boot
Spring Boot Actuator & Production Readiness
Test your understanding of Actuator endpoints, health checks, metrics, and production configuration.
20 minutes 7 questions Pass at 70%
Time Limit
20 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out
Questions in this quiz
7 questions on Spring Boot Actuator & Production Readiness. Work through them here, then start the quiz to answer them and see your score.
1.Which Actuator endpoint shows whether all health contributors report UP?
- A/actuator/info
- B/actuator/status
- C/actuator/health
- D/actuator/ping
2.How do you expose all Actuator endpoints over HTTP?
- Aspring.actuator.expose=true
- Bmanagement.endpoints.web.exposure.include=*
- Cmanagement.endpoints.enabled=all
- Dmanagement.endpoint.web.enable-all=true
3.What is the difference between liveness and readiness probes in Kubernetes?
- ALiveness checks the JVM heap; Readiness checks the database connection
- BLiveness: is the app alive (restart if not); Readiness: can it serve traffic (remove from load balancer if not)
- CLiveness: can it serve traffic; Readiness: is the app alive
- DThey are identical — Kubernetes uses them interchangeably
4.What does the /actuator/metrics endpoint expose?
- ADatabase query execution times
- BCPU and memory usage of the physical host
- CJVM memory, GC, thread count, HTTP request rates, and custom application metrics via Micrometer
- DOnly custom metrics registered manually
5.How do you create a custom health indicator?
- AImplement HealthIndicator and override health() to return Health.up() or Health.down()
- BAdd @HealthCheck to any @Service method
- COverride SpringApplication.getHealthStatus()
- DRegister a bean of type HealthCheck with a @Bean method
6.What does management.endpoint.shutdown.enabled=true do?
- AEnables automatic shutdown when memory runs low
- BEnables scheduled restart at midnight
- CShuts down the application immediately when the JVM starts
- DEnables the /actuator/shutdown endpoint which gracefully stops the application via HTTP POST
7.What does spring.main.lazy-initialization=true do?
- AMakes the Spring context load asynchronously on a background thread
- BBeans are created on first use rather than at startup — reduces startup time but delays first-request latency
- CDisables @Lazy annotations on all beans
- DReduces heap usage by garbage-collecting unused beans