Heads up: opening this section reveals every question, every option, and the correct answer for this round. If you came here to play, scroll up and hit Play first.
Question 1: What is the primary goal of prompt engineering?
- To create graphical user interfaces for AI applications.
- To manage server infrastructure for AI deployments.
- To design and refine instructions for large language models.
- To develop new AI models from scratch.
Answer: C. To design and refine instructions for large language models.
Explanation: Prompt engineering focuses on crafting and refining instructions given to a large language model to improve the quality, accuracy, and relevance of its output, making it a crucial skill for AI builders.
Question 2: Which of these is NOT a common technique used in prompt engineering?
- Hardware optimization.
- Role assignment.
- Chain-of-thought reasoning.
- Few-shot examples.
Answer: A. Hardware optimization.
Explanation: Prompt engineering commonly includes techniques like few-shot examples, chain-of-thought reasoning, role assignment, and output constraints. Hardware optimization is related to system performance, not prompt design.
Question 3: What is the main purpose of context engineering in AI agents?
- To manage an AI agent's context window for focus and signal density.
- To design the physical hardware for AI agents.
- To create marketing materials for AI products.
- To write the initial training data for AI models.
Answer: A. To manage an AI agent's context window for focus and signal density.
Explanation: Context engineering is described as managing what information persists, gets summarized, or gets dropped so an AI agent's context window stays focused and signal-dense, optimizing its operational efficiency.
Question 4: What technique involves pulling relevant documents into a model's context window before inference?
- Generative adversarial networks (GANs).
- Recurrent neural networks (RNNs).
- Retrieval-augmented generation (RAG).
- Convolutional neural networks (CNNs).
Answer: C. Retrieval-augmented generation (RAG).
Explanation: Retrieval-augmented generation (RAG) is a key technique within context engineering that pulls relevant documents or data into the model's context window before inference, enhancing the model's knowledge.
Question 5: What can happen if a prompt exceeds a model's maximum token length?
- The model requests a shorter prompt from the user.
- The model automatically expands its token limit.
- The prompt is truncated, leading to lost context.
- The model processes the entire prompt without issues.
Answer: C. The prompt is truncated, leading to lost context.
Explanation: Prompt size matters because prompts that exceed a model's maximum token length can truncate instructions or input data, leading to lost context or incomprehensible output from the model.
Question 6: According to Glean, how is prompt engineering generally framed compared to context engineering?
- Prompt engineering is developer-facing; context engineering is user-facing.
- Prompt engineering is user-facing; context engineering is developer-facing.
- Both are exclusively developer-facing.
- Both are exclusively user-facing.
Answer: B. Prompt engineering is user-facing; context engineering is developer-facing.
Explanation: Glean frames prompt engineering as user-facing, focusing on the direct instructions given by users, while context engineering is described as developer-facing and system-oriented, managing the underlying AI context.
Question 7: What is a potential issue if the wrong chat template is used with a modern language model?
- Unexpected performance drops can occur.
- The model will switch to a different language.
- The model will automatically correct the template.
- The model will refuse to generate any output.
Answer: A. Unexpected performance drops can occur.
Explanation: Using the wrong chat template, even with small errors such as extra newlines, can cause unexpected performance drops, highlighting the importance of correct template application for optimal model behavior.