IBM Interview Questions for Experienced | Full stack | Microservices | Angular

Pubblicato il: 01 gennaio 1970
sul canale di: Drunken Engineer
4,106
57

This video contains Interview questions asked for full stack developer at ibm.
Below are the questions with answers
1.What is circuit breaker pattern ?

The Circuit Breaker pattern is a popular design pattern used in Microservices Architecture, that falls under the Sustainable Design Patterns category. In Microservices architecture, a service usually calls other services to retrieve data, and there is the chance that the downstream service may be down. It may be cause by slow network connection, timeouts, or temporal unavailability. Therefore, retrying calls can solve the issue. However, if there is a severe issue on a particular microservice, then it will be unavailable for a longer time. In such case, the request will be continuously sent to that service, since the client doesn’t have any knowledge about a particular service being down. As a result, the network resources will be exhausted with low performance and bad user experience. Also, the failure of one service might lead to Cascading failures throughout the application.

Therefore, you can use the Circuit Breaker Design Pattern to overcome this problem. With the help of this pattern, the client will invoke a remote service through a proxy. This proxy will basically behave as an electrical circuit breaker. So, when the number of failures crosses the threshold number, the circuit breaker trips for a particular time period. Then, all the attempts to invoke the remote service will fail within this timeout period. After the timeout expires, the circuit breaker allows a limited number of test requests to pass through it. If those requests succeed, the circuit breaker resumes back to the normal operation. Otherwise, if there is a failure, the timeout period begins again.

2.What is concurrent and synchronised map?

3.How to configure euraka server?

Eureka Server is an application that holds the information about all client-service applications. Every Micro service will register into the Eureka server and Eureka server knows all the client applications running on each port and IP address. Eureka Server is also known as Discovery Server.Eureka Server comes with the bundle of Spring Cloud
First we need to add Dependancy
groupId org.springframework.cloud groupId
artifactId spring-cloud-starter-eureka-server artifactId
dependency

Then,In main Spring Boot Application class file, we need to add @EnableEurekaServer annotation. The @EnableEurekaServer annotation is used to make your Spring Boot application acts as a Eureka Server.

By default, the Eureka Server registers itself into the discovery. You should add the configuration into your application.properties file or application.yml file
eureka.client.registerWithEureka = false
eureka.client.fetchRegistry = false
server.port = 8761 on this port eureka server starts

4.What is api gateway with proper explanation?

The API Gateway is a server. It is a single entry point into a system. API Gateway encapsulates the internal system architecture. It provides an API that is tailored to each client. It also has other responsibilities such as authentication, monitoring, load balancing, caching, request shaping and management, and static response handling.
Example : Netflix Zuul


5.Write a program to find each employee for each department.
Basically a list is given with employees objects.

6.How to configure oauth2 ? // need to add dependency and configuration in application properties

7.Angular lifecycle
ngOnChanges − When the value of a data bound property changes, then this method is called.
ngOnInit − This is called whenever the initialization of the directive/component after Angular first displays the data-bound properties happens.
ngDoCheck − This is for the detection and to act on changes that Angular can't or won't detect on its own.
ngAfterContentInit − This is called in response after Angular projects external content into the component's view.
ngAfterContentChecked − This is called in response after Angular checks the content projected into the component.
ngAfterViewInit − This is called in response after Angular initializes the component's views and child views.
ngAfterViewChecked − This is called in response after Angular checks the component's views and child views.
ngOnDestroy − This is the cleanup phase just before Angular destroys the directive/component.

8.Promise vs observeable
9.Have u done any certification on AWS?

One of the best book for Interview Questions
Top 1000 Java Interview Questions & Answers: Includes Spring, Hibernate, Microservices, GIT, Maven, JSP, AWS, Cloud Computing @ https://amzn.to/32zFihe

Best Laptops : https://amzn.to/33rBT4A
Best Software's : https://amzn.to/3h9TTbw

📌 Do Subscribe for all Updates.

Telegram : Drunken Engineer
https://t.me/DrunkenEngineer

You can follow us on Facebook :
  / drunkenengineer8  

Feel free share your Interview Experience with us @ funnytechiees@gmail.com

#ibm #fullstack #java #angular #interviewquestions


In questa pagina del sito puoi guardare il video online IBM Interview Questions for Experienced | Full stack | Microservices | Angular della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Drunken Engineer 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,106 volte e gli è piaciuto 57 spettatori. Buona visione!