AI-900 exam dumps

AI-900 practice question 277 of 286

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

AI-900 Question 277

Select 3

A software development team wants to use Azure OpenAI Service to assist with generating code snippets for their application. Which of the following actions can they achieve using the code generation capabilities of Azure OpenAI Service?

  1. A

    Generate boilerplate code for common programming patterns.

  2. B

    Automatically deploy the generated code to Azure App Service.

  3. C

    Refactor existing code to improve readability and maintainability.

  4. D

    Generate documentation for the generated code.

  5. E

    Translate code from one programming language to another.

Show answer and explanation

Correct answers: A, C, E

Explanation

Azure OpenAI Service provides robust capabilities for generating and improving code, such as creating boilerplate code, refactoring existing code, and translating code between programming languages. However, it does not handle tasks like automated deployment or comprehensive documentation generation, which are outside its primary scope.

  • A. Correct.

    Azure OpenAI Service can generate boilerplate code for common programming patterns by leveraging its natural language-to-code capabilities.

  • B. Incorrect.

    While Azure OpenAI Service can assist with code generation, it does not directly handle deployment tasks such as deploying code to Azure App Service. Deployment requires separate tools or processes.

  • C. Correct.

    The service can help refactor code to improve readability and maintainability by providing suggestions or rewriting code based on prompts.

  • D. Incorrect.

    Azure OpenAI Service is not specifically designed to generate documentation for code. However, developers can prompt it to describe code functionality, but this is not guaranteed to be comprehensive.

  • E. Correct.

    Azure OpenAI Service supports translating code from one programming language to another by understanding the structure of the input code and converting it into the desired language.

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