AI-900 Question 278
Select 2You are a developer tasked with building an application that generates boilerplate code for a web application based on user input. You decide to use the Azure OpenAI Service to achieve this. Which of the following describes the capabilities of Azure OpenAI Service for code generation in this scenario?
- A
It allows you to use pre-trained models like Codex to generate code snippets based on natural language prompts.
- B
It provides the ability to debug and test the generated code automatically within the Azure portal.
- C
It enables you to customize the AI model's training data to generate domain-specific code.
- D
It can translate code from one programming language to another using advanced language models.
- E
It provides pre-built APIs for deploying the generated code directly to Azure App Service.
Show answer and explanation
Correct answers: A, D
Explanation
Azure OpenAI Service includes models like Codex that can generate code based on natural language input and perform tasks such as language-to-language code translation. However, it does not provide built-in capabilities for debugging, direct deployment, or automatic training customization for code generation tasks.
- A. Correct.
This is correct. Azure OpenAI Service includes pre-trained models like Codex, which can generate code snippets from natural language prompts.
- B. Incorrect.
This is incorrect. Azure OpenAI Service does not provide debugging or testing capabilities for generated code; these tasks need to be performed using separate tools or environments.
- C. Incorrect.
This is incorrect. While Azure OpenAI Service enables fine-tuning models, customizing training for code generation is not typically required as Codex is already pre-trained for such tasks.
- D. Correct.
This is correct. Codex, part of Azure OpenAI Service, supports translating code from one programming language to another.
- E. Incorrect.
This is incorrect. Azure OpenAI Service provides AI capabilities but does not include features for directly deploying code to Azure App Service.