exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 24 question 16 discussion

Actual exam question from Microsoft's AZ-203
Question #: 16
Topic #: 24
[All AZ-203 Questions]

DRAG DROP -
You need to ensure disaster recovery requirements are met.
What code should you add at line PC16?
To answer, drag the appropriate code fragments to the correct locations. Each code fragment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Scenario, Disaster recovery: Regional outage must not impact application availability. All DR operations must not be dependent on application running and must ensure that data in the DR region is up to date.

Box 1: DirectoryTransferContext -
We transfer all files in the directory.
Note: The TransferContext object comes in two forms: SingleTransferContext and DirectoryTransferContext. The former is for transferring a single file and the latter is for transferring a directory of files.
Box 2: ShouldTransferCallbackAsync
The DirectoryTransferContext.ShouldTransferCallbackAsync delegate callback is invoked to tell whether a transfer should be done.

Box 3: False -
If you want to use the retry policy in Copy, and want the copy can be resume if break in the middle, you can use SyncCopy (isServiceCopy = false).
Note that if you choose to use service side copy ('isServiceCopy' set to true), Azure (currently) doesn't provide SLA for that. Setting 'isServiceCopy' to false will download the source blob loca
References:
https://docs.microsoft.com/en-us/azure/storage/common/storage-use-data-movement-library https://docs.microsoft.com/en-us/dotnet/api/microsoft.windowsazure.storage.datamovement.directorytransfercontext.shouldtransfercallbackasync?view=azure- dotnet

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
Daltonic75
Highly Voted 5 years, 3 months ago
First: Single Second: Overwrite
upvoted 7 times
hmirko
5 years, 2 months ago
why single?
upvoted 1 times
chintan4190
5 years, 2 months ago
line PC16 is inside the for loop of files so it should be single.
upvoted 4 times
...
hmirko
5 years, 2 months ago
also, please check https://docs.microsoft.com/en-us/previous-versions/azure/reference/mt662281(v%3Dazure.100) in TransferManager.CopyAsync is used in question, not CopyDirectoryAsync
upvoted 2 times
...
khrystyna
5 years, 2 months ago
Because you move files one by one. Not whole directory at once.
upvoted 3 times
...
...
...
SilNilanjan
Highly Voted 4 years, 9 months ago
SingleTransferContext (single file in loop), ShouldOverwriteCallbackAsync (singletransfer does not have ShouldTransfer),true (IsServiceCopy: true)
upvoted 6 times
...
LTiwana
Most Recent 4 years, 10 months ago
3rd option should be true (IsServiceCopy: true) because otherwise, the processing.cs would have to wait for each and every blob to be downloaded/uploaded which will stall the whole application. This would go against whats asked in the question "All DR operations must not be dependent on application running...".
upvoted 3 times
...
nazzzu
4 years, 11 months ago
SingleTransferContext (single file in loop), ShouldOverwriteCallbackAsync (singletransfer does not have ShouldTransfer), false ( no SLA for async server-site copy, instead when false it will download and upload blob where both have SLAs).
upvoted 2 times
...
darijeb420
4 years, 12 months ago
Repeat: https://www.examtopics.com/exams/microsoft/az-203/view/30/
upvoted 1 times
...
ElProfesor
5 years, 9 months ago
First should be SingleTransferContext
upvoted 4 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 ...