🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 12 hours remaining!

AWS Certified AI Practitioner AIF-C01 Practice Question

A developer is testing a text-generation foundation model on Amazon Bedrock. They need to make sure the response never contains code snippets or URLs. Which prompt engineering technique should they add to the prompt to best meet this requirement?

  • Raise the temperature parameter to make the output more varied.

  • Increase the maximum output token limit so the model has room to elaborate.

  • Include a negative instruction like "Do not include code or URLs" in the prompt.

  • Define a stop sequence consisting only of punctuation characters.

AWS Certified AI Practitioner AIF-C01
Applications of Foundation Models
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot