Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
1 months ago
Wait, did Valene just suggest removing a parameter? What is this, a comedy show?
upvoted 0 times
...
Valene
2 months ago
You guys are overthinking this. Just remove the Guid.Parse(operationId) parameter and you're good to go! Easy peasy.
upvoted 0 times
Denny
10 days ago
Let's give it a try and see if it works.
upvoted 0 times
...
Deandrea
11 days ago
Agreed, that should solve the issue.
upvoted 0 times
...
Katie
19 days ago
I think we should remove the Guid.Parse(operationId) parameter.
upvoted 0 times
...
...
Galen
2 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
1 months ago
I agree with you. It's better to be safe than sorry. Let's go with B and C.
upvoted 0 times
...
Paris
1 months ago
I think B and C are good choices. Verifying both results and txtHeaders status sounds like a solid plan.
upvoted 0 times
...
...
Maurine
2 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
Quentin
4 days ago
Yes, B and D together should prevent the method from proceeding too early.
upvoted 0 times
...
Bambi
15 days ago
That makes sense, verifying the status and adding a delay should solve the issue.
upvoted 0 times
...
Renea
20 days ago
Agreed, and D will help by adding a delay before proceeding.
upvoted 0 times
...
Nikita
1 months 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
1 months 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
2 months 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