r/Backend • u/Ok_Childhood1395 • 2d ago
AI-Driven Spring Boot Technical Interview – Cursor & Claude Tips?
I have a 60-minute final technical interview focused on Java and Spring Boot. The company allows AI-assisted development using Cursor and Claude. They’ll provide an existing codebase and ask me to implement features, update existing functionality, and fix bugs based on requirements.
For anyone experienced with this approach, how would you use Cursor and Claude effectively? Any recommendations on Cursor Skills, best models for understanding complex codebases vs. fixing small bugs, or practical prompts/workflows beyond generic “add this feature” or “fix this bug” instructions?
Would appreciate any real-world tips!
In short: They would more evaluate me based on how AI usage.
4
u/Discordbothost 1d ago
For a bug fix, I'd give Cursor the exact request and expected response, then ask for one failing case beside the existing controller tests. Run it before touching the handler so you can show the interviewer it fails for the bug you were given. Then use that same test to check the patch.
2
u/mountainaut 1d ago edited 1d ago
Have you used Cursor and Claude? I only know Claude but I find that "plan mode" can get a little tunnel visioned into convincing you to approve its plan. If it were me I would start with asking the AI to remember my preferences:
I feel like I get the best results both for bug fixes and new code by walking it the AI through:
With that decided you're ready to have the AI make changes. When you're confident in the plan ask it to implement phase 1. READ IT. If you don't understand something highlight the function and ask it to explain the function line by line and to verify that the documentation/comments it wrote match what the code actually does. THIS IS IMPORTANT.
The difference between a vibe coder and a professional who uses AI tools is their ability to analyze what the AI produces, to correct it, and to verify that the documentation matches what the code does. If you can't wrap your head around what the AI has done even after asking it to explain that's a good sign you need to revert, improve the plan and try again.
When you're good with phase 1 make a git commit and ask it to go on phase 2 of the plan. Repeat. Good luck!
2
u/akornato 1d ago
Interviewers evaluate your judgment and engineering habits far more than your prompting speed. Start by using Cursor to explore the codebase rather than immediately asking it to generate new code. Index the project, then use Claude Sonnet to trace how data flows through the controllers, services, and repositories, referencing specific files with the symbol @ so the model has exact context. Ask it to explain the existing patterns for dependency injection, validation, and error handling so your new code fits naturally into their architecture. When you build features, write tight, scoped prompts for each layer separately, telling Claude explicitly to respect existing domain entities and Spring Boot annotations instead of letting it guess the entire flow in one giant prompt.
For bug fixes and updates, rely on inline edits and terminal output, feeding compiler errors, test failures, and stack traces directly into the context window. Never accept suggestions blindly, because interviewers watch every diff and expect you to catch issues like missing transactional boundaries, n plus one query problems, or broken contract tests. Speak your reasoning out loud, explain why you modify or reject certain lines, and run the test suite after every small iteration. Managing that cognitive load in a timed setting takes practice, which is why the interviews.chat my team built focuses on giving candidates the confidence and composure needed to land strong offers.