nerdexam
Microsoft

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.

Submitted by renata2k· Mar 30, 2026

Question

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.

Options

  • AAzure Command-Line Interface (CLI)
  • BAzure REST API
  • CAzure SDK for Python
  • DAzure SDK for JavaScript

How the community answered

(44 responses)
  • A
    93% (41)
  • C
    5% (2)
  • D
    2% (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.

AAzure Command-Line Interface (CLI)Correct

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.

BAzure REST APICorrect

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.

CAzure SDK for Python

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.

DAzure SDK for JavaScript

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

#Azure OpenAI service#REST API#Azure CLI#Azure SDKs

Community Discussion

No community discussion yet for this question.

Full AI-900 Practice