TCS - Microservices Interview Questions for Java Developers

Carvia Tech | May 25, 2019 | 1 min read | 1 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?

Security

  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. Top 50 Multi-threading Java Interview Questions for Investment Bank
  3. Goldman Sachs Java Interview Questions for Senior Developer
  4. Morgan Stanley Investment Banking Java Interview Questions
  5. Sapient Global Market Java Interview Questions and Coding Exercise
  6. UBS Top 10 Java Interview Questions
  7. ION Trading Java Interview Questions



Find more on this topic:
Java Interviews image
Java Interviews

Interview - Product Companies, eCommerce Companies, Investment Banking, Healthcare Industry, Service Companies and Startups.

Last updated 1 week ago


Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info