Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam AI-102 Topic 6 Question 70 Discussion

Actual exam question for Microsoft's AI-102 exam
Question #: 70
Topic #: 6
[All AI-102 Questions]

You are developing a method that uses the Computer Vision client library. The method will perform optical character recognition (OCR) in images. The method has the following code.

During testing, you discover that the call to the GetReadResultAsync method occurs before the read operation is complete.

You need to prevent the GetReadResultAsync method from proceeding until the read operation is complete.

Which two actions should you perform? Each correct answer presents part of the solution. (Choose two.)

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Galen
3 days ago
I'm not so sure about D. Isn't that a bit hacky? I'd go with B and C - verify the status of both the results and the txtHeaders to be safe.
upvoted 0 times
...
Maurine
12 days ago
I'm leaning towards B and D as well. Checking the status before proceeding and adding a delay loop seems like the logical solution here.
upvoted 0 times
...
Kathryn
15 days ago
Hmm, I think B and D are the way to go. Verifying the results.Status value and wrapping the GetReadResultAsync call in a loop with a delay should do the trick.
upvoted 0 times
...
Gilbert
15 days ago
I suggest adding code to verify the results.Status value as well. That way we can ensure everything is in order.
upvoted 0 times
...
Tony
17 days ago
I agree with Rosalyn. We need to make sure the read operation is complete before proceeding.
upvoted 0 times
...
Rosalyn
20 days ago
I think we should remove the Guid.Parse(operationId) parameter.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77