nerdexam
Microsoft

DP-420 · Question #208

You have an Azure Cosmos DB for NoSQL database named db1 that writes to multiple Azure regions. You need to test the performance of db1 in the secondary region. Which command should you run first?

The correct answer is B. az cosmosdb failover-priority-change. To perform a manual failover in Azure Cosmos DB for NoSQL, use the 'az cosmosdb failover- priority-change' Azure CLI command with the –failover-policies option, changing the priority of the desired region to 0. az cosmosdb failover-priority-change Changes the failover priority…

Optimize an Azure Cosmos DB solution

Question

You have an Azure Cosmos DB for NoSQL database named db1 that writes to multiple Azure regions. You need to test the performance of db1 in the secondary region. Which command should you run first?

Options

  • Aaz cosmosdb location show
  • Baz cosmosdb failover-priority-change
  • Caz cosmosdb network-rule remove
  • Daz cosmosdb sql database merge

How the community answered

(70 responses)
  • A
    9% (6)
  • B
    70% (49)
  • C
    4% (3)
  • D
    17% (12)

Explanation

To perform a manual failover in Azure Cosmos DB for NoSQL, use the 'az cosmosdb failover- priority-change' Azure CLI command with the –failover-policies option, changing the priority of the desired region to 0. az cosmosdb failover-priority-change Changes the failover priority for the Azure Cosmos DB database account. The Azure CLI command to show the properties of an Azure Cosmos DB location is az cosmosdb az cosmosdb failover-priority-change Changes the failover priority for the Azure Cosmos DB database account. az cosmosdb network-rule remove Remove a virtual network rule from an existing Cosmos DB database account. https://learn.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest#az-cosmosdb- failover-priority-change

Topics

#Multi-region#Failover#Performance testing#Azure CLI

Community Discussion

No community discussion yet for this question.

Full DP-420 Practice