InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Name some famous companies that use Microservice architecture. |
|
Answer» Microservices ARCHITECTURE has REPLACED MONOLITHIC architecture for most large-scale websites like:
|
|
| 2. |
Explain CDC. |
|
Answer» As the name implies, CDC (Consumer-Driven Contract) basically ensures service COMMUNICATION COMPATIBILITY by establishing an agreement between consumers and service providers REGARDING the format of the data exchanged between them. An agreement like this is CALLED a contract. Basically, it is a pattern used to develop Microservices so that they can be efficiently used by EXTERNAL systems. |
|
| 3. |
What do you mean by client certificates? |
|
Answer» The client certificate is a type of digital certificate that GENERALLY allows client systems to AUTHENTICATE their requests to remote servers. In MANY mutual authentication DESIGNS, it plays a key ROLE in providing strong assurance of the requestor's identity. |
|
| 4. |
Explain how independent microservices communicate with each other. |
|
Answer» Communication between microservices can take place through:
RABBITMQ, Nats, Kafka, etc., can be used as message brokers; each is built to handle a PARTICULAR message semantic. You can also USE Backend as a SERVICE like Space Cloud to automate your entire backend. |
|
| 5. |
Explain PACT in microservices. |
|
Answer» PACT is defined as an open-source tool that allows service providers and consumers to test interactions in isolation against contracts that have been MADE to increase the reliability of MICROSERVICE integration. It also offers support for numerous languages, such as RUBY, Java, Scala, .NET, JavaScript, Swift/Objective-C. |
|
| 6. |
What are the challenges that one has to face while using Microservices? |
|
Answer» The challenges that one has to face while using microservices can be both functional and technical as GIVEN below:
Technical Challenges:
|
|
| 7. |
Write the fundamental characteristics of Microservice Design. |
Answer»
|
|
| 8. |
What do you mean by Bounded Context? |
|
Answer» A Bounded Context is a central pattern in DDD (Domain-Driven DESIGN), which deals with collaboration across large models and teams. DDD breaks large models down into multiple contexts to make them more MANAGEABLE. Additionally, it EXPLAINS their relationship explicitly. The concept promotes an object-oriented approach to developing services bound to a data model and is also responsible for ensuring the integrity and mutability of SAID data model. |
|
| 9. |
What do you mean by Cohesion and Coupling? |
|
Answer» Coupling: It is DEFINED as a RELATIONSHIP between software modules A and B, and how much one module depends or interacts with another one. Couplings fall into three major categories. Modules can be highly coupled (highly dependent), loosely coupled, and uncoupled from each other. The best kind of coupling is loose coupling, which is achieved through interfaces. |
|
| 10. |
What issues are generally solved by spring clouds? |
|
Answer» The following problems can be SOLVED with spring cloud:
|
|
| 11. |
Explain how you can override the default properties of Spring boot projects. |
|
Answer» By specifying properties in the application.properties FILE, it is possible to override the default properties of a spring boot PROJECT.
|
|
| 12. |
What is the role of actuator in spring boot? |
|
Answer» A spring BOOT ACTUATOR is a PROJECT that provides restful WEB services to access the current state of an application that is running in production. In addition, you can monitor and manage application usage in a production environment without having to code or configure any of the applications. |
|
| 13. |
Explain spring cloud and spring boot. |
|
Answer» Spring Cloud: In Microservices, the Spring cloud is a system that integrates with external SYSTEMS. This is a short-lived framework designed to build applications quickly. It CONTRIBUTES significantly to microservice ARCHITECTURE due to its association with finite amounts of data processing. Some of the features of spring cloud are shown below: Spring Boot: Spring Boot is an open-sourced, Java-based framework that provides its developers with a platform on which they can create stand-alone, production-grade Spring applications. In addition to reducing development time and increasing productivity, it is easily UNDERSTOOD. |
|
| 14. |
Write difference between Monolithic, SOA and Microservices Architecture. |
Answer»
|
|
| 15. |
Explain the working of Microservice Architecture. |
|
Answer» Microservice architectures consist of the following components:
|
|
| 16. |
Name three common tools mostly used for microservices. |
|
Answer» THREE COMMON TOOLS used for microservices INCLUDE:
|
|
| 17. |
What are the benefits and drawbacks of Microservices? |
|
Answer» Benefits:
Drawbacks:
|
|
| 18. |
Write main components of Microservices. |
|
Answer» Some of the main components of MICROSERVICES include:
|
|
| 19. |
Write main features of Microservices. |
|
Answer» Some of the main features of Microservices include:
|
|