Einstein said, “Patience and perseverance always pay off.” I have always taken that as my motto, and it has come true for me this year.
Every programmer has a big factory dream, and I am no exception. In the interview with Ant Financial last year, I was unexpectedly turned down by MySQL. I didn’t answer many relevant questions, so I felt cold after only two interviews. After returning home, I also studied hard and prepared for world War II. Now I finally entered Ant Financial and was employed.
The following shows ali interview questions (including answers), learning materials, combat documents, etc., can be shared with you for free, need friends, pay attention to the following public number can be obtained for free!
01 Ant Financial interview question MySQL
The previous Ali interview questions have been summarized, the specific interview questions have been organized into a document, this article is for MySQL series, so the following only show my first interview ali was asked some MySQL problems, other thematic content (including the answer) of the document, private letter I [interview] can receive.
- Explain the concept and key features of a relational database.
- What are the typical products, features and application scenarios of relational databases?
- Please describe the categories of SQL statements and corresponding representative keywords in detail.
- What is MySQL multi-instance and how to configure MySQL multi-instance?
- How to strengthen MySQL security, please give feasible specific measures?
- A drop database SQL statement was executed by mistake.
- This section describes the principle of MySQL primary/secondary replication and the procedure for configuring primary/secondary replication.
- How does MySQL implement two-way master-slave replication and describe the application scenarios?
- How does MySQL implement cascading synchronization and describe the application scenario?
- How can I solve the primary/secondary replication failure of MySQL?
02 World War II Ali, Tmall team interview questions (3 rounds of technical questions +HR questions)
Ant Financial Interview technical questions:
- Introduce yourself.
- Project introduction (introduce the project first, then chat)
- Execution order of junit usage, before, beforeClass, after, afterClass
- A distributed lock
- Nginx request forwarding algorithm, how to configure by weight forwarding
- What’s wrong with using hashMap to implement Redis (deadlock, loop, ConcurrentHashmap)
- Thread state
- The way a thread blocks
- The difference between “sleep” and “wait”
- The underlying implementation of hashMap
- Ten thousand people grab 100 red envelopes, how to achieve (no queue), how to ensure that 2 people can not grab the same red envelopes, available distributed lock
- Java memory model, garbage collection mechanism, unreachable algorithm
- Two Integer references are passed to a swap method that swaps references within the method and returns the values of the two references to see if they have changed
- AOP’s underlying implementation, dynamic proxy is how dynamic, if there are 100 objects, how dynamic proxy for these 100 objects?
- Check whether you have used Maven install, maven test, git.
- How to configure docBase for Tomcat
- Several ways to configure Spring beans
- The web.xml configuration
- Spring’s listener.
- The implementation mechanism of Zookeeper, with cache, how to store the registration service
- Will I/O block? ReadLine is blocked
- Spring thread pool or Java thread pool?
- String formatting methods (20,21)
- Time formatting methods
- What are timers made of
- How does a thread exit
- What locks does Java have? Optimistic lock Pessimistic lock synchronized read/write lock, use reentrantlock Reentrantlock vs. Synmchronized
- Usage scenarios of ThreadLocal
- Java memory model, garbage collection mechanism
- Why should a thread execute a call to start instead of run?
- Implementation mechanism of QMQ message (QMQ is qunar’s encapsulated message queue)
- Three ways to traverse a HashMap
- Some commands for the JVM
- Difference between Memcache and Redis
- Mysql row-level lock ()
- How is the lock added to ConcurrentHashmap? The more sections, the better
- Innodb isa row lock, myISAM isa table lock.
- Other ways to optimize MySQL performance
- Where can I see Linux system logs
- How do I view network processes?
- Count the number of bits 1 in the binary representation of an integer
- JVM memory model, Java memory model
Answer to interview questions:
How did I study before World War II?
(1) MySQL
- What types of locks are available in Mysql?
- When are MYSQL tables vulnerable to corruption?
- What is the best field type in MySQL to record currency
- Does MYSQL support transactions?
- Explain access control lists
- What are generic SQL functions?
- What is a nonstandard string type?
- How many TRIGGERS are allowed in the Mysql table?
- What objects can be created using the CREATE statement?
- What’s the difference between NOW () and CURRENT_DATE ()?
- How many columns can be used to create an index?
- What is InnoDB?
- How does Mysql optimize DISTINCT?
- How to enter characters as hexadecimal numbers?
- How do I display the first 50 lines?
- .
MySQL interview question answer:
(2) 21 best practices for MySQL performance optimization
- Optimize your query for query caching
- EXPLAIN your SELECT query
- LIMIT 1 is used when there is only one row of data
- Build indexes for search fields
- Use a similar type of example when joining a table and index it
- Don’t ORDER BY RAND()
- Avoid SELECT *
- Always set an ID for each table
- Use ENUM instead of VARCHAR
- Get advice from PROCEDURE ANALYSE()
- Use NOT NULL whenever possible
- Prepared Statements
- Unbuffered query
- Save the IP address as an UNSIGNED INT
- Fixed length tables are faster
- Vertical segmentation
- Split large DELETE or INSERT statements
- The smaller the column, the faster it will be
- Select the correct storage engine
- Use an Object Relational Mapper
- Beware of permalink
(3) MySQL performance tuning and architecture design
- Basic article:
- Introduction to MySQL
- MySQL Architecture Composition
- Introduction to MySQL Storage engine
- MySQL Security Management
- MySQL backup and restore
- Performance Optimization:
- Factors that affect MySQLServer performance
- MySQL database locking mechanism
- MySQL database Query optimization
- MySQL database Schema design performance optimization
- MySQLServer performance optimization
- Common storage engine optimization
- Architectural Design:
- Basic principles of MySQL extensible design
- Extensible design for MySQLReplication
- Scalable design for data sharding
- Scalable design of Cache and Search..
- MySQLCluster
- High availability design ideas and schemes
- MySQL monitoring in a highly available design
04 My review treasure book material
(1) Java interview Manual
- Performance optimization interview column
- Microservices Architecture interview column
- Advanced Interview column for Concurrent programming
- Open source framework interview questions column
- Distributed Interview
(2) Actual combat documents
- Redis of actual combat
- MySQL of actual combat
- Spring the Boot of actual combat
- Spring Cloud of actual combat
- Actual Java virtual machine
The actual Java VM is used as an example:
- An introduction to the Java VIRTUAL machine
- Understand the basic structure of Java virtual machines (VMS)
- Common Java VIRTUAL machine parameters
- Garbage collection concepts and algorithms
- Garbage collector and memory allocation
- Performance Monitoring tool
- Analysis of the Java heap
- Locking and concurrency
- Class file structure
- Class loading system
- Bytecode execution
(3) Java core knowledge points sorted out documents
Due to the limitation of space, many contents only show catalog and screenshots, which are organized in the document, need these documents, can be shared with you for free, I hope all programmers can learn up, and strive to achieve our dream of Dachang!
Information: forward + comments, pay attention to the below public number can be free to pack away oh!