AI-102 exam dumps

AI-102 practice question 448 of 493

Designing and Implementing a Microsoft Azure AI Solution. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AI-102 Question 448

Select 3

You are tasked with building a chatbot using Azure OpenAI Service that can generate natural language responses based on user input. To ensure the chatbot generates appropriate and high-quality responses, which steps should you take when submitting prompts to the model?

  1. A

    Provide clear and concise instructions within the prompt.

  2. B

    Include examples in the prompt to guide the model's behavior.

  3. C

    Set the temperature parameter to 0 for more creative responses.

  4. D

    Use Azure Content Safety to filter inappropriate responses from the model.

  5. E

    Limit the token count in the prompt to improve response quality.

Show answer and explanation

Correct answers: A, B, D

Explanation

When submitting prompts to Azure OpenAI models, providing clear instructions and examples can guide the model to generate accurate and relevant responses. Additionally, integrating Azure Content Safety ensures responses adhere to safety and compliance requirements. These practices collectively enhance the chatbot's performance and reliability.

  • A. Correct.

    Providing clear and concise instructions helps the model understand the specific task, reducing ambiguity in responses.

  • B. Correct.

    Including examples in the prompt can guide the model to generate responses that align with the desired behavior or style.

  • C. Incorrect.

    Setting the temperature to 0 reduces randomness, making responses deterministic and less creative. For creative responses, a higher temperature (e.g., 0.7) is more suitable.

  • D. Correct.

    Azure Content Safety can be used to filter inappropriate or harmful responses, ensuring the chatbot remains safe and compliant.

  • E. Incorrect.

    While limiting token count can help control costs and prevent overly verbose responses, it does not directly improve the quality of the generated output.

Timed practice exam

Take a AI-102 practice test under exam conditions

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

Start timed exam