AI-900 · Question #263
Which two tools can you use to call the Azure OpenAI service? Each correct answer presents a complete solution. NOTE: Each correct answer is worth one point.
The correct answer is A. Azure Command-Line Interface (CLI) B. Azure REST API. Azure OpenAI service can be called directly using its REST API for programmatic interaction and managed via the Azure Command-Line Interface.
Question
Options
- AAzure Command-Line Interface (CLI)
- BAzure REST API
- CAzure SDK for Python
- DAzure SDK for JavaScript
How the community answered
(44 responses)- A93% (41)
- C5% (2)
- D2% (1)
Why each option
Azure OpenAI service can be called directly using its REST API for programmatic interaction and managed via the Azure Command-Line Interface.
The Azure Command-Line Interface (CLI) can be used to interact with Azure OpenAI deployments, including invoking models for tasks like completions or embeddings through specific commands within the az cognitiveservices openai command group.
The Azure OpenAI service exposes a REST API, which is the foundational interface for all programmatic interactions, allowing direct HTTP requests to send prompts and receive model responses.
While the Azure SDK for Python is a common and effective way to interact with Azure OpenAI programmatically, the question specifies CLI and REST API as the two correct tools, implying SDKs are not the intended "tools" in this specific context or framing.
Similar to the Python SDK, the Azure SDK for JavaScript provides client libraries to interact with Azure OpenAI, but the designated correct answers focus on command-line and direct API access rather than language-specific libraries.
Concept tested: Methods for programmatic interaction with Azure OpenAI
Source: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference
Topics
Community Discussion
No community discussion yet for this question.