問題1
You have an Azure Cosmos DB account that uses the SQL API. The account contains a collection.
You have an Apache Spark cluster in Azure HDInsight. The cluster is located in the same Azure region as the Cosmos DB account.
You need to ensure that you can use a Spark to Cosmos DB connector to run Microsoft Power BI queries against the Cosmos DB data.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order

You have an Azure Cosmos DB account that uses the SQL API. The account contains a collection.
You have an Apache Spark cluster in Azure HDInsight. The cluster is located in the same Azure region as the Cosmos DB account.
You need to ensure that you can use a Spark to Cosmos DB connector to run Microsoft Power BI queries against the Cosmos DB data.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order

正確答案:

問題2
You have a client that uses a MongoDB database.
You migrate the MongoDB database to an Azure Cosmos DB account that uses the MongoDB API.
You update the client to use the following connection string:
mongodb://mongoadmin:7AMtgNcbJUFL7whv0C4PypWQKGeCUtUsNSObEEUbTCdwsOF8GcWc2IRWROKoBJf2tofCS6zES3JbEOmWe9JsA==@mymongodbapi.documents.azure.com:10255/?replicaSet=globaldb
After updating the client, you discover that the client cannot connect.
You need to ensure that the client can connect to the Cosmos DB account by using the MongoDB API.
What should you do to connect the client?
You have a client that uses a MongoDB database.
You migrate the MongoDB database to an Azure Cosmos DB account that uses the MongoDB API.
You update the client to use the following connection string:
mongodb://mongoadmin:7AMtgNcbJUFL7whv0C4PypWQKGeCUtUsNSObEEUbTCdwsOF8GcWc2IRWROKoBJf2tofCS6zES3JbEOmWe9JsA==@mymongodbapi.documents.azure.com:10255/?replicaSet=globaldb
After updating the client, you discover that the client cannot connect.
You need to ensure that the client can connect to the Cosmos DB account by using the MongoDB API.
What should you do to connect the client?
正確答案: B
問題3
You have an Azure Cosmos DB account named Account1 that uses the SQL APL Account1 contains a collection named Coll1
You need to ensure that you can run GROUP BY aggregate queries against Coll1.
What should you do?
You have an Azure Cosmos DB account named Account1 that uses the SQL APL Account1 contains a collection named Coll1
You need to ensure that you can run GROUP BY aggregate queries against Coll1.
What should you do?
正確答案: A
問題4
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 cluster is located in the same Azure region as Account1.
You plan to use the Spark to Cosmos DB connector to access Coll1 partitions from Spark worker nodes.
You install the JAR files of the Spark to Cosmos DB connector.
You need to run queries against Coll1 from within a Spark session by using the connector.
In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

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 cluster is located in the same Azure region as Account1.
You plan to use the Spark to Cosmos DB connector to access Coll1 partitions from Spark worker nodes.
You install the JAR files of the Spark to Cosmos DB connector.
You need to run queries against Coll1 from within a Spark session by using the connector.
In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

正確答案:

問題5
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Cosmos DB account named Account1 that uses the SQL APL Account1 contains a collection named Coll1.
You create a document named doc1 and set the TTL value for the document to 86,400. Thirty-six hours later, you discover that doc1 still exists in Coll1.
You need to ensure that documents are removed from Coll1 when the TTL for the documents expires.
Solution: You set the default consistency level of Account1 to Strong.
Does this meet the goal?
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Cosmos DB account named Account1 that uses the SQL APL Account1 contains a collection named Coll1.
You create a document named doc1 and set the TTL value for the document to 86,400. Thirty-six hours later, you discover that doc1 still exists in Coll1.
You need to ensure that documents are removed from Coll1 when the TTL for the documents expires.
Solution: You set the default consistency level of Account1 to Strong.
Does this meet the goal?
正確答案: B
問題6
You have an Azure Cosmos DB account named Account1 that uses the SQL API. Account1 contains a database named DB1. DB1 contains a collection named Coll1. You are evaluating the storage for Account1.
You need to retrieve the following information about Coll1:
- The amount of storage used by the index
- The amount of storage used by the data
- The amount of available storage
How should you complete the C# code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

You have an Azure Cosmos DB account named Account1 that uses the SQL API. Account1 contains a database named DB1. DB1 contains a collection named Coll1. You are evaluating the storage for Account1.
You need to retrieve the following information about Coll1:
- The amount of storage used by the index
- The amount of storage used by the data
- The amount of available storage
How should you complete the C# code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

正確答案:
