Next Question >>

Question 1/21

You have an Azure Cosmos DB account named Account1 that uses the SQL APL Account1 contains a collection named Coll1.
You have an Apache Spark cluster in Azure HDInsight. The duster is located in the same Azure region as Account1.
You configure a Spark to Cosmos DB connector to access Coll1.
You successfully use the following code to run non-aggregate queries from within a Spark session by using the connector (Line numbers are included for reference only.)
01 query= client QueryDocuments (
02 collLink, querystr,
03 options=
04 {
05 'enablecrossPartitionQuery': True
06 },
07 partition_key-None)
08 df = spark.createDataFrame(list(query))
You need to modify the code to ensure that you can run couNT aggregate quenes.
What should you do?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (21q)
Question 1: You have an Azure Cosmos DB account named Account1 that uses...
Question 2: You have an Azure Cosmos DB account that uses the SQL API. Y...
Question 3: You have an Azure Cosmos DB account named Account1 that uses...
Question 4: You have an Azure Cosmos DB database that uses the MongoDB A...
Question 5: You have an Azure Cosmos DB account named Account1 that uses...
Question 6: You are designing an Azure Cosmos DB database that will use ...
Question 7: Note: This question is part of a series of questions that pr...
Question 8: You have an Azure Cosmas DB database and a virtual machine t...
Question 9: You have an Azure Cosmos DB account named Account1. You need...
Question 10: Note: This question is part of a series of questions that pr...
Question 11: You have a client that uses a MongoDB database. You migrate ...
Question 12: You plan to create an Azure Cosmos DB account that has the f...
Question 13: You have an Azure Cosmos DB database that uses the Table API...
Question 14: You are creating an Azure Cosmos DB account that will use th...
Question 15: You have an Azure Cosmos DB database that uses the SQL API. ...
Question 16: You have an Azure Cosmos DB account named Account1. Account1...
Question 17: You are implementing security for an Azure Cosmos DB account...
Question 18: You have two Azure Cosmos DB collections named Coll1 and Col...
Question 19: You have an Azure Cosmos DB account named Account1. Account1...
Question 20: You have an Azure Cosmos DB account named Account1 that uses...
Question 21: You are designing an Azure Cosmos DB database that will use ...