Knowledge check

Completed
1.

Which block of code should be used to create a client to connect to the Azure Cosmos DB account with only a connection string?

2.

Consider a new Azure Cosmos DB account without any resources. Which block of code creates the first server-side resource that is required to store a set of containers?

3.

An item already exists in the Azure Cosmos DB for NoSQL account with a unique identifier of 04b3038c-b966-4a86-a1f3-5d1fa5c2a47c. Which of the following blocks of code replace the existing item in the container with a newly created item without running the risk of creating an entirely new item.

4.

Here's an Azure Cosmos DB for NoSQL query: SELECT * FROM container c WHERE c.partitionKey == 'some-category' ORDER BY c.id. What is the language-integrated query (LINQ) equivalent of this query?