Valid AZ-203 Dumps shared by ExamDiscuss.com for Helping Passing AZ-203 Exam! ExamDiscuss.com now offer the newest AZ-203 exam dumps, the ExamDiscuss.com AZ-203 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AZ-203 dumps with Test Engine here:
HOTSPOT You need to configure retries in the LoadUserDetails function in the Database class without impacting user experience. What code should you insert on line DB07? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Correct Answer:
Explanation/Reference: Explanation: Box 1: Policy RetryPolicy retry = Policy .Handle<HttpRequestException>() .Retry(3); The above example will create a retry policy which will retry up to three times if an action fails with an exception handled by the Policy. Box 2: WaitAndRetryAsync(3,i => TimeSpan.FromMilliseconds(100* Math.Pow(2,i-1))); A common retry strategy is exponential backoff: this allows for retries to be made initially quickly, but then at progressively longer intervals, to avoid hitting a subsystem with repeated frequent calls if the subsystem may be struggling. Example: Policy .Handle<SomeExceptionType>() .WaitAndRetry(3, retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)) ); References: https://github.com/App-vNext/Polly/wiki/Retry Question Set 1