exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 2 question 39 discussion

Actual exam question from Microsoft's AI-102
Question #: 39
Topic #: 2
[All AI-102 Questions]

You are developing a method that uses the Azure AI 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 get_read_result method occurs before the read operation is complete.

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

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

NOTE: Each correct selection is worth one point.

  • A. Remove the operation_id parameter.
  • B. Add code to verify the read_results.status value.
  • C. Add code to verify the status of the read_operation_location value.
  • D. Wrap the call to get_read_result within a loop that contains a delay.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
mrg998
3 months ago
B & D for sure
upvoted 1 times
...
anto69
4 months ago
Selected Answer: BD
B - D, repeated many times with both python an C#
upvoted 4 times
...
moonlightc
4 months, 1 week ago
Selected Answer: BD
B and D
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago