Shredded interviewer series (4): MongoDB+Redis interview topics

Do not miss passing through

Click the blue word to follow us


MongoDB

(Interview questions + answer collection method: follow the author's public account, backstage reply [666])

  1. What do you mean by NoSQL database? What is the direct difference between NoSQL and RDBMS? Why use and not use NoSQL database? Talk about the advantages of NoSQL database?

  2. What types of NoSQL databases are there?

  3. What is the most basic difference between MySQL and MongoDB?

  4. How do you compare MongoDB, CouchDB and CouchBase?

  5. What makes MongoDB the best NoSQL database?

  6. What are the nuances on 32-bit systems?

  7. Will journal playback encounter problems when the entry is incomplete (for example, there happens to be a midway failure)?

  8. What is the role of the analyzer in MongoDB?

  9. What is a namespace?

  10. If the user removes an attribute of an object, is the attribute deleted from the storage layer?

  11. Can the log feature be used for safe backup?

  12. Are null values ​​allowed?

  13. Update operation fsync to disk immediately?

  14. How to perform transactions/locks?

  15. Why is my data file so large?

  16. How long does it take to enable backup failure recovery?

  17. What is master or primary?

  18. What is secondary or slave?

  19. Do I have to call getLastError to ensure that the write operation takes effect?

  20. Should I start a sharded or non-clustered sharded MongoDB environment?

  21. How do sharding and replication work?

  22. When will the data expand to multiple shards?

  23. What happens when I try to update a document on a chunk that is being migrated?

  24. What happens if I initiate a query when a shard stops or is slow?

  25. Can I delete the old files in the moveChunk directory?

  26. How can I check which link Mongo is using?

  27. If the block move operation (moveChunk) fails, do I need to manually clear the partially transferred document?

  28. If I am using replication, can I use journaling for one part and not use other parts?

  29. What happens when a document on a chunk that is being migrated is updated?

  30. MongoDB builds an index on A:{B,C}. Will queries A:{B,C} and A:{C,B} use indexes?

  31. If a shard stops or is slow, what happens if a query is initiated?

  32. Does MongoDB support stored procedures? If so, how to use it?

  33. How to understand the GridFS mechanism in MongoDB, why does MongoDB use GridFS to store files?

Redis (1)

  1. What is the difference between redis and memcached? Why is sometimes single-threaded redis more efficient than multi-threaded memcached under high concurrency?

  2. How does redis master-slave replication work? How to realize the cluster mode of redis? How are the keys of redis addressed?

  3. How to design distributed locks using redis? Talk about the realization idea? Can I use zk? How to achieve? What is the difference between these two?

  4. Do you know the persistence of redis? How is the bottom layer achieved? What are the advantages and disadvantages?

  5. What are the redis expiration strategies? Does the LRU algorithm know? Write a java code implementation?

  6. Cache penetration, cache breakdown, and cache avalanche solutions?

  7. When choosing a cache, when to choose redis and when to choose

  8. What to do if the cache is inconsistent with the database

  9. How to solve the inconsistency between master and slave

  10. Redis common performance problems and solutions

  11. What are the data elimination strategies of Redis

  12. What are the data structures in Redis

  13. Suppose there are 100 million keys in Redis, and 10w of them start with a fixed, known prefix. What if you can find them all?

  14. Have you used Redis as an asynchronous queue and how did you achieve it?

  15. How Redis implements delay queue

Redis (two)

  1. What is Redis? Briefly describe its advantages and disadvantages?

  2. What are the advantages of Redis over memcached?

  3. Which data types does Redis support?

  4. What physical resources does Redis consume?

  5. What is the full name of Redis?

  6. What kinds of data elimination strategies does Redis have?

  7. Why doesn't Redis officially provide a Windows version?

  8. What is the maximum capacity that a string value can store?

  9. Why does Redis need to put all data in memory?

  10. What should the Redis cluster solution do? What are the options?

  11. Under what circumstances will the Redis cluster solution cause the entire cluster to be unavailable?

  12. There are 2000w data in MySQL and only 20w data in redis. How to ensure redis

  13. What are the suitable scenarios for Redis?

  14. What are the Java clients supported by Redis? Which one is the official recommendation?

  15. What is the relationship between Redis and Redisson?

  16. What are the advantages and disadvantages of Jedis and Redisson?

  17. How does Redis set the password and verify the password?

  18. Talk about the concept of Redis hash slot?

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

  20. Will there be write operations lost in the Redis cluster? why?

  21. How is replication between Redis clusters?

  22. What is the maximum number of nodes in a Redis cluster?

  23. How to choose a database for Redis cluster?

  24. How to test the connectivity of Redis?

  25. What is the use of pipelines in Redis?

  26. How to understand Redis transaction?

  27. What are the commands related to Redis transactions?

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

  29. How does Redis optimize memory?

  30. How does the Redis recycling process work?


Previous wonderful recommendations

Summary of Tencent, Ali, Didi Backstage Interview Questions-(including answers)

Interview: The most comprehensive multi-threaded interview questions in history!

The latest Alibaba pushes Java back-end interview questions

JVM is difficult to learn? That's because you didn't read this article seriously

—END—

Follow the author's WeChat public account—"JAVA Rotten Pigskin"

Learn more about java back-end architecture knowledge and the latest interview book

Every thing you order is pretty, I take it seriously as a favorite

After reading this article, remember to give the author a thumbs up + watching it~~~ Everyone's support is the motivation for the author to continue publishing articles.

Guess you like

Origin blog.csdn.net/yunzhaji3762/article/details/108898730