Consistency in Cosmos DB MCQ Questions - Microsoft Azure
This section focuses on "Consistency in Cosmos DB" of Microsoft Azure. These Multiple Choice Questions (MCQ) should be practiced to improve the Microsoft Azure skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. How many types of consistency are there in Azure Cosmos DB?
A. 5
B. 3
C. 4
D. 6
View Answer
Ans : A
Explanation: Azure Cosmos DB, a multi model database service has 5 consistency level.
2. Which consistency level in Azure Cosmos DB provides the strongest consistency?
A. Bounded Staleness
B. Session
C. Eventual
D. Strong
View Answer
Ans : D
Explanation: Among the five consistency levels in Azure Cosmos DB, strong is the strongest one. It guarantees to provide the most recent committed write.
3. Which consistency level in Azure Cosmos DB provides the weakest consistency?
A. Bounded Staleness
B. Session
C. Eventual
D. Strong
View Answer
Ans : C
Explanation: Among the five consistency levels in Azure Cosmos DB, Eventual is the weakest one.Here the client may see the values which are older than the ones seen before.
4. Which one of the following is arranged from strongest to weakest consistency level?
A. Strong, Bounded Staleness, Session, Consistent Prefix, Eventual
B. Strong, Bounded Staleness, Consistent Prefix, Session, Eventual.
C. Strong, Session, Bounded Staleness, Consistent Prefix, Eventual.
D. Strong, Session, Consistent Prefix, Eventual, Bounded Staleness
View Answer
Ans : A
Explanation: The correct order of consitency level is Strong, Bounded Staleness, Session, Consistent Prefix, Eventual, where Strong is the strongest and Eventusl is the weakest consistency level.
5. Which consistency level ensures highest availability and lowest latency?
A. Strong
B. Eventual
C. Session
D. Bounded Staleness
View Answer
Ans : B
Explanation: For requirements of highest availability and lowest latency, Eventual consistency level is recommended.
6. Which consistency level provides the most predictable and intuitive programming model?
A. Eventual
B. Session
C. Strong
D. Consistent Prefix
View Answer
Ans : C
Explanation: In Strong consistency level, clients are able to read the most recent writes and it is the most predictable and intuitive programming model.
7. Which consistency level is most preferred where low write latencies and total global order guarantees are required?
A. Bounded Stalenes
B. Eventual
C. Session
D. Strong
View Answer
Ans : A
Explanation: Bounded Staleness is the most preferred consistency level for the above stated condition.
8. What is the maximum number of read regions that can be chosen with Bounded Staleness consistency?
A. 1
B. 2
C. 5
D. Any number of read regions can be chosen
View Answer
Ans : D
Explanation: We can choose Bounded Staleness with any number of read regions alongwith write regions.
9. Which among the following Consistency levels provides the highest availability?
A. Strong
B. Consistent Prefix
C. Session
D. Bounded Staleness
View Answer
Ans : B
Explanation: As we move from Strong to Eventual in consistency spectrum, consistency decreases while availability increases.
10. Choose the correct option regarding Strong consistency level.
A. It has highest consistency.
B. It provides lowest availability
C. It has high latency.
D. All of the above.
View Answer
Ans : D
Explanation: Strong consistency level has an advantage that it provides the highest consistency but also has disadvantages of having lowest availability and high latency.
Discussion