DP-420 practice question 20 of 25
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?
Full set: 144 questionsTo measure performance from the secondary region you need to promote that region to highest read-priority (or to the single-write region for non-multi-write accounts).
az cosmosdb failover-priority-change initiates the manual failover/priority swap, after which traffic can be directed to the secondary region for testing.
A. az cosmosdb location show only lists regions; it does not redirect traffic.
C. az cosmosdb network-rule remove alters firewall rules, unrelated to regional testing.
D. az cosmosdb sql database merge is not a valid CLI verb and has no effect on regions.
1. Azure CLI reference – az cosmosdb failover-priority-change: “Changes regional failover priority or triggers manual failover” (https://learn.microsoft.com/cli/azure/cosmosdb#az-cosmosdb-failover-priority-change)
2. Microsoft Learn – Manage failover with CLI
step 1: run az cosmosdb failover-priority-change to move traffic to chosen region (https://learn.microsoft.com/azure/cosmos-db/high-availability#manual-failover-cli)
Keep practicing
Take the free DP-420 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DP-420 practice questions
- Question 1You have an Azure Cosmos DB for NoSQL account. You need to create an Azure Monitor query …
- Question 3You have a database in an Azure Cosmos DB Core (SQL) API account. You need to create an A…
- Question 6You are troubleshooting the current issues caused by the application updates. Which actio…
- Question 9You have an Azure Cosmos DB Core (SQL) API account that is used by 10 web apps. You need …
- Question 12You need to create a data store for a directory of small and medium-sized businesses (SMB…
- Question 13You need to configure an Apache Kafka instance to ingest data from an Azure Cosmos DB Cor…
