FullStackFSCCafé
 
 
Sign in with GoogleSign in with Google. Opens in new tab
Kill Your Tech Interview
3877 Full-Stack, Algorithms & System Design Interview Questions
Answered To Get Your Next Six-Figure Job Offer
      
🤖 Having Machine Learning & DS Interview? Check  MLStack.Cafe - 1704 Data Science & ML Interview Questions & Answers!Having ML & DS Interview? Check 🤖 MLStack.Cafe - 1704 ML & DS Interview Questions and Answers

Top 46 Cosmos DB Interview Questions

Entry Junior Mid Senior Expert
Sign in with GoogleSign in with Google. Opens in new tab
Topic Progress:

Theoretical Questions

Q1:   

What is Partition Key in Cosmos DB?

  
Add to PDF   Junior 
Q2:   

Can we change the Partition Key in Cosmos DB?

  
Add to PDF   Junior 
Q3:   

What is Partitioning in Cosmos DB?

  
Add to PDF   Junior 
Q4:   

What is the difference between Partition Key and Primary Key in Cosmos DB?

  
Add to PDF   Junior 
Q5:   

What is RU in Cosmos DB?

  Related To: Azure
Add to PDF   Junior 
Q6:   

What is the rule of thumb for choosing the ideal partitioning key in CosmosDB?

  Related To: Azure
Add to PDF   Junior 
Q7:   

How is data stored in different partitions in a Cosmos DB container?

  
Add to PDF   Junior 
Q8:   

Name types of the Indexes in Cosmos DB

  
 Add to PDF   Mid 
Q9:   

What's Logical Partition in CosmosDB?

  Related To: Azure
 Add to PDF   Mid 
Q10:   

What does "Cosmos DB automatically indexes the documents" mean? Explain.

  Related To: Azure
 Add to PDF   Mid 
Q11:   

Explain different indexing modes in Cosmos DB

  
 Add to PDF   Mid 
Q12:   

When will you use Unique Keys constraints in Cosmos DB?

  
 Add to PDF   Mid 
Q13:   

Explain the use of Change Feed in Cosmos DB. What use cases will you use it for?

  
 Add to PDF   Mid 
Q14:   

Explain how Transactions are supported in Cosmos DB?

  
 Add to PDF   Mid 
Q15:   

Can you mix different document types in the same container in Cosmos DB? Why would you do it?

  
 Add to PDF   Mid 
Q16:   

How to do a transaction with two collections on Azure CosmosDB?

  Related To: Azure
 Add to PDF   Mid 
Q17:   

When would you create a new container instead of adding data of different type to the one already created in Cosmos DB?

  
 Add to PDF   Mid 
Q18:   

Is having the same Partition Key in multiple containers a good idea?

  
 Add to PDF   Mid 
Q19:   

What are the consequences of the wrong Partition Key choice?

  
 Add to PDF   Mid 
Q20:   

Explain the use of Store Procedures, Triggers and UDF in Cosmos DB

  
 Add to PDF   Mid 
Q21:   

What’s the difference between Logical and Physical partitions in Cosmos DB?

  Related To: Azure
 Add to PDF   Mid 
Q22:   

Name and define some Consistency Models/Levels in Azure Cosmos DB

  
 Add to PDF   Mid 
Q23:   

Name some RUs Throughput Modes used in Cosmos DB

  
 Add to PDF   Mid 
Q24:   

Explain the difference between Point Reads and Queries in Cosmos DB?

  
 Add to PDF   Mid 
Q25:   

Explain what is the Point Read in Cosmos DB?

  
 Add to PDF   Mid 
Q26:   

Name some pros and cons of using GUID as Partition Key in Cosmos DB

  Related To: Azure
 Add to PDF   Mid 
Q27:   

What are cross-partition queries in Cosmos DB?

  
 Add to PDF   Mid 
Q28:   

How would you select the right partition key for the container in CosmosDB?

  
 Add to PDF   Mid 
Q29:   

What is the purpose of synthetic partition key in Cosmos DB?

  
 Add to PDF   Mid 
Q30:   

What is the use of ETag property in Cosmos DB?

  
 Add to PDF   Senior 
Q31:   

How would you choose Partition Key for read-heavy containers in CosmosDB?

  
 Add to PDF   Senior 
Q32:   

How would you choose/design a muti-tenant architecture with Azure Cosmos DB?

  Related To: Azure
 Add to PDF   Senior 
Q33:   

Why not put users, posts and comments in just one container in Cosmos DB?

  
 Add to PDF   Senior 
Q34:   

When and how would you avoid/prevent cross-partition queries in Cosmos DB?

  
 Add to PDF   Senior 
Q35:   

Explain the use of Bounded Staleness consistency model in Cosmos DB

  Related To: Azure
 Add to PDF   Senior 
Q36:   

When and why would you exclude property paths from indexing in Cosmos DB?

  
 Add to PDF   Senior 
Q37:   

When would you use None indexing mode in Cosmos DB?

  
 Add to PDF   Senior 
Q38:   

Explain the difference between two models below. Which one is more performant for reading?

  
 Add to PDF   Senior 
Q39:   

How OOC is working for accounts with multi-region writes in Cosmos DB?

  
 Add to PDF   Expert 
Q40:   

What are some of the Security Options provided by Cosmos DB?

  
 Add to PDF   Expert 
Q41:   

Why large logical partitions are a terrible choice for growing Cosmos DB?

  
 Add to PDF   Expert 
Q42:   

What are some limitations of Physical Partitions and why is it important to monitor?

  
 Add to PDF   Expert 
Q43:   

Explain what is Optimistic Concurrency Control (OCC) and how is it implemented in Cosmos DB?

  Related To: Azure
 Add to PDF   Expert 
Q44:   

Can we use Strong Consistency with multiple write regions for Cosmos DB? Explain

  
 Add to PDF   Expert 

Code Challenges

Q1:   

How would you optimise this query to have lower latency and consume fewer RUs?

  
  Add to PDF   Mid 
Q2:   

Is using CurrentDate a good partition key?

  
  Add to PDF   Mid 
 

Rust has been Stack Overflow’s most loved language for four years in a row and emerged as a compelling language choice for both backend and system developers, offering a unique combination of memory safety, performance, concurrency without Data races...

Clean Architecture provides a clear and modular structure for building software systems, separating business rules from implementation details. It promotes maintainability by allowing for easier updates and changes to specific components without affe...

Azure Service Bus is a crucial component for Azure cloud developers as it provides reliable and scalable messaging capabilities. It enables decoupled communication between different components of a distributed system, promoting flexibility and resili...

Cosmos DB has gained popularity among developers and organizations across various industries, including finance, e-commerce, gaming, IoT, and more. Follow along and learn the 24 most common and advanced Azure Cosmos DB interview questions and answers...
More than any other NoSQL database, and dramatically more than any relational database, MongoDB's document-oriented data model makes it exceptionally easy to add or change fields, among other things. It unlocks Iteration on the project. Iteration f...
Unit Tests and Test Driven Development (TDD) help you really understand the design of the code you are working on. Instead of writing code to do something, you are starting by outlining all the conditions you are subjecting the code to and what outpu...
Domain-Driven Design is nothing magical but it is crucial to understand the importance of Ubiquitous Language, Domain Modeling, Context Mapping, extracting the Bounded Contexts correctly, designing efficient Aggregates and etc. before your next DDD p...
At its core, Microsoft Azure is a public cloud computing platform - with solutions including Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) that can be used for services such as analytics, virtual c...
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. Follow along to refresh your knowledge and explore the 52 most frequently asked and advanced Node JS Interview Questions and Answers every...
Dependency Injection is most useful when you're aiming for code reuse, versatility and robustness to changes in your problem domain. DI is also useful for decoupling your system. DI also allows easier unit testing without having to hit a database and...