AWS Certified AI Practitioner (AIF-C01) — Question 162
Which scenario describes a potential risk and limitation of prompt engineering in the context of a generative AI model?
Answer options
- A. Prompt engineering does not ensure that the model always produces consistent and deterministic outputs, eliminating the need for validation.
- B. Prompt engineering could expose the model to vulnerabilities such as prompt injection attacks.
- C. Properly designed prompts reduce but do not eliminate the risk of data poisoning or model hijacking.
- D. Prompt engineering does not ensure that the model will consistently generate highly reliable outputs when working with real-world data.
Correct answer: B
Explanation
The correct answer is B because prompt engineering can introduce security risks, such as prompt injection attacks, which exploit the way prompts are processed. Other options discuss limitations in consistency, reliability, and risk reduction, but they do not specifically highlight the security vulnerabilities that prompt engineering may introduce.