AZ-204 · Question #178
You are developing a .Net Core application that manages images for an advertising company. The images are stored in blob storage with read access geo-zone-redundant storage (RA-GZRS) redundancy to…
The correct answer is C. blobClient.DefaultRequestOptions.LocationMode = LocationMode.PrimaryThenSecondary. You should configure the blob client default request option for the location mode as PrimaryThenSecondary. In this mode, in case of a regional outage affecting primary storage, the application reads the images replicated to another region as a fallback until primary storage is…
Question
Options
- AblobClient.DefaultRequestOptions.LocationMode = LocationMode.SecondaryOnly;
- BblobClient.DefaultRequestOptions.LocationMode = LocationMode.SecondaryThenPrimary;
- CblobClient.DefaultRequestOptions.LocationMode = LocationMode.PrimaryThenSecondary;
- DblobClient.DefaultRequestOptions.LocationMode = LocationMode.PrimaryOnly;
How the community answered
(31 responses)- A3% (1)
- B10% (3)
- C81% (25)
- D6% (2)
Explanation
You should configure the blob client default request option for the location mode as PrimaryThenSecondary. In this mode, in case of a regional outage affecting primary storage, the application reads the images replicated to another region as a fallback until primary storage is available again. You should not configure the blob client default request option for the location mode as PrimaryOnly. In this mode, only primary storage is used. In case of a regional outage affecting primary storage, the application will fail to read images even if they are replicated to secondary storage. This is the default blob client mode. You should not configure the blob client default request option for the location mode as SecondaryOnly or SecondaryThenPrimary. With these modes, the blob client will first read the images from secondary storage. Secondary storage should only be used if primary storage is
Topics
Community Discussion
No community discussion yet for this question.