B will avoid excessive retries saving on utilization and bandwidth the only difference between scenario the db server is going to take 1 min to become available
Using method A it will try 12 times in that min while option B would try only 3 times
Don´t now why B and not A.
https://social.technet.microsoft.com/Forums/en-US/209e6f88-8ac9-4bff-a898-323ac2f1f6e5/a-transport-level-level-error-has-occurred-when-receiving-results-from-the-server-error-19-?forum=ssdsgetstarted
Another useful method to get rid of this error is to use RETRY LOGIC of Entity Framework 1.1.0
services.AddDbContext<DbContext>(options => options.UseSqlServer('yourconnectionstring',
sqlServerOptionsAction: sqlOptions =>
{
sqlOptions.EnableRetryOnFailure(
maxRetryCount: 5,
maxRetryDelay: TimeSpan.FromSeconds(30),
errorNumbersToAdd: new List<int>() { 19 });
}));
This is way to elevate I think
Given answer is CORRECT. Use - ExponentialBackoff class
We recommend that you wait for 5 seconds before your first retry. Retrying after a delay shorter than 5 seconds risks overwhelming the cloud service. For each subsequent retry, the delay should grow exponentially, up to a maximum of 60 seconds.
This section is not available anymore. Please use the main Exam Page.AZ-300 Exam Questions
Log in to ExamTopics
Sign in:
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.
Ashish2021
5 years agoIrivera
5 years, 2 months agoGjferweb
5 years, 3 months agoFamous_Guy
5 years, 3 months agotartar
4 years, 10 months ago