This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The logistics team is creating an inventory database. The team needs to add a collection to store the current products. Their programmers would like to use the ProductID as the shard key. How would this collection be created programmatically?
Use the GetCollection function and assign ProductID to the shardKey parameter.
Use the extended database run command function with the respective customAction, collection, and shardKey parameters.
Use the CreateCollection function and assign ProductID to the shardKey parameter.
Which of the following statements is true?
Since an Azure Cosmos DB for MongoDB account doesn't have a MongoDB engine, developers need to use different tools and drivers than they currently use to connect to their current MongoDB 3.2, 3.6, 4.0 and 4.2 databases.
Upgrading between Azure Cosmos DB for MongoDB Server versions could take several hours depending on the databases sizes.
Azure Cosmos DB for MongoDB accounts benefit from automatic and transparent sharding.
The accounting department needs a development database but would like to reduce cost since this database won't be used regularly. Which capacity mode should the accounting team pick for the database?
Provisioned.
Autoscale.
Serverless.
You must answer all questions before checking your work.
Was this page helpful?