QuestionQ185

Integrate an Azure Cosmos DB solution

You have a database named db1 in an Azure Cosmos DB Core (SQL) API account called account1.

You need to write JSON data to db1 by using Azure Stream Analytics. The solution must minimize costs.

What should you do before you can use db1 as a Stream Analytics output?

  • A In account1, add a private endpoint
  • B In db1, create containers that have a custom indexing policy and analytical store disabled
  • C In db1, create containers that have an automatic indexing policy and analytical store enabled
  • D In account1, enable a dedicated gateway
Explanation

Azure Stream Analytics requires the target Azure Cosmos DB containers to exist before they can be used as an output. A custom indexing policy can reduce RU consumption from indexing during writes, and disabling analytical store avoids the additional analytical-store replication and storage costs when it is not required.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!