Home / AIF-C01 / Objective 3.2

Domain 3: Applications of Foundation Models · 28% of the exam · Full exam outline

3.2 Choose effective prompt engineering techniques

What this objective covers · 7% of the exam

Define the concepts and constructs of prompt engineering (for example, context, instruction, negative prompts).; Define techniques for prompt engineering (for example, chain-of-thought, zero-shot, single-shot, few-shot, prompt templates).; Identify and describe the benefits and best practices for prompt engineering (for example, response quality improvement, experimentation, guardrails, discovery, specificity and concision, using multiple comments).; Define potential risks and limitations of prompt engineering (for example, exposure, poisoning, hijacking, jailbreaking).; Describe prompt versioning and management strategies that use Amazon Bedrock Prompt Management.

Practice questions

Question 1easy

A designer uses Amazon Nova to generate images of a mountain bike on a forest trail. The images keep showing other riders in the background, which the designer does not want. Which prompt technique addresses this?

Included in Sample: sample every domain.See plans

Choose an answer to check it. Afterward, select any option to review its explanation.

Few-shot examples are input-output pairs that calibrate text output. They are not the mechanism for keeping an object out of a generated image.

Chain-of-thought breaks a reasoning problem into intermediate steps. It is for multi-step reasoning tasks, not for excluding objects from an image.

Negative prompts, set through the negativeText parameter, exclude objects or styles that would otherwise tend to appear as a result of the main prompt, such as background riders on a trail.

More randomness changes the results unpredictably. It does not tell the model to leave out a specific element.

Question 2easy

A user tells a public chatbot to role-play as an AI with no rules so that it will produce dangerous instructions the model was trained to refuse. Which risk does this represent?

Included in Master: master every domain.See plans