A Spring Boot service needs to accept report generation tasks, each of which takes several minutes. How would you organize running them inside the Java application?
~10 min by voice
How to approach it
They're checking whether you can run long background tasks reliably: an asynchronous API, a bounded pool, state stored in the database, running across several instances, and behavior under failures, overload and restarts. "I'll put @Async on it" alone isn't enough.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.