AIF-C01 exam dumps

AIF-C01 practice question 121 of 231

AWS Certified AI Practitioner. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

AIF-C01 Question 121

Select 3

You are building a chatbot using Amazon Bedrock and a foundation model to assist customers in troubleshooting common technical issues. During testing, you notice that the responses from the model are either too generic or irrelevant. What are the most effective prompt engineering techniques to improve the quality and relevance of the responses?

  1. A

    Provide clear instructions and context in the prompt.

  2. B

    Use short and generic prompts to encourage creative responses.

  3. C

    Incorporate examples of desired outputs in the prompt.

  4. D

    Use temperature and max tokens settings to control the model’s behavior.

  5. E

    Iteratively refine the prompt based on the model’s responses.

Show answer and explanation

Correct answers: A, C, E

Explanation

Effective prompt engineering focuses on providing clear instructions, incorporating examples, and iteratively refining prompts based on output quality. These techniques help guide the foundation model to produce relevant, accurate, and contextually appropriate responses. Adjusting model settings like temperature and max tokens, while useful, is not a core part of prompt engineering.

  • A. Correct.

    Providing clear instructions and context helps the model better understand the task and produce more relevant and specific responses. This is a fundamental prompt engineering technique.

  • B. Incorrect.

    Using short and generic prompts often leads to vague or irrelevant outputs. Specificity and clarity are key to effective prompt engineering.

  • C. Correct.

    Incorporating examples of desired outputs provides the model with guidance on what kind of responses are expected, improving the quality of its answers.

  • D. Incorrect.

    While adjusting settings like temperature and max tokens can influence the model’s behavior, these are not direct prompt engineering techniques. They are model configuration settings.

  • E. Correct.

    Iteratively refining the prompt based on the model’s responses allows you to identify and resolve issues, leading to better and more relevant outputs over time.

Timed practice exam

Take a AIF-C01 practice test under exam conditions

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

Start timed exam