Complete the code to create a Cosmos DB account with the correct API type.
az cosmosdb create --name myCosmosDBAccount --resource-group myResourceGroup --kind [1]The SQL API is the default and most commonly used API for Cosmos DB, supporting document databases.
Complete the code to create a new database inside the Cosmos DB account.
az cosmosdb sql database create --account-name myCosmosDBAccount --resource-group myResourceGroup --name [1]The database is the container for collections or containers in Cosmos DB. Here, you create a database named myDatabase.
Fix the error in the code to create a container with a partition key.
az cosmosdb sql container create --account-name myCosmosDBAccount --database-name myDatabase --name myContainer --partition-key-path [1]The partition key path must start with a slash / and match the property name used in your documents, such as /partitionKey.
Fill both blanks to configure the consistency level and throughput for the Cosmos DB account.
az cosmosdb update --name myCosmosDBAccount --resource-group myResourceGroup --default-consistency-level [1] --max-throughput [2]
Session consistency offers a good balance between performance and consistency. Throughput is set in Request Units per second (RU/s), here 1000 RU/s.
Fill all three blanks to write a query that selects items with a price greater than 20 from a container.
SELECT * FROM c WHERE c.[1] [2] [3]
This query selects all items where the price property is greater than 20.