Azure Text Analytics API - Synchronous and Asynchronous Calls

Synchronous and Asynchronous API Calls - Exam AI-102: Microsoft Azure AI Solution

Question

You provisioned a text analytics API in Azure.

You use the standard pricing tier to analyze your documents.

Review the statements given below regarding synchronous and asynchronous API calls and choose the statements that are not true.

(select two answer choices)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answers: A and C.

Option A is correct because the statement is not true.

For low latency scenarios, it is recommended to use synchronous Text Analytics API calls.

Option B is incorrect because the statement is true.

To use multiple features, you would need to make separate synchronous API calls for each operation.

Instead you can use asynchronous API calls to use multiple features in a single API call.

Option C is correct because the statement is not true.

You would need to use an asynchronous API call instead.

Option D is incorrect because the statement is true.

Features like sentiment analysis and opinion mining can be called using synchronous and asynchronous API calls.

Option E is incorrect because the statement is true.

Language detection feature can only be called with a synchronous API call.

Reference:

To learn more about synchronous and asynchronous Text Analytics API calls, use the link given below:

The Text Analytics API in Azure allows users to extract valuable insights from textual data by providing features such as sentiment analysis, key phrase extraction, and language detection. The API can be called synchronously or asynchronously, depending on the use case.

A. Call Text Analytics API asynchronously for low latency scenarios - TRUE Asynchronous API calls are useful for scenarios where low latency is required, as they allow the application to continue processing while waiting for the API to return a response. This statement is true.

B. Make separate synchronous API calls for each operation to use multiple features - NOT TRUE This statement is not true. The Text Analytics API allows multiple features to be requested in a single API call, reducing the number of API calls needed and improving performance.

C. Analyze a large set of documents with multiple features in one synchronous API call - TRUE Multiple features and a large set of documents can be analyzed in a single synchronous API call. This statement is true.

D. Sentiment analysis can be done using a synchronous and an asynchronous API call - TRUE Sentiment analysis can be performed using both synchronous and asynchronous API calls. However, asynchronous API calls may be preferred in scenarios where low latency is required. This statement is true.

E. Use Text Analytics synchronous API call to use Language Detection feature - NOT TRUE This statement is not true. The language detection feature can be used in both synchronous and asynchronous API calls.