AWS Certified AI Practitioner · Free Practice Question Easy

Question 54

Which of the followings are best practices for creating effective prompts? (Select Two)

  • A

    Always use a high temperature

  • B

    Be clear and concise

  • C

    Don't provide details so that the foundational modal is not limited

  • D

    Always use negative prompting

  • E

    Include relevant context

Reveal correct answers

Correct answers: B, E

Explanation

Best Practices for Effective Prompting

  1. Be Clear and Concise

    • Explanation: When crafting a prompt, clarity and brevity are crucial. A clear and concise prompt helps the model understand exactly what is being asked without unnecessary complexity or ambiguity.

    • Benefit: Concise prompts avoid confusion, reduce the chance of misinterpretation, and lead to more accurate and focused responses. By minimizing extra words, you make it easier for the model to stay on topic, which is especially important when dealing with complex topics or detailed instructions.

    • Example: Instead of saying, "Please provide me with some information regarding the topic of sustainable energy and how it affects environmental policy," a more concise version could be, "Summarize how sustainable energy impacts environmental policy."

  2. Include Relevant Context

    • Explanation: Providing the model with relevant context is essential for guiding its response. Context can be any information that helps clarify what you’re asking, such as specific details about the topic, intended audience, or style.

    • Benefit: Including relevant context helps the model better understand the scope of the response you’re looking for and generates content that aligns closely with your needs. This is particularly helpful for nuanced topics or when the model might otherwise make assumptions that lead to irrelevant or overly general responses.

    • Example: Instead of simply asking, "Explain renewable energy," a more contextual prompt would be, "Explain the benefits of renewable energy for reducing greenhouse gas emissions in urban areas."

Why Other Options Are Less Suitable

  1. Always Use Negative Prompting

    • Explanation: Negative prompting refers to explicitly telling the model what not to do or what to avoid in its response. While this can be useful in specific scenarios, it is not generally a best practice for effective prompt creation.

    • Limitation: Constantly focusing on negative instructions can complicate prompts and lead to unintended results, as the model might focus on avoiding certain details rather than providing the most relevant information. Negative prompting should be used sparingly and only when necessary, rather than as a default approach.

  2. Always Use a High Temperature

    • Explanation: The “temperature” parameter controls the randomness of the model’s output. Higher temperatures (closer to 1) result in more varied and creative responses, while lower temperatures (closer to 0) lead to more deterministic and focused responses.

    • Limitation: Setting a high temperature consistently is not a best practice, as it depends on the context. High temperatures are suitable for creative tasks, but for fact-based or precise responses, a lower temperature is often better. Therefore, temperature should be adjusted based on the desired response style, not used consistently at a high setting.

  3. Don’t Provide Details to Avoid Limiting the Model

    • Explanation: Avoiding details in prompts might seem like it gives the model more flexibility, but in reality, it can lead to vague or irrelevant responses.

    • Limitation: Lacking specific details often leaves the model guessing, which can result in off-topic answers or generic information that doesn’t address the prompt effectively. Providing details helps guide the model and results in responses that are more aligned with the intended purpose of the prompt.

References:

A.

Always using a high temperature in prompts is not a best practice for creating effective prompts. Temperature is not relevant to prompt design and can confuse users if it is not related to the task or context of the prompt.

B.

Being clear and concise in prompts is essential to ensure that users understand the instructions or questions without confusion. Clear and concise prompts help users navigate through the system easily and provide the necessary information to complete tasks effectively.

C.

Providing details in prompts is crucial for users to understand the task or question fully. Omitting details can lead to confusion and misunderstanding, limiting the effectiveness of the prompt. It is important to provide enough information in prompts to guide users accurately.

D.

Negative prompting, where the user is presented with incorrect choices or negative statements, can lead to confusion and frustration. It is not a best practice for creating effective prompts as it can hinder the user experience and make it harder for users to make the right decisions.

E.

Including relevant context in prompts helps users understand the purpose or reason behind the prompt. Providing context can guide users in making informed decisions and improve the overall user experience by ensuring that prompts are meaningful and relevant to the task at hand.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need