Top 30 Microservices Architecture Interview Questions Answers

What is microservices architecture?

Microservices architecture (often shortened to microservices) refers to an architectural style for developing applications. Microservices allow a large application to be separated into smaller independent parts, with each part having its own realm of responsibility. To serve a single user request, a microservices-based application can call on many internal microservices to compose its response.

microservices architecture

Microservices architecture defined

A microservices architecture is a type of application architecture where the application is developed as a collection of services. It provides the framework to develop, deploy, and maintain microservices architecture diagrams and services independently.

Within a microservices architecture, each microservice is a single service built to accommodate an application feature and handle discrete tasks. Each microservice communicates with other services through simple interfaces to solve business problems.

What is microservices architecture used for?

Typically, microservices are used to speed up application development. Microservices architectures built using Java are common, especially Spring Boot ones. It’s also common to compare microservices versus service-oriented architecture. Both have the same objective, which is to break up monolithic applications into smaller components, but they have different approaches. Here are some microservices architecture examples:

Website migration

A complex website that’s hosted on a monolithic platform can be migrated to a cloud-based and container-based microservices platform.

Media content

Using microservices architecture, images and video assets can be stored in a scalable object storage system and served directly to web or mobile.

Transactions and invoices

Payment processing and ordering can be separated as independent units of services so payments continue to be accepted if invoicing is not working.

Data processing

A microservices platform can extend cloud support for existing modular data processing services.

Q.1 Agile development & deployment is difficult in case of _.

   A. Monolithic

   B. Microservices

Correct Answer : Monolithic

Q.2 The decomposition of Microservices is based on two categories, namely __.

   A. Technology Capability and Subdomain

   B. Business Capability and Subdomain

   C. Marketing and Domain

   D. Business Opportunity and Technology

Correct Answer : Business Capability and Subdomain

Q.3 Microservice Architecture adapts which of the following concept(s)?

   A. OOPS

   B. SOA

   C. Web Service/HTTP

   D. All the options

Correct Answer : All the options

Q.4 Software built as microservices can, by definition, be broken down into multiple component services.

   A. True

   B. False

Correct Answer : False

Q.5 Separating components with conflicting resource requirements falls under the bucket of _.

   A. Monolithic

   B. Microservices

Correct Answer : Microservices

Q.6 The 3Cs of Microservices include the following, except _.

   A. Control

   B. Connect

   C. Componentize

   D. Collaborate

Correct Answer : Control

Q.7 External clients communicate with Microservices using _.

   A. Messaging

   B. API

   C. API Gateway

   D. API Proxy

Correct Answer : API Gateway

Q.8 The client expects a timely response from the service and might even block while it waits. This represents the _ client service interaction style.

   A. Asynchronous

   B. One to one

   C. One to many

   D. Synchronous

Correct Answer : Synchronous

Q.9 AWS Elastic Load Balancer (ELB) is an example of __.

   A. Client-side discovery

   B. Server-side discovery

Correct Answer : Server-side discovery

Q.10 The transactions that span across multiple services are handled by _.

   A. DML commands

   B. Pre-compiled queries

   C. Logging queries in DBs

   D. Event driven Architecture

Correct Answer : Event driven Architecture

Q.11 Netflix OSS is an example of __.

   A. Server-side discovery

   B. Client-side discovery

Correct Answer : Client-side discovery

Q.12 The two components of CQRS include___________.

   A. Query and client side

   B. Server and command side

   C. Server and client side

   D. Query and command side

Correct Answer : Query and command side

Q.13 Microservices supports different kinds of databases and this is called __.

   A. Service Deployment

   B. Polyglot persistence

   C. Polyglot resistance

   D. Event-driven Architecture

Correct Answer : Polyglot persistence

Q.14 Service Instance per Host pattern provides __.

   A. Great Isolation



   B. Leverage AWS for Autoscaling and Load balancing

   C. Great Manageability

   D. All the options

Correct Answer : All the options

Q.15 Efficient Utilization and Fast Deployment represents which pattern?

   A. Service Instance per Container

   B. Multiple Services per Host pattern

   C. Service Instance per Host

Correct Answer : Multiple Services per Host pattern

Q.16 Packer.io and Boxful represent __ type of pattern.

   A. Service Instance per Container

   B. Service Instance per Host

   C. Multiple Services per Host pattern

Correct Answer : Service Instance per Host

