Develop Solutions for Cosmos DB Flashcards
Which Consistency Level always has the latest commited write?
Strong
Which Consistency Level will eventually be complete in a given timeframe?
- Strong
- Bounded staleness
- Session
- Consistent prefix
- Eventual
Bounded staleness
Which Consistency Level will be consistent within a client context?
Session
Which Consistency Level may not be complete, but won’t be out of order?
- Strong
- Bounded staleness
- Session
- Consistent prefix
- Eventual
Consistent Prefix
Which Consistency Level may return events out of order?
- Strong
- Bounded staleness
- Session
- Consistent prefix
- Eventual
Eventual Consistency
If you need to ensure that clients never receive a partial write, which one should you use?
- Strong
- Bounded staleness
- Session
- Consistent prefix
- Eventual
Strong
Which of the following options affects the number of request units it takes to write a document?
Size of the document
Item property count
Indexing policy
All of the above
All of the above
True or False? A partition key defines the partition strategy, it’s set when you create a container and can’t be changed
True
True or false: You can add a partition key to an Azure Cosmos DB container after it has been created.
False, You can set the partition key only when the container is created.
True or False? Core (SQL) API is the default Api for Azure Cosmos DB
True
True or False? Core (SQL) API: You can query hierarchical JSON documents with a SQL-like language
True
Which consistency level should you use for the lowest latency?
Eventual
What’s the standard throughput on a cosmos DB container?
400 RU/s
When would you choose between Standard and autoscale for throughput?
Standard - for workloads with steady or predictable traffic
Autoscale - for workloads with variable or unpredicable hours
When will you save more with manual vs autoscalling?
Of all hours in a month, if you set autoscale max RU/s Tmax and use the full amount Tmax for 66% of the hours or less, it’s estimated you’ll save with autoscale.