Top 50 microservices architecture interview questions for Java developers

Carvia Tech | July 04, 2019 | 2 min read | 147 views | microservices-architecture


In this article we will discuss top 50 Spring Microservices interview questions for experiences Java Developers.
  • What is Spring Boot? What are advantages of using Spring Boot?

  • What are microservices?

  • What are differences between SOA and Microservices architecture?

  • Why would you opt for microservices architecture?

  • What are advantages and disadvantages of microservices?

  • What are key characteristics of Microservices?

  • What is Spring Cloud?

  • What are advantages of using Spring Cloud?

  • How will you decompose a given business functionality into microservices architecture?

  • Define Domain Driven Design?

  • What is Bounded Context?

  • What is Idempotent operation?

  • What is eventual consistency?

  • What is client side load balancing, how is it implemented in Spring Cloud?

  • How to implement server side load balancing using Spring Cloud?

  • How will you write a bare minimal spring cloud application?

Concepts

  • What is 12 factor app?

  • What is coupling and cohesion?

  • How does microservices architecture look like?

Security

  • What is OAuth2 protocol at a high level?

  • How to propagate security context from one microservice to another?

  • What is client credentials?

Testing

  1. How will you test microservices? What are major challenges in microservices testing?

  2. What is PACT?

  3. What is CDC? Consumer Driven Contracts,

  4. How to test a single component using Spring Boot WebMvcTest?

Deployment

  • How do you deploy a simple spring boot based application?

  • What is blue-green deployment pattern?

  • What is Docker? how to deploy spring boot application using docker?

Best Practices

  1. Common Mistakes Made While Transitioning To Microservices

Microservices Design Patterns

Service Boundary Decomposition Patterns

  1. Decompose by Domain (aka business capability)

  2. Strangler Pattern

Integration Patterns

  1. Service registration and discovery pattern

  2. API Gateway pattern

  3. Aggregator pattern

Database Patterns

  1. Database per service pattern

  2. What is Saga pattern?

Logging Patterns

  1. Log correlation and distributed tracing pattern

  2. Log aggregation

  3. Performance metrics

Resiliency Patterns

  1. What is Circuit Breaker Design Pattern in microservices?

  2. Bulk head design pattern

  3. Client side load-balancing

Development Patterns

  1. Distributed configuration management

  2. Asynchronous messaging

  3. Inter-service communication

Deployment Patterns

  1. Blu-Green deployment pattern


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. Cracking Spring Microservices Interviews - question bank
  2. Why Microservices are better than Monoliths
  3. How will you Partition a typical e-shop into Microservices Architecture
  4. What is Spring Cloud, what are its advantages
  5. Is it a good practice to deploy multiple microservices in a single tomcat container
  6. What is Spring Boot and what are its advantages



Find more on this topic:
Microservices image
Microservices

Microservices Architecture and its implementation using Spring Framework

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