AI-900 exam dumps

AI-900 practice question 276 of 286

Microsoft Azure AI Fundamentals. Free level, Microsoft. Free question with the correct answer and a full explanation.

AI-900 Question 276

Select 3

A software development team wants to generate boilerplate code for a Python application using Azure OpenAI Service. Which of the following steps are required to achieve this task?

  1. A

    Deploy a model like Codex from the Azure OpenAI Service in the Azure portal.

  2. B

    Write a custom script to train the Codex model on the programming language of choice.

  3. C

    Use the REST API or SDK to send prompts specifying the desired code structure.

  4. D

    Integrate the generated code directly into the application without any review.

  5. E

    Ensure proper authentication to access the Azure OpenAI Service endpoint.

Show answer and explanation

Correct answers: A, C, E

Explanation

Azure OpenAI Service provides models like Codex that can generate code based on user prompts. To achieve this, you must deploy the model in the Azure portal, authenticate your access to the service, and interact with the model using the REST API or SDK. Training the model is unnecessary since it is pre-trained, and reviewing the generated code is essential to ensure it meets quality and security standards.

  • A. Correct.

    Deploying a model like Codex, specifically designed for code generation, is a required first step to utilize Azure OpenAI Service for such tasks.

  • B. Incorrect.

    It is not necessary to train the Codex model as it is pre-trained on large programming datasets and ready to use for code generation.

  • C. Correct.

    Using the REST API or SDK to send prompts and interact with the Codex model is a key step in generating code tailored to specific requirements.

  • D. Incorrect.

    Integrating the generated code without reviewing it is not recommended due to potential inaccuracies or vulnerabilities in the output.

  • E. Correct.

    Proper authentication is required to securely access the Azure OpenAI Service and utilize its capabilities.

Timed practice exam

Take a AI-900 practice test under exam conditions

60 questions in 30 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam