Timedora
Free Online Flashcard Deck

Database Models and Distributed Systems Free Online Flashcards

Study Database Models and Distributed Systems with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

When is a relational database often a sound starting point?

Back

A relational database is often a sound starting point for structured data, flexible queries, constraints, and multi-record transactions. Verify that the specific system’s capabilities match the workload.

02
Front

What tradeoff does CAP describe during a network partition?

Back

During a network partition, a distributed system cannot guarantee both a successful response to every request and a globally consistent, up-to-date view for every response.

03
Front

Which database model suits retrieving an item by a known key?

Back

A key-value database associates each unique key with a value, suiting lookups where the key is known, such as retrieving a shopping cart by customer ID.

04
Front

What does atomicity guarantee for a transaction?

Back

Atomicity means a transaction’s operations happen entirely or not at all. In a transfer, the debit and credit should succeed together.

05
Front

Do flexible document shapes make schema and validation unnecessary?

Back

Flexible document shapes do not mean data has no structure. Applications can validate fields, and deliberate schemas help keep records usable and consistent.

06
Front

How do replication and sharding differ?

Back

Replication creates copies of data on multiple machines; sharding divides the dataset among machines. They address different needs.

07
Front

What update risk can arise when a document embeds duplicated data?

Back

Embedding related data can simplify common reads, but duplicated fields need a plan for keeping copies correct when the data changes.

08
Front

Why can’t a database’s category label establish its guarantees?

Back

A relational or NoSQL label alone does not determine transaction, consistency, availability, or scaling guarantees. Check the specific product and configuration.

09
Front

What is one tradeoff of stronger transaction isolation?

Back

Stronger isolation can prevent more anomalies in concurrent work, but may add overhead or cause a transaction to fail and require retrying.

10
Front

How does a graph database represent entities and relationships?

Back

A graph database represents entities as nodes and relationships as edges. It suits queries that traverse connections, such as finding links in a social network.

11
Front

During a network partition, what are two possible CAP tradeoff responses?

Back

A system may reject or delay some requests to preserve stronger consistency, or continue responding while allowing temporarily stale or divergent results.

12
Front

How do vertical and horizontal scaling differ?

Back

Vertical scaling adds resources to one machine; horizontal scaling distributes work across machines. Sharding divides data among machines and can increase capacity.