AIF-C01 exam dumps

AIF-C01 practice question 123 of 231

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

AIF-C01 Question 123

Select 3

You are designing a prompt for a language model to generate a detailed description of a product based on minimal input. The model's responses often include irrelevant details. Which combination of prompt engineering techniques should you use to improve the relevance of the model's output?

  1. A

    Provide explicit instructions about what the model should avoid including in its response.

  2. B

    Add more context by giving the model a detailed background about the product before asking the question.

  3. C

    Use a negative prompt to focus the model on generating responses with specific unwanted characteristics.

  4. D

    Avoid giving any instructions or context and rely on the model's pre-trained knowledge to generate the desired output.

  5. E

    Structure the prompt to include clear instructions and examples of the desired output format.

Show answer and explanation

Correct answers: A, B, E

Explanation

Prompt engineering involves techniques like providing explicit instructions, adding context, and structuring prompts with examples to guide the model's responses. These methods improve the relevance and quality of the output by reducing ambiguity and giving the model clear guidance. Negative prompts, while useful in certain scenarios, are not the best choice for addressing relevance issues in this context.

  • A. Correct.

    Providing explicit instructions about what the model should avoid can help steer the output and reduce irrelevant details. This is a core principle of prompt engineering.

  • B. Correct.

    Adding context ensures the model has the necessary background to generate relevant responses. Without sufficient context, the model may rely on generic knowledge or assumptions.

  • C. Incorrect.

    Negative prompts are generally used to discourage specific unwanted characteristics, but they are less effective when the issue is relevancy rather than specific undesired traits.

  • D. Incorrect.

    Avoiding instructions or context can lead to unpredictable or irrelevant outputs because the model lacks the necessary guidance to focus on the desired outcome.

  • E. Correct.

    Including clear instructions and examples helps the model understand the expectations and improves the quality and relevance of its output.

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