AI-102 Question 458
Select 3You are developing a web application that allows users to generate custom images based on text prompts using the DALL-E model in Azure OpenAI Service. To ensure the solution meets both functional and cost efficiency requirements, which steps should you include when designing the integration with the DALL-E model?
- A
Use the Azure OpenAI API to send text prompts directly to the DALL-E model endpoint.
- B
Implement caching to store generated images and reduce repeated requests for the same text prompt.
- C
Configure the DALL-E model to accept prompts in multiple languages without any preprocessing.
- D
Restrict request inputs to validated text prompts to avoid inappropriate or unsupported content.
- E
Deploy the DALL-E model on a dedicated virtual machine for better control over the model's performance.
Show answer and explanation
Correct answers: A, B, D
Explanation
To effectively integrate the DALL-E model with an application, it's crucial to use the Azure OpenAI API for communication, implement caching for efficiency, and validate inputs for responsible usage. These steps ensure the application meets functional requirements while maintaining cost efficiency and compliance with Azure's AI guidelines. Deploying the model on a dedicated virtual machine is not possible as the model is only accessible as a managed service, and multilingual support requires preprocessing.
- A. Correct.
Correct. Using the Azure OpenAI API is the standard way to interact with the DALL-E model, allowing text prompts to be sent and receiving generated images.
- B. Correct.
Correct. Caching previously generated images can help reduce costs and latency by avoiding redundant calls to the DALL-E model for the same prompts.
- C. Incorrect.
Incorrect. The DALL-E model does not natively support prompts in multiple languages. Preprocessing or translation is required for non-English inputs.
- D. Correct.
Correct. Validating text prompts ensures that inappropriate or unsupported content is filtered before sending requests to the DALL-E model, aligning with responsible AI practices.
- E. Incorrect.
Incorrect. The DALL-E model is provided as a service through the Azure OpenAI platform and cannot be deployed on a dedicated virtual machine.