Scrivio Interview library

Production operations

19 questions in 5 subtopics.

Incident response for Java services

DebuggingFoundations7 min read
A Java service gradually slows down over two days and then crashes with OutOfMemoryError: Java heap space. How would you find the leak?
DebuggingFoundations7 min read
You are on call and a Spring Boot service's p99 latency jumped from 200 ms to 8 seconds, while CPU is low. What do you collect first and what are you looking for?
DebuggingIntermediate7 min read
After a deployment, a Spring Boot service's CPU goes to 100 percent on all pods and stays there, and requests time out. How do you find the cause quickly?
ScenarioIntermediate6 min read
You are incident commander for an outage where checkout fails across three Java services after a dependency upgrade was deployed to two of them. Describe how you run the incident from detection to resolution.
LeadershipAdvanced7 min read
Mean time to recovery for Java services in your organisation is high because each team investigates differently and many lack diagnostics. What would you standardise?

Deployment strategies

ConceptFoundations7 min read
Explain rolling, blue-green and canary deployments for a Spring Boot service and one risk of each.
DesignIntermediate6 min read
You need to rename a column used by a Spring Boot service with six replicas, with zero downtime. Describe the deployment and database migration sequence.
DesignAdvanced7 min read
Design a progressive delivery standard for 100 Java services, including automated canary analysis and rollback.
LeadershipPrincipal6 min read
Your company deploys most Java services once every two weeks in a coordinated release train, and releases often fail. Some leaders fear that deploying more often will increase risk. As the senior technical leader, how do you make the case and plan the change?

Configuration management

ConceptFoundations6 min read
How does Spring Boot resolve configuration from application.yml, profiles, environment variables and command-line arguments, and which wins?
DesignIntermediate7 min read
Design configuration and secrets management for Spring Boot services on Kubernetes, where some values change at runtime and secrets must rotate.
DesignAdvanced6 min read
Design the configuration management approach for 200 Spring Boot services across four environments and three regions, so that configuration is reviewable, consistent and safe to change.
LeadershipPrincipal6 min read
A misconfiguration pushed to all regions at once caused a global outage at your company. As the senior technical leader, what changes would you make to how configuration is treated?

Capacity planning

ConceptFoundations6 min read
Use Little's law to estimate how many concurrent requests a Spring Boot service handles at 400 requests per second with an average latency of 150 ms, and what that means for thread and connection pool sizes.
ScenarioIntermediate7 min read
Marketing expects traffic to triple during a sale in six weeks. How do you plan capacity for a set of Java services and their database?
LeadershipAdvanced6 min read
Capacity planning in your organisation is reactive and done per team. How would you introduce a capacity planning process across services?

Cost of running Java at scale

ScenarioIntermediate6 min read
Your cloud bill for 300 Java services is rising 30 percent per year. What JVM and platform levers would you use to reduce cost?
DesignAdvanced7 min read
Your organisation runs Java workloads for 40 teams on shared Kubernetes clusters, and nobody can say what a given service costs. Design a cost visibility programme that leads teams to reduce waste.
LeadershipPrincipal6 min read
The CFO asks whether to rewrite core Java services in another language to save cloud cost. As the senior technical leader, how do you respond?