exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 3 question 11 discussion

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

HOTSPOT -
You run the following command.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Yes -
http://localhost:5000/status : Also requested with GET, this verifies if the api-key used to start the container is valid without causing an endpoint query.

Box 2: Yes -
The command saves container and LUIS logs to output mount at C:\output, located on container host

Box 3: Yes -
http://localhost:5000/swagger : The container provides a full set of documentation for the endpoints and a Try it out feature. With this feature, you can enter your settings into a web-based HTML form and make the query without having to write any code. After the query returns, an example CURL command is provided to demonstrate the HTTP headers and body format that's required.
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-container-howto

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
Internal_Koala
Highly Voted 2 years, 4 months ago
Yes No Yes Log location is not mounted. The ET answer relates to an example provided on the given website which DOES mount a log location.
upvoted 33 times
Alan_CA
3 weeks, 6 days ago
Correct Logging is not enabled. See : https://learn.microsoft.com/en-us/azure/ai-services/language-service/text-analytics-for-health/how-to/configure-containers#logging-settings
upvoted 1 times
...
...
zellck
Highly Voted 1 year, 6 months ago
YNY is the answer. https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/text-analytics-for-health/how-to/use-containers?tabs=language#validate-that-a-container-is-running - http://localhost:5000/status Also requested with GET, this URL verifies if the api-key used to start the container is valid without causing an endpoint query. This request can be used for Kubernetes liveness and readiness probes. - http://localhost:5000/swagger The container provides a full set of documentation for the endpoints and a Try it out feature. With this feature, you can enter your settings into a web-based HTML form and make the query without having to write any code. After the query returns, an example CURL command is provided to demonstrate the HTTP headers and body format that's required.
upvoted 11 times
friendlyvlad
1 month, 1 week ago
I do not see the right results yet. 1. No: Should be No because per documentation http://localhost:5000/status validates API Key without causing an endpoint query, but the question says "will query the Azure endpoint " 2. Yes: There is a difference between writing and saving the logs. In the former case, the logs will not persist and will live as long as the container runs. Since the question asks about writing the answer is Yes. 3. Yes: Many folks here explained this question well.
upvoted 2 times
...
...
krzkrzkra
Most Recent 5 months, 4 weeks ago
YNY is the answer.
upvoted 2 times
...
nanaw770
7 months, 2 weeks ago
Yes No Yes
upvoted 1 times
...
funny_penguin
7 months, 2 weeks ago
on exam, YNY
upvoted 2 times
...
varinder82
9 months, 2 weeks ago
Fintal Answer: Yes No Yes
upvoted 2 times
...
evangelist
11 months, 2 weeks ago
Going to http://localhost:5000/status will query the Azure endpoint to verify whether the API key used to start the container is valid. Yes. Typically, Azure Cognitive Services containers provide a /status endpoint that can be used to check the status of the service, including the validity of the API key. Since the service is mapped to localhost:5000, accessing this URL should provide the status of the containerized service, including the API key's validity. The container logging provider will write log data. No (Assuming). This statement is somewhat ambiguous and depends on the configuration of the Docker container and the Azure Cognitive Services container. Going to http://localhost:5000/swagger will provide the details to access the documentation for the available endpoints. Yes. It is a common practice for web services and APIs, including those provided by Azure Cognitive Services, to offer a Swagger UI at a /swagger endpoint.
upvoted 4 times
...
Gvalli
1 year ago
A modified version of this was in the exam today.
upvoted 5 times
...
rdemontis
1 year, 2 months ago
No --> Also requested with GET, this URL verifies if the api-key used to start the container is valid without causing an endpoint query. https://learn.microsoft.com/en-us/azure/ai-services/language-service/text-analytics-for-health/how-to/use-containers?tabs=language#validate-that-a-container-is-running No -- there isn't any Log location mounted (same link as above) Yes --> correct, swagger show a full set of documentation for the endpoints Yes.
upvoted 4 times
rdemontis
1 year, 1 month ago
sorry the last yes is a typo
upvoted 2 times
...
...
M25
1 year, 4 months ago
No ("without causing an endpoint query"), No, Yes
upvoted 4 times
chrillelundmark
1 month ago
Can't see the logger setting being specified in the command, which is mandatory according to this: https://learn.microsoft.com/es-es/azure/ai-services/language-service/concepts/configure-containers#logging-settings
upvoted 1 times
...
[Removed]
1 year, 3 months ago
Agree with you: - http://localhost:5000/status "Also requested with GET, this URL verifies if the api-key used to start the container is valid WITHOUT CAUSING AN ENDPOINT QUERY." (According to documentation)
upvoted 3 times
...
...
mmaguero
1 year, 7 months ago
1 and 3, is true: https://learn.microsoft.com/es-es/azure/cognitive-services/language-service/sentiment-opinion-mining/how-to/use-containers#validate-that-a-container-is-running 2, i think, is yes... (by docker settings)
upvoted 4 times
...
odisor
1 year, 8 months ago
I think the first one is YES https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/text-analytics-for-health/how-to/use-containers?tabs=language#validate-that-a-container-is-running
upvoted 1 times
...
MDawson
1 year, 9 months ago
Documentation says it will NOT cause an endpoint query, so I think the first one should be NO
upvoted 7 times
[Removed]
1 year, 3 months ago
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