Interview practice

Java Backend Developer

0–2 years · Junior — Java · Spring Boot · REST APIs · JPA / Hibernate · SQL · Microservices

0–2 years 2–5 years 5–8 years 8+ years
ownership A decision that impacted performance 1 of 6
Describe a time when you made a performance-related decision that was later proven to be ineffective. What did you learn?
What a strong answer covers

Identifies a specific decision about performance tuning; explains the metrics used to gauge effectiveness; describes how it was monitored over time; outlines the corrective actions taken and the impact; avoids attributing blame to others.

The follow-up you would get

What would you change in your approach to performance testing now?

Could you have answered that?
technical Spring internals 2 of 6
You notice that a Spring Boot application is taking significantly longer to start up than usual. What steps do you take to diagnose the issue?
What a strong answer covers

Checks the application logs for errors or warnings; examines the bean initialization time and the number of beans being created; reviews external dependencies for connection issues; considers whether configuration properties have changed; uses Spring Boot Actuator to gather metrics.

The follow-up you would get

If the logs indicate a delay in loading a specific bean, what might cause that?

Could you have answered that?
scenario REST API Failure 3 of 6
You receive reports that users are experiencing intermittent 500 errors when accessing a REST API endpoint. Describe your initial troubleshooting steps.
What a strong answer covers

Checks server logs for stack traces or error messages; verifies API request payloads against expected formats; examines application health metrics for anomalies; identifies recent code changes or deployments that could have introduced issues.

The follow-up you would get

You find that the errors correlate with high traffic periods. How do you manage this issue moving forward?

Could you have answered that?
scenario Caching Problem 4 of 6
You notice that a frequently accessed API is serving stale data despite having a caching mechanism in place. What steps do you take to troubleshoot?
What a strong answer covers

Inspects the caching layer configuration for expiry settings; checks cache hit/miss ratios to evaluate effectiveness; examines data update patterns to ensure cache invalidation is correctly implemented; reviews logs for cache-related errors.

The follow-up you would get

How do you redesign the caching strategy to ensure data freshness without sacrificing performance?

Could you have answered that?
scenario Data Integrity Issue 5 of 6
A user reports that data is missing from the database after a recent batch job ran. What steps do you take to investigate?
What a strong answer covers

Confirms the batch job's success status and logs; checks for any data transformation logic that could have filtered out records; investigates database transaction logs for any rollbacks; examines source data for completeness.

The follow-up you would get

You discover that the job processed duplicate data entries. How do you prevent this from occurring again?

Could you have answered that?
ownership A migration challenge 6 of 6
Can you describe a migration of a service or database that you worked on and the challenges you faced?
What a strong answer covers

Mentions the context of the migration including specific technologies; identifies key challenges encountered during the process; explains how those challenges were addressed; details the impact on the team and the project timeline; avoids blaming external factors.

The follow-up you would get

What would you do differently if faced with a similar migration?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.