exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 2 question 18 discussion

Actual exam question from Microsoft's AI-102
Question #: 18
Topic #: 2
[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.
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
RAN_L
Highly Voted 1 year, 2 months ago
Selected Answer: BD
B. Add code to verify the read_results.status value. D. Wrap the call to get_read_result within a loop that contains a delay. Explanation: In order to prevent the GetReadResultAsync method from proceeding until the read operation is complete, we need to check the status of the read operation and wait until it's completed. To do this, we can add code to verify the status of the read_results.status value. If the status is not "succeeded", we can add a delay and then retry the operation until it's complete. This can be achieved by wrapping the call to get_read_result within a loop that contains a delay. Removing the operation_id parameter or adding code to verify the status of the read_operation_location value will not solve the issue of waiting for the read operation to complete before proceeding with the GetReadResultAsync method.
upvoted 5 times
...
hatanaoki
Most Recent 2 weeks ago
Selected Answer: BD
B and D are right answer.
upvoted 1 times
...
takaimomoGcup
3 weeks ago
Selected Answer: BD
memorize "read_results" words. So B and D.
upvoted 2 times
...
takaimomoGcup
3 weeks ago
Selected Answer: BD
B and D.
upvoted 1 times
...
[Removed]
2 months ago
Selected Answer: BD
The code snippet does not match the question. There is NO GetReadResultAsync call.
upvoted 2 times
...
anto69
4 months, 2 weeks ago
where's GetReadResultAsync in the code? looks like C# method not python code
upvoted 3 times
...
rdemontis
7 months, 1 week ago
Selected Answer: BD
duplicated question
upvoted 3 times
...
zellck
11 months, 2 weeks ago
Same as Question 2. https://www.examtopics.com/discussions/microsoft/view/74739-exam-ai-102-topic-2-question-2-discussion
upvoted 2 times
...
Pixelmate
11 months, 2 weeks ago
This was on exam 28/06
upvoted 3 times
...
halfway
1 year, 7 months ago
Selected Answer: BD
Duplicated with Topic 2, Question 2.
upvoted 1 times
...
michasacuer
1 year, 9 months ago
Selected Answer: BD
Correct
upvoted 1 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