Q.17 __ is the ability to store something temporarily to reduce the loading times, and I/O of a system.

   A. Service registry

   B. Chassis

   C. Service Deployment

   D. Cache

Correct Answer : Cache

Q.18 Spring Boot is example of __.

   A. Service Deployment

   B. Service registry

   C. Chassis Framework

   D. API Gateway

Correct Answer : Chassis Framework

Q.19 In __, each external request is tagged with a unique identifier which is passed to all services involved in handling the request and included in application logging messages.

   A. Exception tracing

   B. Distributed tracing

   C. Application logging

   D. Audit logging

Correct Answer : Distributed tracing

Q.20 The following are all caching types, except _.

   A. Server cache

   B. Shared Cache

   C. No Cache

   D. Distributed Cache

   E. Local & Remote Cache

Correct Answer : Local & Remote Cache

Q.21 __ is the ability to store something temporarily to reduce the loading times, and I/O of a system.

   A. Chassis

   B. Service registry

   C. Service Deployment

   D. Cache

Correct Answer : Cache

Q.22 Which pattern collects and reports all exceptions to a centralized exception tracking service?

   A. Distributed tracing

   B. Audit logging

   C. Application logging

   D. Exception tracing

Correct Answer : Exception tracing

Q.23 Amazon EC2 Container Service is an example of __.

   A. Docker

   B. Polyglot persistence

   C. CQRS

Correct Answer : Docker

Q.24 Which of these is a drawback of Multiple Services per Host pattern?

   A. Faulty deployment

   B. Non-Dependency conflicts

   C. Difficult to limit resource utilization

Correct Answer : Non-Dependency conflicts

Q.25 The two types of Service Discovery includes Client-side discovery and server-side discovery.

   A. True

   B. False

Correct Answer : False

Q.26 The benefits of Microservices include _.

   A. Scale development: Develop, Deploy and Scale

   B. Easy scaling

   C. Faster to build and deploy

   D. Improved Fault Isolation

   E. All the options

Correct Answer : All the options

Q.27 IDL stands for _.

   A. Interface Dependency Language

   B. Inter-Dependency Language

   C. Interface Definition Language

   D. Inter-Dependency Location identifier

Correct Answer : Interface Definition Language

Q.28 Monolithic is identified by all these disadvantages, except_________.

   A. High set-up costs

   B. Quick initial development

   C. Less iteration

   D. Code base growth

   E. Horizontal scaling

   F. Increased maintenance costs

Correct Answer : Quick initial development

Q.29 Which of the following is incorrect with respect to cons about Microservices?
(I) The increasing number of services can result in information barriers
(II) Being a distributed system, it can result in duplication of effort
(III) The architecture usually results in increased memory consumption
(IV) No long-term commitment to the technology stack

   A. IV

   B. I

   C. II

   D. III

Correct Answer : IV

Q.30 The complexity of developing, testing and deploying the distributed system, and handling partial failures account to the disadvantages of _.

   A. Monolithic

   B. Microservices

Correct Answer : Microservices

Q.31 Microservice is considered as a subset of SOA.

   A. True

   B. False

Correct Answer : True

Q.32 Simple to develop, test, deploy and scale represents __.

   A. Monolithic

   B. Microservices

Correct Answer : Monolithic

Q.33 Software built as microservices can, by definition, be broken down into multiple component services.

   A. True

   B. False

Correct Answer : True

Q.34 Scaling the application can be challenging in _ due to conflicting needs of Memory, CPU, and I/O.

   A. Monolithic architecture

   B. Microservices architecture

Correct Answer : Monolithic architecture

Click here to read Azure Q&A

Q.35 Limited Efficient Utilization and slow deployment represent _.

   A. Service Instance per Container

   B. Service Instance per Host

   C. Multiple Services per Host pattern

Correct Answer : Multiple Services per Host pattern

Q.36 API Gateway ensures __.

   A. Composition

   B. Protocol translation.

   C. Request routing

   D. All the options

Correct Answer : All the options

Q.37 Which among these helps in developing a microservice quickly _.

   A. Chassis

   B. Service registry

   C. Service Deployment

   D. API Gateway

Correct Answer : Chassis

AWS Questions and Answers

About Author


After years of Technical Work, I feel like an expert when it comes to Develop wordpress website. Check out How to Create a Wordpress Website in 5 Mins, and Earn Money Online Follow me on Facebook for all the latest updates.