exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 1 question 8 discussion

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

HOTSPOT -
You plan to deploy a containerized version of an Azure Cognitive Services service that will be used for text analysis.
You configure https://contoso.cognitiveservices.azure.com as the endpoint URI for the service, and you pull the latest version of the Text Analytics
Sentiment Analysis container.
You need to run the container on an Azure virtual machine by using Docker.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment
To run the Sentiment Analysis v3 container, execute the following docker run command. docker run --rm -it -p 5000:5000 --memory 8g --cpus 1 \ mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment \
Eula=accept \
Billing={ENDPOINT_URI} \
ApiKey={API_KEY} is the endpoint for accessing the Text Analytics API. https://<your-custom-subdomain>.cognitiveservices.azure.com
Box 2: https://contoso.cognitiveservices.azure.com
{ENDPOINT_URI} is the endpoint for accessing the Text Analytics API: https://<your-custom-subdomain>.cognitiveservices.a The endpoint for accessing the Text

Analytics API. zure.com -
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-install-containers?tabs=sentiment

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
kolakone
Highly Voted 3 years, 5 months ago
Seems correct. For first answer, you "pull the latest version of the Text Analytics Sentiment Analysis container", hence the "sentiment" in the endpoint. For billing, other options are other services, hence the provided answer.
upvoted 34 times
...
zellck
Highly Voted 1 year, 5 months ago
1. mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment 2. https://contoso.cognitiveservices.azure.com https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/sentiment-opinion-mining/how-to/use-containers#run-the-container-with-docker-run docker run --rm -it -p 5000:5000 --memory 8g --cpus 1 \ mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment:{IMAGE_TAG} \ Eula=accept \ Billing={ENDPOINT_URI} \ ApiKey={API_KEY} - {ENDPOINT_URI} The endpoint for accessing the API. You can find it on your resource's Key and endpoint page, on the Azure portal. https://<your-custom-subdomain>.cognitiveservices.azure.com
upvoted 14 times
rdemontis
1 year ago
agree with you, thanks for references
upvoted 2 times
...
...
james2033
Most Recent 1 year, 3 months ago
docker run --rm -it -p 5000:5000 --memory 8g --cpus 1 \ mcr.microsoft.com/azure-cognitive-services/textanalytics/sentiment \ Eula=accept \ Billing=http://contoso.cognitiveservices.azure.com \ ApiKey=xxxxxxxxxxxxxxxxx See https://learn.microsoft.com/en-us/azure/ai-services/language-service/sentiment-opinion-mining/how-to/use-containers#run-the-container-with-docker-run
upvoted 4 times
...
AusAv
2 years, 4 months ago
Example here: https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/sentiment-opinion-mining/how-to/use-containers#run-the-container-with-docker-run
upvoted 1 times
...
Eltooth
2 years, 4 months ago
mcr/.../sentiment contoso.cognitiveservices
upvoted 1 times
...
sumanshu
2 years, 11 months ago
As per question, we have to do the sentiment analysis, So URL should be appended with /sentiment and in Billing we have to mention the provided URL , So given answer is correct
upvoted 2 times
...
motu
3 years, 6 months ago
https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/anomaly-detector-container-howto
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 ...