Database Related Flashcards

Database related cards

1
Q

What is CAP theorem

A

A dis distributed system can only have two of consistency, availability or partition tolerance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What CAP theorem characteristics does relation database has?

A

Availability and Consistancy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the types of database consistency? What consistency type do relational databases have? What about nonrelational DBS?

A

Types of consistency

        1. Strict consistency
         2. Eventual Consistency

RelationsDBs have strict consistency. (changes are reflected immediately)
nonrelational DBS Eventual Consistency(changes are not reflected immediately)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is serialiazable interface in java

A

Serializable is a marker interface your classes must implement if they are to be serialized and deserialized.

Serialization in Java allows us to convert an Object to a stream that we can send over the network or save it as file or store in DB for later usage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Referential integrity

A

Referential integrity is a property of data stating that all its references are valid. In the context of relational databases, it requires that if a value of one attribute (column) of a relation (table) references a value of another attribute (either in the same or a different relation), then the referenced value must exist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly