PwC Interview Questions Java Spring Boot Microservices

One of my friends recently appeared for an interview at PwC, and these were some of the questions asked 👇 Sharing here — super useful for anyone preparing for Java / Spring Boot / Microservices roles 🚀 🔹 Java, JVM & Concurrency 🔹 Spring Boot & REST APIs 🔹 Hibernate & Transactions 🔹 Microservices Architecture 🔹 Kafka & Distributed Systems 🔹 Design Patterns & SOLID Principles 🔹 Performance Optimization & Debugging 📌 Some of the questions asked: ✔ How does Hibernate work internally? ✔ What happens when you add spring-boot-starter-web? ✔ Difference between @Controller and @RestController ✔ What are bean scopes in Spring? ✔ Types of Dependency Injection in Spring? ✔ How to implement OTP login without modifying existing API? ✔ When to use @Transactional and how to manage transactions manually? ✔ What is the lifecycle of a Spring Bean? ✔ Sequential vs Parallel API calls — what are they called? ✔ How do microservices communicate with each other? ✔ How to handle failures in microservices (Retry, Circuit Breaker)? ✔ Difference between Feign Client, RestTemplate, and WebClient ✔ How to design a scalable API with proper layering? ✔ How to optimize slow APIs in production? ✔ What causes OutOfMemoryError even when heap is sufficient? ✔ Why increasing heap size can degrade performance? ✔ Thread pool vs CompletableFuture — when to use what? ✔ What is Spring Security filter chain? ✔ JWT vs Session — which one is better and why? ✔ How does caching improve performance? (Redis, in-memory) ✔ How Kafka ensures message durability and ordering? ✔ What is partitioning in Kafka? ✔ How do you handle duplicate messages in Kafka? ✔ What is idempotency in APIs? ✔ How do you secure microservices? ✔ What is API Gateway and why is it used? ✔ How does load balancing work in microservices? ✔ What is database indexing and when to use it? ✔ How to avoid N+1 query problem in Hibernate? ✔ @OneToMany mapping — where and how to use it? ✔ What is Singleton Design Pattern and its use in multithreading? ✔ What are new features in Java 21? 💡 These are real scenario-based questions that test production-level thinking, not just theory. Join our developer community https://Inkd.in/dH3ywQQS Comment "JAVA" if you want a full list of 100+ Java + Spring Boot interview questions. #Java #SpringBoot #Microservices #InterviewQuestions #BackendDeveloper #Kafka #Hibernate #SystemDesign #PwC

To view or add a comment, sign in

Explore content categories