exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 7 question 5 discussion

Actual exam question from Microsoft's AZ-300
Question #: 5
Topic #: 7
[All AZ-300 Questions]

You need to resolve the delivery API error.
What should you do?

  • A. Implement simple retry by using the EnableRetryOnFailure feature of Entity Framework.
  • B. Implement exponential backoff by using the EnableRetryOnFailure feature of Entity Framework.
  • C. Implement a Circuit Breaker pattern by using the EnableRetryOnFailure feature of Entity Framework.
  • D. Invoke a custom execution strategy in Entity Framework.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
References:
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-develop-error-messages

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
Ashish2021
5 years ago
Answer is B. https://docs.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-connectivity-issues
upvoted 2 times
...
Irivera
5 years, 2 months ago
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
upvoted 3 times
...
Gjferweb
5 years, 3 months ago
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
upvoted 3 times
Famous_Guy
5 years, 3 months ago
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.
upvoted 17 times
tartar
4 years, 10 months ago
B is ok
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 ...