This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of these code samples would create a client that could connect to the Azure Cosmos DB emulator using its default port?
new CosmosClient("https://documents.azure.com", "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==");
new CosmosClient("https://localhost:8081", "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==");
new CosmosClient("https://localhost", "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==");
Assuming that you have an Azure Cosmos DB container with 50 partitions, which of the following code will correctly configure the QueryRequestOptions instance to optimize parallelism of requests from the SDK and client?
new QueryRequestOptions { MaxConcurrency = 50 };
new QueryRequestOptions { MaxItemCount = 50 };
new QueryRequestOptions { MaxBufferedItemCount = 50 };
Which class should you inherit from to create a class that intercepts SDK-side HTTP requests and inject extra logic?
RequestMessage
HttpRequest
RequestHandler
You must answer all questions before checking your work.
Continue
Was this page helpful?