You develop Azure solutions. You must connect to a No-SQL globally-distributed database by using the .NET API. You need to create an object to configure and exe...
Microsoft AZ-204 Exam
Questions Number: 98 out of 355 Questions
27.61%
Question 98
You develop Azure solutions. You must connect to a No-SQL globally-distributed database by using the .NET API. You need to create an object to configure and execute requests in the database. Which code segment should you use?
Example: // Create a new instance of the Cosmos Client this.cosmosClient = new CosmosClient(EndpointUri, PrimaryKey) //ADD THIS PART TO YOUR CODE await this.CreateDatabaseAsync(); Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-get-started