MeasureUp Questions Flashcards
Which ports must be open for a direct connection?
TCP 0-65535
What connection mode is the default for .NET SDK v3?
Direct Mode with TCP
Can you use EF Core to generate unique id’s for Cosmos documents?
Yes.
Generate the value by concatenating the discriminator and the primary key values. You have to use ‘|’ as a delimiter.
Which two properties cannot be encrypted with a Customer Managed Key (CMK)?
Id and Partition Key
What actions can the role with id 00000000-0000-0000-0000-000000000001 perform?
The ID is Azure Cosmos DB Built-in Data Reader role.
Microsoft.DocumentDB/databaseAccounts/readMetadata
Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read
Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/executeQuery
Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/readChangeFeed
What status code will you get if you try to read a change feed with no new changes?
HttpStatusCode.NotModified
You have created a pre-trigger in Azure Cosmos DB Core (SQL) API using the .NET SDK version3 for one of your applications that uses Azure Cosmos DB as a data source.
Your organizational security policy requires you to provide the ability for specific clients to read resources in your Cosmos DB account without requiring the explicit usage of a primary key.
You need to provide fine-grained access to specific users for this pre-trigger in a time-bound manner with a customized validity period.
What should you use to achieve the requirement?
You should use resource tokens.
Resource tokens allow you to provide fine-grained access to specific application resources within an Azure Cosmos DB database. They include providing access to specific containers, partition keys, items (or documents), stored procedures, pre-triggers, post-triggers, and user-defined functions (UDFs). Additionally, resource tokens allow you to provide access to the above-mentioned resources in a time-bound manner with a customized validity period without the explicit requirement of a primary or read-only key.
How much will the RUs increase for point reads when using Always Encrypted?
5 %
How much will the RUs increase when reading an Azure Cosmos DB Change Feed increase when using Always Encrypted?
15 %
How much will queries increase RUs when using Always Encrypted?
15 %
How much will write operations increase RUs when using Always Encrypted?
6 %
What is a common reason for an HTTP 423 status response when trying to change thruput?
Another scaling operation is in progress
Does resolved conflicts show up in the Cosmos DB conflict feed?
No
At what level do you need to assign the Cosmos DB Operator role for a user to configure Backup & Restore?
Subscription level
What is the default redundancy level for periodic backups?
Geo-redundant, if the regions supports it.
Can you get help from Azure Support to restore a database if you have the Basic Support Plan?
No
What Azure Support plan do you need to call and restore databases from backup?
Standard or Developer Plan or higher
What connectivity mode is best when the environment has a high connection limit?
Direct connections