CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 42: AZ-203: Developing Solutions for Microsoft Azure

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. Hot Area:

Nội dung câu hỏi

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. Hot Area:

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Explanation Box 1: Policy RetryPolicy retry = Policy -.Handle ().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 ().WaitAndRetry(3, retryAttempt =>TimeSpan.FromSeconds(Math.Pow(2, retryAttempt))); References:https://github.com/App-vNext/Polly/wiki/Retry — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề