Scrivio Interview library

Actuator

21 questions in 7 subtopics.

Endpoints

ConceptFoundations6 min read
You add spring-boot-starter-actuator and can reach /actuator/health but /actuator/metrics returns 404. Why, and how do you expose it?
ScenarioIntermediate6 min read
Which actuator endpoints would you expose in production, on which port, and which would you never expose publicly? Justify each choice.
DesignAdvanced6 min read
Define an actuator standard for all services: which endpoints, on which port, with which security, and how monitoring tools discover them.

Health indicators and groups

CodingFoundations6 min read
Write a custom HealthIndicator that reports DOWN when a downstream pricing service does not answer within 2 seconds, and say how its name appears in /actuator/health.
DesignIntermediate6 min read
A health endpoint includes checks for the database, Redis, Kafka and three downstream HTTP services. During a downstream outage Kubernetes restarts all pods. What is wrong with this design, and how would you use health groups?
LeadershipPrincipal7 min read
Health checks have caused outages in many organisations, for example cascading restarts or traffic removal during dependency failures. What principles would you set for health signals across the company for years to come?

Liveness and readiness

ConceptFoundations6 min read
What do /actuator/health/liveness and /actuator/health/readiness mean, and how are they enabled?
CodingIntermediate6 min read
During a long data migration the service should stop receiving traffic but must not be restarted. How do you do this in code with Spring Boot availability states?
DesignAdvanced7 min read
Define a standard for liveness, readiness and startup probes for all Spring services on Kubernetes.

Metrics endpoint

CodingFoundations6 min read
How do you see the 99th percentile latency of GET /orders/{id} through /actuator/metrics, and what must be configured for percentiles?
DebuggingIntermediate7 min read
After a deploy, the Prometheus server runs out of memory because one service exports millions of time series. What is the likely cause and fix?
LeadershipAdvanced6 min read
Metrics costs for your observability vendor doubled in a year. What standards would you set for metrics in Spring services?
LeadershipPrincipal7 min read
Your company spends heavily on several monitoring vendors fed by Micrometer metrics from Spring services. How would you think about vendor choice and exit strategy over many years?

Info and build info

CodingFoundations6 min read
How do you show the build version and git commit in /actuator/info?
ScenarioIntermediate7 min read
During an incident you need to know which version is running on each of 40 pods. How would you make this quick and reliable?
LeadershipPrincipal6 min read
Supply-chain and audit requirements now ask what exact software runs in each service. How would you use actuator info, build info and SBOMs to answer this at company scale?

Securing actuator

CodingFoundations6 min read
Write a SecurityFilterChain that allows anyone to call health and info but requires role OPS for every other actuator endpoint.
DebuggingIntermediate7 min read
A penetration test downloaded a heap dump from /actuator/heapdump and found database passwords in it. What went wrong and how do you prevent it?

Custom endpoints

CodingIntermediate6 min read
Write a custom actuator endpoint /actuator/featureflags that lists flags and allows changing one by name.
ScenarioAdvanced6 min read
Several teams wrote custom actuator endpoints that change state, such as clearing caches or toggling features, with no audit. How would you govern custom endpoints?
LeadershipPrincipal6 min read
Actuator gives every Spring service the same operational surface. What value does this standardisation bring to a large organisation, and where would you deliberately go beyond it?