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 there's an Azure Cosmos DB container with 50 partitions, which of the following code correctly configures 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 be inherited 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.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?