ashore ali

Hello everyone, I am Lao Wang. I have received the real interview questions from Ali shared by fans who have successfully landed recently. I will share them for your reference.

01. Salary system

There are also many new technologies used, and it is also one of the major manufacturers that many people want to enter.

Ali's salary structure is generally 12 months salary + 1 month salary = 13 salary .

Ali's standard salary is 14 salary, but usually can get 16-20 salary.

The year-end bonus depends on the profitability of the department, which is generally 3 months.

Ali has two rank systems, one is the P sequence, representing technology; the other is the M sequence, representing management.

There is a corresponding relationship between P and M.

02. Real interview questions

Ali side

  • mysql index structure?

  • Redis persistence strategy?

  • Tell me about the zookeeper node type;

  • zookeeper election mechanism?

  • Zookeeper master node failure, how to re-election?

  • syn mechanism?

  • The core parameters of the thread pool;

  • What is the implementation, principle, and business of threadlocal?

  • The principle of spring di;

  • waved four times;

  • gcroot select;

  • The process of the mark-and-sweep algorithm, how does the mark-and-clear algorithm allocate memory space for objects?

  • Disadvantages of cms algorithm;

  • correnthashmap?

  • threadlocal principle?

  • hashmap;

  • Java data types, synchronization mechanism;

  • How do you troubleshoot if an online user encounters a 502 error?

  • The amount of concurrency is very large, and the server is down. what will you do?

  • The difference between syn and lock, which one is better? How to choose?

  • Hashmap source code, why did 8 nodes become a red-black tree and why did it return to a linked list after 6 nodes?

  • Cache penetration, how to solve it?

  • Load balancing algorithm, realized;

  • Disadvantages of polling and random;

  • Distributed service governance;

  • The difference between dns iteration and recursion;

  • Algorithm question: the longest palindrome string;

  • Why is there a three-way handshake when connecting, but a four-way handshake when closing?

Ali's two sides

  • Inquire about project experience;

  • Hashmap understands.

  • Understanding of redis distributed lock?

  • What if the master node hangs up when redis is used as a distributed lock, but the data has not been synchronized to the slave node?

  • The difference between the two storage engines of mysql

  • If there are a large number of additions and deletions, which storage engine should be selected and why?

  • Talk about the understanding of object-oriented, talk about the understanding of polymorphism.

  • tcp waved four times? Why wait for 2MSL.

  • What are the algorithms for congestion control? Is the growth exponential or linear in the early stage of slow start?

  • By what dimension are sub-databases and sub-tables divided? What is the division algorithm, and will there be unbalanced data distribution?

  • What is the granularity of locks supported by myisam and innodb?

  • What are the ways to solve cache breakdown?

  • When to add a lock, when to choose a local lock, and when to choose a distributed lock?

  • Do you know those sorting algorithms? Quick sort average time complexity and worst time complexity. What is the worst case in the partition process, describe it.

  • There are 100 stack lights in a room, the serial numbers are 1-100, and there are two states of on or off, and then there are 100 people, the serial numbers are 1-100, and then everyone will enter the room, and everyone will put their serial number Multiples, etc. perform an operation (turn on or off), and ask how many lights will be turned on in the end?

Three sides of Ali

  • Ask about project experience.

  • How to design distributed locks?

  • Network io model. search engine.

  • What is the use of virtual reference in java?

  • Design a login state system. How to secure password plus transmission. What if you want the server to request an asymmetrically encrypted public key and the request is intercepted and tampered with?

  • How to do database master-slave replication? But if it hangs up suddenly, how to ensure that the data during that period of time is hung up?

  • An e-commerce system has id and product name fields. If you ask how to design the architecture, it will involve fuzzy querying of products.

  • How to solve the distributed transaction problem in the double-write process. If the idea of ​​​​final consistency is adopted, what should I do if several concurrent requests come and find that the data is inconsistent?

  • The order number cannot be repeated, how do you design and generate the order number?

03. Interview book

The competition for JAVA jobs this year is indeed fierce, and the reasons for the fierce competition are nothing more than three aspects:

  • 1. During the three years of the epidemic, large factories laid off employees, resulting in an increase of Java programmers in the market.
  • 2. High salary also means high threshold, and the demand for technology is getting higher and higher;
  • 3. There is a shortage of high-end people, and the current supply of skilled and talented Java programmers is in short supply;

Although the industry dividend seems to be disappearing, this is by no means the worst era, it is just a return to rationality and stability. In addition to judging the trend, we must also see the essence. Improve our own competitiveness.

Finally, I will send you a volume king-level interview book, including Java basics, JVM, Mysql, concurrency, Spring, Mybatis, Redis, RocketMQ, Kafka, Zookeeper, Netty, Dubbo, ElasticSearch, Flink, Spring Boot, Spring Cloud, high-concurrency projects, Big data series, data structure and algorithm, design pattern, network and operating system, etc. 20 big factory interview questions and detailed documentation.

JVM articles

Multithreading

Spring

Redis


Due to the limited space, only part of the content is shown here. For all the information, you can follow my official account: Pharaoh said technology, reply to ms to automatically receive it, and finally wish everyone a successful landing!

Guess you like

Origin blog.csdn.net/b379685397/article/details/130302795
Ali