Develop Solutions for Cosmos DB Flashcards

1
Q

Which Consistency Level always has the latest commited write?

A

Strong

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

Which Consistency Level will eventually be complete in a given timeframe?

  • Strong
  • Bounded staleness
  • Session
  • Consistent prefix
  • Eventual
A

Bounded staleness

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

Which Consistency Level will be consistent within a client context?

A

Session

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

Which Consistency Level may not be complete, but won’t be out of order?

  • Strong
  • Bounded staleness
  • Session
  • Consistent prefix
  • Eventual
A

Consistent Prefix

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

Which Consistency Level may return events out of order?

  • Strong
  • Bounded staleness
  • Session
  • Consistent prefix
  • Eventual
A

Eventual Consistency

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

If you need to ensure that clients never receive a partial write, which one should you use?

  • Strong
  • Bounded staleness
  • Session
  • Consistent prefix
  • Eventual
A

Strong

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

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

A

All of the above

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

True or False? A partition key defines the partition strategy, it’s set when you create a container and can’t be changed

A

True

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

True or false: You can add a partition key to an Azure Cosmos DB container after it has been created.

A

False, You can set the partition key only when the container is created.

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

True or False? Core (SQL) API is the default Api for Azure Cosmos DB

A

True

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

True or False? Core (SQL) API: You can query hierarchical JSON documents with a SQL-like language

A

True

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

Which consistency level should you use for the lowest latency?

A

Eventual

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

What’s the standard throughput on a cosmos DB container?

A

400 RU/s

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

When would you choose between Standard and autoscale for throughput?

A

Standard - for workloads with steady or predictable traffic

Autoscale - for workloads with variable or unpredicable hours

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

When will you save more with manual vs autoscalling?

A

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.

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

What are some use cases for using autoscale?

A
Variable or unpredictable workloads
    New applications
    Infrequently used applications
    Development and test workloads
    Scheduled production workloads/queries
17
Q

Which class would you use to retreive data from an Azure Cosmos DB?

A

DocumentClient

18
Q

What class would you use to retrieve data from an Azure table storage account?

A

CloudTableClient