Summary of BAT interview questions: distributed + Dubbo + JVM + microservices + multithreading + Spring with answers

Foreword:

This article collects and sorts out N common interview questions from major factories, covering: Java, MyBatis, ZooKeeper, Dubbo, Elasticsearch, Memcached, Redis, MySQL, Spring, Spring Boot, Spring Cloud, RabbitMQ, Kafka, Linux and other technology stacks. I hope Everyone can find a company that suits them, and code happily.

Table of contents:

Due to the large number of questions and space limitations, not all interview questions in the article are shared with detailed analysis, but they are compiled into a detailed PDF document that can be shared with everyone. Get the free collection method at the end of the article

Looking at the interview questions can be for the interview, or it can be a kind of checking and filling in what you have learned, so as to understand some core knowledge points more deeply

(Interview answers are attached at the end of the article)

MyBatis interview questions

  • 1. What is Mybatis?

  • 2. Advantages of Mybaits:

  • 3. Disadvantages of MyBatis framework:

  • 4. MyBatis framework applicable occasions:

  • 5. What are the differences between MyBatis and Hibernate?

  • 6. What is the difference between #{} and ${}?

  • 7. What should I do if the attribute name in the entity class is different from the field name in the table?

  • 8. How to write the fuzzy query like statement?

ZooKeeper interview questions

ZooKeeper is an open source distributed coordination service, created by Yahoo, and is an open source implementation of Google Chubby. Distributed applications can implement data publishing/subscribing, load balancing, naming services, distributed coordination/notifications, cluster management, Master election, configuration maintenance, name services, distributed synchronization, distributed locks, and distributed queues based on ZooKeeper. Function.

  • The difference between zookeeper load balancing and nginx load balancing

  • Zookeeper Watcher Mechanism--Data Change Notification

  • Client registers Watcher implementation

  • How does zookeeper ensure the sequential consistency of transactions?

  • Is Zookeeper's watch notification to the node permanent? Why not forever?

  • How to deal with zk node downtime?

Dubbo interview questions

Spring Eureka has changed from open source to closed source, Consul is on the rise, and Dubbo has begun to be updated again. At present, there are still many companies using dubbo in the market, and we need to continue to learn.

  • Why use Dubbo?

  • What communication framework is used by default, and are there any alternatives?

  • Is the service call blocking?

  • What registry is generally used? Is there another option?

  • What serialization framework is used by default, and what else do you know?

  • What are the layers of Dubbo's overall architecture design?

Elasticsearch interview questions

How much do you know about elasticsearch, talk about your company's es cluster architecture, index data size, how many fragments, and some tuning methods.

Elasticsearch index data more how to do, how to tune, deploy

How elasticsearch implements master election

What are the optimization methods for Linux settings when Elasticsearch is deployed

Describe in detail the process of updating and deleting documents in Elasticsearch.

When Elasticsearch is deployed, what are the optimization methods for Linux settings?

(Interview answers are attached at the end of the article)

Redis interview questions

With the continuous maturity of application research and development technology, Redis caching technology has become one of the necessary capabilities for background research and development students. In the interview process of many companies, it is essential to examine the mastery of Redis knowledge points.

  • What are the benefits of using Redis?

  • Is Redis single-process and single-threaded?

  • What is the persistence mechanism of Redis? Pros and cons of each?

  • Redis common abnormal problems and solutions (avalanche, penetration...)

  • Redis expired key deletion strategy?

  • Why does redis need to put all data in memory?

  • What is the master-slave replication model of Redis cluster?

  • How to set the expiration time and permanent validity of the Redis key?

MySQL interview questions

Nowadays, MySQL is the most used in the Internet industry. However, for advanced web interviewers, especially for job seekers looking for jobs under 30k, many MySQL-related knowledge points will be involved. If your answers to relevant knowledge are vague and irrelevant during the interview , Basically, most of the interviewers from better companies will not be interested in you. After all, a slightly large-scale project will eventually allow you to go deep into the database, and most of the final bottlenecks will first appear in the database.

  • MySQL related storage engine.

  • The principle of MySQL index implementation.

  • MySQL database lock.

  • SQL Tuning for MySQL.

  • The global ID of the MySQL sub-table and sub-database.

Java Concurrency Programming Interview Questions

  • Difference between daemon thread and native thread in java?

  • What is context switching in multithreading?

  • What is the thread scheduling algorithm used in Java?

  • What is a thread group and why is it deprecated in Java?

  • Difference between Executor and Executors in Java?

  • Three elements of concurrent programming?

  • What is a thread pool? What are the ways to create it?

  • 1. Talk about your understanding of Spring IoC?

  • 2. Talk about your understanding of Spring DI?

  • 3. What is the difference between the BeanFactory interface and the ApplicationContext interface?

  • 4. Please introduce the Spring core classes you are familiar with, and what are their functions?

  • 5. Tell me about Spring's transaction understanding?

  • 6. Tell me about Spring's transaction implementation?

  • 7. What is Spring's dependency injection?

JVM interview questions

Three major performance tuning parameters of JVM, several important parameters of JVM

JVM tuning

JVM memory management, JVM's common garbage collector, G1 garbage collector. GC tuning, Minor GC, Full GC trigger conditions

Java memory model

Java Garbage Collection Mechanism

Describe a Full gc process in the JVM

What are the reference types in Java?

The class loading mechanism in the JVM, the class loading process, what is the parental delegation model? , what are the class loaders

How to judge whether there is a memory leak? What are the ways to locate the cause of Full GC?

Spring Cloud interview questions

  • What is Spring Cloud?

  • What are the advantages of using Spring Cloud?

  • What does service registration and discovery mean? How does Spring Cloud implement it?

  • What is the meaning of load balancing?

  • What is Hystrix? How does it achieve fault tolerance?

  • What is a Hystrix circuit breaker? do we need it

  • What is Netflix Feign? What are its advantages?

  • What is Spring Cloud Bus? do we need it

Kafka interview questions

Are there three key differences between Kafka and traditional MQ messaging systems?

Tell me about the three mechanisms of Kafka's ack?

Consumer failure, how to solve the livelock problem?

In the case of kafka distributed (not stand-alone), how to ensure the sequential consumption of messages?

How does Kafka not consume duplicate data? For example, deductions, we cannot deduct repeatedly.

After reading the above content, I believe that everyone has a clear goal and direction. The next step is to find learning materials. We have prepared a set of systematic architect learning materials and BAT interview materials for your reference and learning. The contents of the package and how to get it are as follows:

method of obtaining

For those in need, please backstage [717]

Guess you like

Origin blog.csdn.net/xxxzzzqqq_/article/details/130679104