exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 11 question 3 discussion

Actual exam question from Microsoft's DP-300
Question #: 3
Topic #: 11
[All DP-300 Questions]

What should you do after a failover of SalesSQLDb1 to ensure that the database remains accessible to SalesSQLDb1App1?

  • A. Configure SalesSQLDb1 as writable.
  • B. Update the connection strings of SalesSQLDb1App1.
  • C. Update the firewall rules of SalesSQLDb1.
  • D. Update the users in SalesSQLDb1.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Raffer
Highly Voted 4 years, 1 month ago
I say update connection strings. It is a sort of given (as it's recommended by Microsoft) that firewall rules be the same for master & secondary. https://docs.microsoft.com/en-us/azure/azure-sql/database/active-geo-replication-overview#keeping-credentials-and-firewall-rules-in-sync
upvoted 27 times
...
Jas_dandiwal
Highly Voted 4 years, 1 month ago
application connection also need to update as Geo replication is being used, not automatic failover groups where you can have a listener
upvoted 6 times
...
bingomutant
Most Recent 7 months ago
B. Update the connection strings of SalesSQLDb1App1. Here’s why: Geo-replicated Azure SQL Database setups typically require that the connection string be updated to point to the new primary database after a failover. Since SalesSQLDb1 is in a geo-replicated environment, the failover can cause the database role to switch, and the application’s connection string must point to the correct replica (the new primary). Updating the connection string ensures that the application (SalesSQLDb1App1) connects to the appropriate primary replica of SalesSQLDb1.
upvoted 1 times
...
Itsalwaymethecap
2 years, 10 months ago
Selected Answer: B
B is the correct answer. As per the case study scenario the database already has database -level firewall rules and the database is in geo-replication. No need to make changes in the firewall rules as they get replicated to the secondary replica.
upvoted 2 times
...
eric0718
3 years ago
Selected Answer: B
https://azure.microsoft.com/en-us/blog/azure-sql-database-now-supports-transparent-geographic-failover-of-multiple-databases-featuring-automatic-activation/
upvoted 2 times
...
eric0718
3 years ago
Selected Answer: C
https://azure.microsoft.com/en-us/blog/azure-sql-database-now-supports-transparent-geographic-failover-of-multiple-databases-featuring-automatic-activation/
upvoted 1 times
eric0718
3 years ago
Sorry. B is correct!!!!!!!!!!!
upvoted 1 times
...
...
eric0718
3 years ago
B is the correct answer Geo-replicated db have to change the connection string for your application after a geo-failover.
upvoted 3 times
...
reachmymind
3 years, 1 month ago
The given answer is correct: C. Update the firewall rules of SalesSQLDb1. there will be two listeners in the failover group that do not change: Read/write listener endpoint: <sqlfailovergroup>.database.windows.net Read-only listener endpoint: <sqlfailovergroup>.secondary.database.windows.net https://docs.microsoft.com/en-us/azure/azure-sql/database/auto-failover-group-sql-db?tabs=azure-powershell Endpoint redirection Auto-failover groups provide read-write and read-only listener end-points that remain unchanged during geo-failovers. This means you do not have to change the connection string for your application after a geo-failover, because connections are automatically routed to the current primary. Whether you use manual or automatic failover activation, a geo-failover switches all secondary databases in the group to the primary role. After the geo-failover is completed, the DNS record is automatically updated to redirect the endpoints to the new region.
upvoted 1 times
reachmymind
3 years, 1 month ago
I was wrong, I back-track from my above message, B is the correct answer as it is a geo-replicated db and not a db in an automatic failover group.
upvoted 2 times
...
...
Chunchi
3 years, 2 months ago
Selected Answer: B
Update connection string in apps server
upvoted 2 times
...
Smartiup
3 years, 3 months ago
Selected Answer: B
Update connection string
upvoted 2 times
...
xegiwo9758
3 years, 4 months ago
Selected Answer: B
Update connection string is more reasonable
upvoted 1 times
...
ramelas
3 years, 5 months ago
this question is not well formed because you dont know if they are talking about the failover after or before the migration since geo replication has failover and auto failover groups too
upvoted 1 times
...
Ziggybooboo
4 years, 1 month ago
I think you are right, wouln't the firewall rules be there already, I would say update connection string is the correct answer
upvoted 5 times
jerkyflexoff
3 years, 5 months ago
I disagree Geo Replication does not require connection string changes.
upvoted 1 times
jerkyflexoff
3 years, 5 months ago
Sorry I am wrong on this :(
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