Zusammenfassung der Ressource
Frage 1
Frage
What aspect of the CAP theorem does MongoDB trade off?
Antworten
-
Consistency
-
Availability
-
Partition tolerance
-
Scalability
Frage 2
Frage
Why does MongoDB experience a brief period of downtime during server failure?
Antworten
-
The entire database must reboot.
-
Data replication halts temporarily.
-
The system must detect the outage and elect a new primary host.
-
Config servers need to reinitialize.
Frage 3
Frage
Which part of the CAP theorem does Cassandra sacrifice?
Antworten
-
Consistency
-
Availability
-
Partition tolerance
-
Fault tolerance
Frage 4
Frage
Why is Cassandra highly available?
Antworten
-
It replicates data across all nodes in real time.
-
It avoids having a single master node.
-
It requires all nodes to stay online simultaneously.
-
It partitions data only when a node fails.
Frage 5
Frage
When designing a database system, what is a critical first step in choosing a database technology?
Antworten
-
Picking the most popular database solution.
-
Ensuring consistency at all costs.
-
Understanding the system’s specific requirements.
-
Using a database that maximizes partition tolerance.
Frage 6
Frage
In what scenario is it acceptable to choose a database that sacrifices availability?
Antworten
-
When downtime longer than a few minutes is acceptable.
-
When the system requires eventual consistency.
-
When a few seconds of downtime is acceptable.
-
When the system does not need to scale horizontally.
Frage 7
Frage
Which database technologies are examples of solutions that balance CAP trade-offs effectively for general-purpose use?
Antworten
-
Cassandra and PostgreSQL
-
MongoDB and DynamoDB
-
Oracle and SQLite
-
Redis and MySQL
Frage 8
Frage
Why is it important to discuss database trade-offs in system design interviews?
Antworten
-
It shows familiarity with coding techniques.
-
It demonstrates an understanding of scalability tools.
-
It highlights an ability to make informed technical decisions.
-
It ensures the interviewer agrees with your database choice.