TCS - Microservices Interview Questions for Java Developers

Upasana | May 25, 2019 | 1 min read | 3 views

Commonly asked Spring/Java Microservices Interview questions in TCS

Core Java

  • What is volatile variable?

  • What are key classes in java.util.concurrent package

  • Explain internals of ConcurrentHashMap

Microservices Concepts

  1. Why do we need microservices architecture?

  2. How to handle distributed transaction in microservices?

  3. What is Saga pattern in microservices?

  4. What is Zipkin and Sleuth?

  5. What is an idempotent operation?

  6. What is eventual consistency?

  7. What are biggest advantages of microservices architecture?


  1. How does OAuth2 works?

  2. Do we need to generate clientId and clientSecret for each microservices for handling security in inter-service communication.

  3. How Spring security works in microservice architecture?

  4. How to configure security at a Resource Server level.

  5. What is JWT?

  6. What kind of information should be put into JWT?

  7. What is a resource server

  8. How does resource server validates a given JWT token? Does it need to go to auth server each time a token comes?

  9. What is Token relay, how does it happen?

Inter service communication

  • One service calls 4 other services and collects the response, how to handle this.

  • How load balancing works in microservices?

  • What is zuul? is it a load balancer?

  • How does discovery client works?

Buy my ebook for complete question bank

Most of these questions has been answered in my eBook "Cracking the Core Java Interview" updated on June 2018, that you can buy from this link:

Buy from Shunya (DRM Free PDF download with updates)

Top articles in this category:
  1. Citibank Java developer interview questions
  2. Multi-threading Java Interview Questions for Investment Bank
  3. Sapient Global Market Java Interview Questions and Coding Exercise
  4. UBS Java Interview Questions
  5. Morgan Stanley Java Interview Questions
  6. Goldman Sachs Java Interview Questions
  7. ION Trading Java Interview Questions

Recommended books for interview preparation:

Find more on this topic: