Database / Azure Cosmos DB interview questions
What is Azure Cosmos DB and what problems does it solve?
Azure Cosmos DB is Microsoft's globally distributed, multi-model NoSQL database service built for modern cloud-native applications. It is designed to solve two of the hardest problems in distributed systems: global low-latency reads and writes and horizontal scalability without any schema or infrastructure management burden.
At its core, Cosmos DB stores data as items (JSON documents, key-value pairs, graph nodes, or column-family rows depending on which API you use), organizes them into containers (analogous to collections or tables), and groups containers into databases. All storage is SSD-backed, replicated across multiple fault domains within a region, and optionally replicated across every Azure region worldwide with a single toggle.
The problems it specifically addresses: traditional relational databases require you to choose a single region and manually set up complex read replicas for global reach. With Cosmos DB you declare which regions you want, and replication is automatic. You also no longer need to guess capacity upfront — throughput scales elastically via Request Units (RU/s), and the Serverless tier removes the need to pre-provision capacity entirely for sporadic workloads. Schema enforcement is deliberately absent, so schema evolution is friction-free compared to SQL ALTER TABLE migrations.
It is the right choice when you need single-digit millisecond latency at the 99th percentile, when your data spans multiple regions, or when your workload is too variable to size a fixed database cluster.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
