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:

Alverta
25 days ago
Wait, did Valene just suggest removing a parameter? What is this, a comedy show?
upvoted 0 times
...
Valene
29 days ago
You guys are overthinking this. Just remove the Guid.Parse(operationId) parameter and you're good to go! Easy peasy.
upvoted 0 times
Katie
1 days ago
I think we should remove the Guid.Parse(operationId) parameter.
upvoted 0 times
...
...
Galen
1 months 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
Catrice
26 days ago
I agree with you. It's better to be safe than sorry. Let's go with B and C.
upvoted 0 times
...
Paris
27 days ago
I think B and C are good choices. Verifying both results and txtHeaders status sounds like a solid plan.
upvoted 0 times
...
...
Maurine
1 months 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
Renea
2 days ago
Agreed, and D will help by adding a delay before proceeding.
upvoted 0 times
...
Nikita
22 days ago
I think B is necessary to verify the results status.
upvoted 0 times
...
...
Kathryn
2 months 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
Asuncion
16 days ago
Yes, that sounds like the right approach. Verifying the status and adding a delay will ensure the read operation is complete before proceeding.
upvoted 0 times
...
Lawana
29 days ago
I agree, verifying the results.Status value and adding a delay in a loop should solve the issue.
upvoted 0 times
...
...
Gilbert
2 months 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
2 months ago
I agree with Rosalyn. We need to make sure the read operation is complete before proceeding.
upvoted 0 times
...
Rosalyn
2 months ago
I think we should remove the Guid.Parse(operationId) parameter.
upvoted 0 times
...

Save Cancel