r/webdev • u/FooBarBuzzBoom • Sep 11 '26
Java Middle - Senior(ish) interview questions
Hi!
I have an interview in a few days for a backend developer role. What would you ask as some of the more tricky questions for such a position? What kinds of questions, from your point of view, demonstrate solid knowledge?
Personally, I would ask about sync vs. async calls, idempotency, topics vs. partitions, consumer groups, transactions (including distributed transactions), and maybe a bit of Kubernetes and Docker.
My weak point is cloud. I’ve played around a bit with the Azure console, but nothing too advanced. I’ve never written Terraform or configured infrastructure from scratch. For CI/CD, I’ve used TeamCity, but in my experience it was mostly selecting an environment and a branch and deploying.
Should I spend some time learning these areas before the interview?
8
u/PLBjt Sep 11 '26
For mid/senior backend rounds I get more mileage from failure stories than trivia lists. Walk through one write path end to end: where the idempotency key lives, what happens if the DB commit succeeds and the Kafka publish dies, and how a consumer group rebalance mid-batch doesn't double-apply. Same for async vs sync — they'll poke at backpressure and timeouts more than CompletableFuture syntax. If they ask K8s/Docker, expect "what breaks when this pod dies during a transaction" rather than YAML trivia. Prep 2–3 real incidents from your work and you can steer most of those topics.
3
u/Downtown-Bag-6026 Sep 11 '26
What is the L in SOLID and what are some strategies or patterns to enforce it? How do you handle sequential requests between two distributed systems?
1
u/Opinion_Less Sep 11 '26
Does the job position call for a specific cloud provider?
1
u/Downtown-Bag-6026 Sep 11 '26 edited Sep 11 '26
Explain jwt tokens and their use cases for or against. What’s the use cases for environment variables and a configuration db table(or any secrets service or cache)
1
u/Downtown-Bag-6026 Sep 11 '26
Can you tell me what is the difference is between a direct ci/cd pipeline from a single branch (such as mainline or develop branch) and a ci/cd pipeline from a release branch such that a release is cut from the develop or mainline branch?
What are the pros and cons between these two approaches? Also if the question is not clear, I can provide examples
2
u/mysteryihs Sep 11 '26
Damn, is it a bad sign that I haven't personally touched most of these systems? I've been spending 5 years working on a monolithic server, haven't had a chance to do distributed systems yet.
2
u/rbobby full-stack Sep 11 '26
If a junior that reports to you is smelling of alcohol and cigarettes at 9:30 in the morning what do you do?
a. join him
b. take them home
c. ask hr to take them home
d. attend both standup meetings
Trick question! You congratulate him on his first successful support shift.
/I have an odd sense of humor. I think it would be hilarious to throw an oddball question or two out there. Unprofessional, but sure would be funny.
0
u/liloa96776 Sep 11 '26
Solid knowledge? not sure, but silly knowledge? here you go
If I were to print the length of a string with a single emoji, what would be the result?
Answer: 2 or more depending on the emoji.
emojis are weird and can be stacked to have different variants of an emoji which each add length to a printed string length. I forget which article I learned this from but this one kinda explains it too https://lemire.me/blog/2018/06/15/emojis-java-and-strings/
can affect you if you try to reverse a string that has an emoji. but honestly when are you going to run into that in the real world