exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 2 question 5 discussion

Actual exam question from Microsoft's DP-420
Question #: 5
Topic #: 2
[All DP-420 Questions]

You have an Azure Cosmos DB Core (SQL) API account named account1 that is configured for automatic failover. The account1 account has a single read-write region in West US and a read region in East US.
You run the following PowerShell command.
Update-AzCosmosDBAccountFailoverPriority -ResourceGroupName `rg1` -Name `account1` -FailoverPolicy @(`East US`, `West
US`)
What is the effect of running the command?

  • A. The account will be unavailable to writes during the change
  • B. The provisioned throughput for account1 will increase
  • C. The account will be configured for multi-region writes
  • D. A manual failover will occur
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
christosst
Highly Voted 2 years, 2 months ago
I think is D - West US is the failoverPriority=0 right? Any change to a region with failoverPriority=0 triggers a manual failover and can only be done to an account configured for manual failover. Changes to all other regions simply changes the failover priority for an Azure Cosmos DB account. https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update
upvoted 19 times
harass
1 year, 5 months ago
This answer is incorrect because changing all regions will only change the priority. https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update (Changes to all other regions simply changes the failover priority for an Azure Cosmos DB account.) No failover will occur because the powershell command change will trigger all regions.
upvoted 2 times
...
...
IDATA
Highly Voted 2 years, 5 months ago
I think its worng, the answer is D Becouse just have 2 failover regions, if u flip this 2 this gona make a Manual Failover https://docs.microsoft.com/en-us/azure/cosmos-db/sql/manage-with-powershell
upvoted 8 times
codingdown
2 years, 3 months ago
you are not performing the failover, just deciding the autofailovr policy
upvoted 1 times
Alex22022
2 years ago
According to the link below, a manual failover is performed if you change one of the regions to priority = 0. https://learn.microsoft.com/en-us/training/modules/write-scripts-for-azure-cosmos-db-sql-api/7-initiate-failovers
upvoted 2 times
monniq
1 year, 5 months ago
The accounts are configured for automatic failover. In order for manual failover to happen, the account with priority 0 must be configured for manual failover. "Any change to a region with failoverPriority=0 triggers a manual failover and can only be done to an account configured for manual failover." https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update
upvoted 1 times
...
...
...
harass
1 year, 5 months ago
This answer is incorrect because changing all regions will only change the priority. https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update (Changes to all other regions simply changes the failover priority for an Azure Cosmos DB account.)
upvoted 1 times
...
...
szkielet
Most Recent 5 days, 1 hour ago
Selected Answer: D
Imagine your Azure Cosmos DB account as a bustling train station. Right now, West US is the central hub where all the trains (writes) depart from, and East US is a satellite station handling passengers (reads). By running this PowerShell command: powershell Update-AzCosmosDBAccountFailoverPriority -ResourceGroupName `rg1` -Name `account1` -FailoverPolicy @(`East US`, `West US`) You're essentially rerouting the main line to East US, making it the new central hub. Here's what happens: Effect of the Command: Manual Failover Triggered: You're updating the failover priority, placing East US above West US. Since your account is configured for automatic failover, this change initiates a manual failover to East US. The write region shifts from West US to East US. Answer: D. A manual failover will occur
upvoted 1 times
...
poesklap
8 months ago
Selected Answer: D
A. The account will be unavailable to writes during the change: This is partially true. During the change, there might be a brief period where writes are unavailable as the system transitions the write region. However, this downtime is usually minimal. B. The provisioned throughput for account1 will increase: No, changing the failover priority does not affect the provisioned throughput. C. The account will be configured for multi-region writes: No, the command does not configure the account for multi-region writes. Multi-region writes need to be explicitly configured. D. A manual failover will occur: Yes, the command triggers a failover process by changing the priority, effectively causing a manual failover to the new region.
upvoted 1 times
...
Examdumps2023
8 months ago
Selected Answer: D
By changing the failover priority, you are effectively initiating a manual failover to the new primary region.
upvoted 1 times
...
Blubb1860
1 year, 1 month ago
Selected Answer: D
D is correct, setting failover priority 0 means it´s the new write region
upvoted 2 times
...
Tito28
1 year, 5 months ago
It can't be D cause the account is configured for automatic failover. https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update The right option is C. The command Update-AzCosmosDBAccountFailoverPriority with the specified failover policy updates the failover priority of the Cosmos DB account. In this case, the failover policy includes both 'East US' and 'West US' regions, indicating that the account will be configured for multi-region writes. The command does not make the account unavailable for writes during the change, increase the provisioned throughput, or trigger a manual failover.
upvoted 1 times
...
harass
1 year, 5 months ago
The failover occurs, but D's answer says that a manual failover occurs. In this case, the failover that occurred was a service-managed failover, not a manual failover, so D is not an answer. I also did not find the same results with answers B and C. The correct answer should be A.
upvoted 1 times
harass
1 year, 5 months ago
This answer reflects the results of testing after configuring the environment.
upvoted 1 times
...
...
Feanorich
1 year, 6 months ago
Selected Answer: D
It is D
upvoted 2 times
harass
1 year, 5 months ago
This answer is incorrect because changing all regions will only change the priority. https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update (Changes to all other regions simply changes the failover priority for an Azure Cosmos DB account.)
upvoted 1 times
...
...
azuredemo2022three
1 year, 8 months ago
Selected Answer: C
Selected Answer: C
upvoted 2 times
...
azuredemo2022three
1 year, 8 months ago
Selected Answer: C
upvoted 1 times
...
imando
1 year, 8 months ago
Selected Answer: A
Its A as an anwser
upvoted 3 times
...
arnabdt
1 year, 10 months ago
Selected Answer: C
C. The account will be configured for multi-region writes. The Update-AzCosmosDBAccountFailoverPriority command with the -FailoverPolicy parameter updates the failover policy for the Cosmos DB account by specifying the order in which the regions are selected for failover. In this case, the command updates the failover policy for account1 to include both West US and East US regions, in that order. This means that if the primary (read-write) region in West US becomes unavailable, Cosmos DB will automatically failover to the secondary (read-only) region in East US. The command does not affect the availability of the account or the provisioned throughput. It only updates the failover policy to allow for multi-region writes in case of a failover. Option C is correct because the command enables multi-region writes in the failover policy. Options A and B are incorrect because the command does not affect the account's availability or provisioned throughput. Option D is incorrect because the command does not trigger a manual failover.
upvoted 3 times
...
Ranzzzan
1 year, 11 months ago
IMO its A , The Azure Cosmos DB account must be configured for manual failover for manual failover to succeed
upvoted 2 times
virgilpza
1 year, 11 months ago
according to https://learn.microsoft.com/en-us/azure/cosmos-db/scripts/powershell/common/failover-priority-update, thats what i believe to. "Any change to a region with failoverPriority=0 triggers a manual failover and can only be done to an account configured for manual failover. Changes to all other regions simply changes the failover priority for an Azure Cosmos DB account."
upvoted 1 times
...
...
Internal_Koala
2 years, 4 months ago
As per exact example on the source: https://learn.microsoft.com/en-us/azure/cosmos-db/sql/manage-with-powershell#trigger-manual-failover From this website and according to A: "If you perform a manual failover operation while an asynchronous throughput scaling operation is in progress, the throughput scale-up operation will be paused. It will resume automatically when the failover operation is complete." 1. Has to be an asynchronous throughput scaling operation 2. It will continue after failover completes.
upvoted 1 times
...
ExamsBertia
2 years, 5 months ago
They said: "a single read-write region in West US and a read region in East US" If you flip the FailoverPolicy to "East US" you can't write because it's a read region. So i think A is a correct answer.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago