Choose effective prompt engineering techniques

Concepts covered in Choose effective prompt engineering techniques
Prompting Best Practices
Global Attempts: 123Correct: 98 |  Incorrect: 25
Accuracy: 80%
Prompt Engineering Techniques
Global Attempts: 132Correct: 110 |  Incorrect: 22
Accuracy: 83%
Amazon Bedrock Prompt Management
Global Attempts: 158Correct: 132 |  Incorrect: 26
Accuracy: 84%
Prompt Security Risks
Global Attempts: 129Correct: 110 |  Incorrect: 19
Accuracy: 85%
Prompt Engineering Constructs
Global Attempts: 151Correct: 138 |  Incorrect: 13
Accuracy: 91%

Practice, Analyze & Improve

Dont just read—test your knowledge! Unlock the Student Workspace to take chapter tests and get instant performance insights.

Deep Analytics

Peer Comparison

Track Progress

Claim Free Account100% Free • No credit card required
Do you belong in the Top 10%?

Our analytics show that most students struggle with specific concepts in Choose effective prompt engineering techniques. Take a free diagnostic test to generate your personal Learning DNA profile.

Practice Test – MCQs, True/False

Top

Multiple Choice Questions

A.

Formulate an open-ended question in the prompt to encourage creative divergence.

B.

Apply a negative prompt specifically instructing the model to exclude hashtags, emojis, and verbose explanations.

C.

Increase the temperature parameter to push the model away from standard hashtag usage.

D.

Use zero-shot prompting to reset the model's inherent biases.
Correct Answer: B

Solution:

Applying a negative prompt (Option B) is the most direct and effective way to prevent a foundation model from generating specific unwanted elements (like hashtags, emojis, or verbose language). By explicitly telling the model what not to do, you establish strict negative constraints. Open-ended questions (Option A) and high temperature (Option C) would increase randomness and likely generate more unwanted creative elements. Zero-shot prompting (Option D) does not establish constraints against specific elements. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Constructs

A.

Decrease the Top-P value to force the model to predict more conservative market movements.

B.

Embed the latest daily market data and news articles directly into the prompt context to ground the model's response in current events.

C.

Apply a negative prompt instructing the model to avoid all positive financial terminology.

D.

Adjust the system prompt to enforce a highly creative, high-temperature persona.
Correct Answer: B

Solution:

Embedding the latest daily market data into the prompt context (Option B) grounds the model in current reality. Foundation models suffer from a knowledge cutoff based on their training data; they do not know what happened yesterday unless you explicitly provide that context in the prompt. Decreasing Top-P (Option A) makes outputs deterministic but does not provide new facts. A negative prompt (Option C) might stop optimistic language but won't magically inform the model about the stock drop. High temperature (Option D) increases hallucinations. Reference: https://aws.amazon.com/what-is/prompt-engineering/

Chapter Concept:

Prompt Engineering Constructs

A.

Decrease the input context length to limit the amount of technical data the model can read.

B.

Increase the Top-K value to expand the model's vocabulary.

C.

Explicitly define the persona and target audience in the prompt (e.g., 'Explain this as if speaking to a non-technical sales representative').

D.

Set a strict maximum output length constraint to shorten the documentation.
Correct Answer: C

Solution:

Explicitly defining the persona and target audience (Option C) is a powerful prompt engineering construct. By instructing the model to adopt a specific persona (e.g., a patient teacher) and targeting a specific audience (e.g., non-technical sales reps), the model automatically adjusts its vocabulary, tone, and complexity to avoid dense jargon. Decreasing context (Option A) removes necessary facts. Increasing Top-K (Option B) introduces randomness. Shortening the output (Option D) doesn't prevent the use of jargon, it just makes the jargon-filled document shorter. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Constructs

A.

Increase the Top-P value to 1.0 to maximize creativity.

B.

Provide 3 to 5 examples of perfect product descriptions following the exact desired format directly in the prompt (Few-Shot Prompting).

C.

Use a negative prompt to tell the model not to write unstructured paragraphs.

D.

Lower the Temperature to 0 to force structural determinism.
Correct Answer: B

Solution:

Few-Shot Prompting (Option B) is highly effective for enforcing specific structural formats. By providing 3 to 5 examples of the exact desired output (e.g., Title, 3 bullet points) in the prompt, the model recognizes the pattern and maps its response to match the structure of the examples perfectly. Increasing Top-P (Option A) increases variance, making structure harder to control. Negative prompts (Option C) tell the model what not to do, but don't show it the specific 3-bullet format required. Lowering temperature (Option D) reduces randomness but doesn't teach the model the desired structure. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-prompt-engineering.html

Chapter Concept:

Prompt Engineering Constructs

A.

Use XML tags (e.g., <document>, <instructions>) as structural delimiters to explicitly separate different parts of the prompt.

B.

Convert the entire prompt into a JSON string before sending it to the API.

C.

Send the documents and instructions in separate API calls and merge the results locally.

D.

Use negative prompting to tell the model not to confuse the text.
Correct Answer: A

Solution:

Using XML tags or specific delimiters (Option A) is a strongly recommended best practice, especially for models like Anthropic Claude. Delimiters clearly separate instructions from the context/data, preventing the model from confusing the two. Converting to a JSON string (Option B) adds unnecessary complexity without clearly defining semantic roles to the LLM. Sending separate API calls (Option C) breaks the necessary context. Negative prompting (Option D) is less effective than simply structuring the prompt correctly with delimiters. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Constructs

A.

Define a clear persona and provide detailed context about the specific product's features within the system prompt.

B.

Maximize the model's temperature parameter to naturally generate an upbeat tone.

C.

Incorporate explicit negative prompts (e.g., 'Do NOT mention [Competitor A] or [Competitor B]').

D.

Remove all punctuation from the prompt to allow the model's self-attention mechanism to flow freely.
Correct Answer: A, C

Solution:

Defining a clear persona and providing detailed product context (Option A) ensures the email adopts the upbeat brand tone and includes highly relevant product details. Incorporating explicit negative prompts (Option C) is the correct mechanism to strictly forbid the mention of specific competitor names. Maximizing temperature (Option B) creates chaos and hallucinations, not a guaranteed brand tone. Removing punctuation (Option D) degrades model comprehension. Top-K (Option E) controls sampling randomness; it cannot be used to filter specific proper nouns like competitor names. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Constructs

A.

Incorporate detailed role-playing instructions specifying the target audience (e.g., 'Act as a customer success manager writing for non-technical end-users').

B.

Set a negative prompt explicitly instructing the model to exclude technical architecture jargon and academic phrasing.

C.

Provide zero context to force the model to generalize its language.

D.

Increase the max_tokens parameter to give the model room to explain the jargon.
Correct Answer: A, B

Solution:

Incorporating role-playing instructions defining the target audience (Option A) guides the model to naturally adjust its tone and vocabulary to suit non-technical users. Setting a negative prompt (Option B) provides a strict constraint against using academic phrasing or deep technical jargon. Providing zero context (Option C) leads to useless, generic release notes. Increasing max_tokens (Option D) does not stop the use of jargon. Chain-of-Thought prompting (Option E) is for complex mathematical or logical reasoning tasks, not tone adjustment. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-prompt-engineering.html

Chapter Concept:

Prompt Engineering Constructs

A.

Use negative prompting (e.g., 'Do not offer, promote, or mention credit card products under any circumstances').

B.

Provide explicit formatting instructions or a structural template (e.g., using XML tags to delineate <Greeting>, <Solution>, <SignOff>).

C.

Define a clear persona and behavioral context (e.g., 'You are an empathetic, patient customer support representative for a retail bank').

D.

Lower the Top-P value to 0.1 to mathematically guarantee an empathetic tone.
Correct Answer: A, B, C

Solution:

Use negative prompting (Option A) to fulfill the compliance mandate against upselling credit cards. Provide explicit formatting instructions/templates (Option B) to enforce the required structure (Greeting, Solution, Sign-off). Define a clear persona (Option C) to ensure the model adopts the required empathetic, patient tone. Lowering Top-P (Option D) reduces randomness, which makes the model robotic rather than empathetic. Zero-shot prompting (Option E) does not help enforce strict formatting; Few-shot prompting would be better. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Constructs

A.

Provide the raw, verified wire reports in the prompt's context window to ground the output in facts.

B.

Use negative prompting to explicitly forbid sensationalist adjectives and clickbait phrasing.

C.

Implement Few-Shot Prompting by providing examples of the desired 'Headline + 3 Bullets' format.

D.

Maximize the Temperature setting to ensure the headline is catchy.
Correct Answer: A, B, C

Solution:

Providing verified wire reports in the context window (Option A) grounds the model in reality, preventing factual hallucinations. Using negative prompting (Option B) strictly forbids the unwanted sensationalist tone. Implementing Few-Shot Prompting (Option C) trains the model to consistently output the exact 'Headline + 3 Bullets' format by providing examples in the prompt. Maximizing Temperature (Option D) encourages hallucinations and clickbait, violating the core requirements. Model Distillation (Option E) shrinks model size; it is not a prompt engineering technique and does not selectively delete vocabulary. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-prompt-engineering.html

Chapter Concept:

Prompt Engineering Constructs

A.

Use Few-Shot prompting by providing 3-5 examples of a raw invoice text mapped perfectly to the desired JSON schema.

B.

Include an explicit instruction stating 'Only extract information explicitly present in the provided invoice text. If a field is missing, output null.'

C.

Increase the context window to include the entire history of all company invoices.

D.

Ask the model to generate the invoice from scratch before parsing it.
Correct Answer: A, B

Solution:

Few-Shot prompting (Option A) shows the model exactly how the JSON schema should look and how to map raw text to it, heavily reducing schema breaks. Explicit instructions restricting extraction only to present data (Option B) directly combats hallucinations by establishing a strict rule (and a fallback action: output 'null'). Including all historical invoices (Option C) wastes tokens, increases cost/latency, and confuses the model regarding which invoice to parse. Generating an invoice from scratch (Option D) guarantees hallucinations. Telling the model not to use Python (Option E) is irrelevant to JSON formatting. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Constructs

A.

Few-shot prompting

B.

Chain-of-thought reasoning

C.

Zero-shot prompting

D.

Retrieval-Augmented Generation (RAG)
Correct Answer: C

Solution:

Zero-shot prompting (Option C) occurs when a model is asked to perform a task without being provided any prior examples or demonstrations in the prompt. The model relies entirely on its pre-trained knowledge to generate the response. Few-shot prompting (Option A) would involve providing a few examples. Chain-of-thought (Option B) involves asking the model to reason step-by-step. RAG (Option D) involves fetching external documents, which is an architectural pattern, not a prompting technique. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-prompt-engineering.html

Chapter Concept:

Prompt Engineering Techniques

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Chain-of-thought (CoT) reasoning

B.

One-shot prompting

C.

Semantic Chunking

D.

Parameter-Efficient Fine-Tuning (PEFT)
Correct Answer: A

Solution:

Chain-of-thought (CoT) reasoning (Option A) involves guiding the model to solve complex problems by breaking them down into intermediate logical steps. By forcing the model to 'think step-by-step' and generate its reasoning before the final answer, its ability to solve math and logic problems improves drastically. One-shot prompting (Option B) involves providing a single example. Semantic chunking (Option C) is a data preparation technique for vector databases. PEFT (Option D) is a method for training model weights. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-engineering-guidelines.html

Chapter Concept:

Prompt Engineering Techniques

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Zero-shot prompting

B.

Few-shot prompting

C.

Prompt templates

D.

Model distillation
Correct Answer: B

Solution:

Few-shot prompting (Option B) involves providing the model with a small number of examples (usually 3 to 5) directly within the prompt to demonstrate the desired output format, tone, or style. This is highly effective when instructions alone fail to capture nuanced brand voices. Zero-shot prompting (Option A) provides no examples. Prompt templates (Option C) refer to frameworks with variables, not the act of providing examples. Model distillation (Option D) shrinks the physical size of a model. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-prompt-engineering.html

Chapter Concept:

Prompt Engineering Techniques

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Fine-tuning

B.

Chain-of-thought reasoning

C.

Prompt templates

D.

Single-shot prompting
Correct Answer: C

Solution:

Prompt templates (Option C) are pre-defined, structured frameworks that use placeholders or variables (like {{user_name}}). At runtime, the application dynamically injects contextual data into these placeholders to create a complete prompt string. Fine-tuning (Option A) alters neural weights. Chain-of-thought (Option B) dictates reasoning steps. Single-shot prompting (Option D) provides one example. Reference: https://aws.amazon.com/what-is/prompt-engineering/

Chapter Concept:

Prompt Engineering Techniques

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.

A.

Zero-shot prompting

B.

One-shot (Single-shot) prompting

C.

Chain-of-thought reasoning

D.

Meta-prompting
Correct Answer: B

Solution:

One-shot (or Single-shot) prompting (Option B) is the technique of providing exactly one example of the desired input and output to the model. This gives the model a clear template to mimic without consuming as many tokens as few-shot prompting. Zero-shot (Option A) provides zero examples. Chain-of-thought (Option C) focuses on intermediate reasoning steps. Meta-prompting (Option D) involves using an LLM to write or optimize prompts for another LLM. Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-prompt-engineering.html

Chapter Concept:

Prompt Engineering Techniques

Unlock the Detailed Solution
Sign in to view options, correct answers, and step-by-step logic.
Experience the StudyTunnel Method

We do not just give you mock tests. We guide you through a gamified, AI-driven learning path designed to guarantee mastery.

Step 1: Practicing the Concepts

Choose effective prompt engineering techniques

Step 2: Master Boss Exam
Locked • Full Phase Assessment
Step 3: Redemption Arena
Locked • AI Weakness Tracker