2 exercises — use precise technical vocabulary to describe AI architectures: RAG pipelines, vector databases, and inference chains.
0 / 42 completed
1 / 42
You are describing a RAG-based AI system to a software architect who is new to AI. Which description is most precise and complete?
Option C is the professional architecture description. It uses precise technical vocabulary:
• Embedding vector — the numeric representation of the query for similarity search • Semantic similarity search — finds documents by meaning, not keyword match • Vector store / pgvector — names the specific technology (important for concrete conversations) • Top-k — a standard parameter meaning "return the k most similar results" • Context window injection — explains how retrieval output is fed to the LLM • Grounding context — the industry term for retrieved documents used to anchor the response • Pre-training knowledge — contrasts RAG with purely parametric (in-weights) knowledge
Standard RAG vocabulary for system design discussions: — Chunking strategy (fixed-size, semantic, recursive) — how documents are split — Embedding model (e.g. text-embedding-ada-002) — converts text to vectors — Reranker — a second pass model that re-orders retrieved chunks by relevance — Hybrid search — combining vector similarity with keyword search (BM25)
2 / 42
In a design review, a colleague says: "We should use a vector database for the inference pipeline." Which response correctly identifies what is being proposed?
Option B correctly defines both terms and their relationship.
Vector database: a specialised database for storing and querying high-dimensional numeric vectors (embeddings). It supports approximate nearest-neighbour (ANN) search — finding the vectors most similar to a query vector. Examples: • Pinecone — managed, cloud-native • Weaviate — open-source, graph-capable • Qdrant — open-source, Rust-based • pgvector — Postgres extension (simplest to add if already using Postgres) • Chroma — lightweight, developer-friendly
Inference pipeline (in the context of a production AI feature): the sequence of steps that runs when a user makes a request: 1. Query preprocessing 2. Embedding generation 3. Vector store retrieval 4. Context assembly (injecting chunks into the prompt) 5. LLM API call (the "inference" step properly) 6. Response post-processing 7. Response delivery
The colleague is proposing to add a vector database to step 3 — the retrieval step — which is a core RAG architecture decision.
3 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
4 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
5 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
6 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
7 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
8 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
9 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
10 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
11 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
12 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
13 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
14 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
15 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
16 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
17 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
18 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
19 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
20 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
21 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
22 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
23 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
24 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
25 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
26 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
27 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
28 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
29 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
30 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
31 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
32 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
33 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
34 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
35 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
36 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
37 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
38 / 42
PR Description
Subject: Enhance User Profile Retrieval with AI Prompting
Body:
```text
This PR updates the user profile retrieval service to leverage a new AI prompting strategy. We're using an LLM to dynamically generate queries based on the user's search terms, improving relevance and reducing latency. The prompt includes key information about the user's preferences and past interactions to ensure highly tailored results.
During code review, your senior engineer asks: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' Which response best addresses this question?
This question assesses understanding of how prompt engineering impacts system design. The correct answer highlights that providing context in the prompt (user preferences, past interactions) directly informs the LLM's query generation—leading to more relevant results and a better mapping to existing data models. Options A incorrectly focuses on prompt length as a performance bottleneck; B accurately describes the purpose of contextual prompting, while C misdirects attention away from prompt design itself, and D introduces an unnecessary level of complexity not explicitly stated in the PR description.
39 / 42
Senior Engineer: 'Can you elaborate on how the prompt engineering impacts the overall system performance?' You're explaining this to a colleague during a code review of the new user profile retrieval service. Which of the following responses best describes the relationship between the AI prompt and performance metrics?
Option A: 'We've optimized the prompt length to minimize token usage, which directly reduces the LLM inference time and improves latency.'
Option B: 'The prompt acts as a filter, pre-selecting relevant data chunks from the knowledge base, so we're primarily seeing improvements in retrieval accuracy rather than speed.'
Option C: 'The prompt's dynamic generation of queries impacts performance by increasing the load on both the LLM and the vector database, potentially leading to increased latency if not managed effectively. We need to monitor query complexity and vector search times.'
Option D: 'The AI prompting is a minor addition; it mainly improves the user experience by personalizing results, so performance gains are negligible.'
This question tests understanding of how prompt engineering affects system performance within an RAG architecture. Option A focuses solely on token count – while important – doesn't fully address the interaction with the vector database or LLM load. Option B is partially correct (accuracy improvement), but misrepresents the primary impact; the prompt *generates* queries, not just filtering.
Option C correctly identifies that dynamic query generation introduces load on both components, acknowledging the potential for latency. This reflects a more holistic view of performance considerations – monitoring query complexity and vector search times is crucial. Option D minimizes the importance of prompting, which isn't accurate in a system designed for personalization.
40 / 42
You're reviewing a Slack message from the AI system's development team regarding an experimental prompt designed to summarize customer support tickets. The message reads: 'We're using a few-shot prompt with examples of ideal summaries and asking the LLM to generate one based on the ticket content.' A junior developer asks, 'How does this approach affect response times compared to simply searching our existing knowledge base for similar tickets?' Which of the following responses from a senior engineer best explains the potential performance implications?
This question tests understanding of LLM inference costs. Option B correctly identifies that the core issue is the computational complexity of the LLM itself – generating a response requires significant processing time, regardless of how well-designed the prompt is. The other options misinterpret the impact; A focuses on token usage without addressing the fundamental latency, C highlights an additional overhead, and D suggests the few-shot prompting *improves* speed, which isn't necessarily true.
41 / 42
You're reviewing a PR description for an AI system designed to answer customer support queries. The description reads: 'This service utilizes an LLM to generate targeted prompts based on the incoming ticket content, drastically improving response accuracy and reducing average resolution times. We're employing a chain-of-thought prompting strategy to guide the LLM towards more detailed analysis.' During a standup update, your team lead asks: 'How are we measuring the impact of this new prompting approach on our overall system latency?' Which of the following responses best reflects the key considerations for assessing performance in this context?
Option A: 'We're focusing solely on the LLM's response time – a reduction there automatically indicates improved system performance, regardless of any other factors.'
Option B: 'Latency is primarily determined by the vector database lookup speed; optimizing the prompt to reduce the number of queries sent to the database will be the most significant factor in reducing overall latency.'
Option C: 'The chain-of-thought prompting introduces additional processing steps within the LLM, which can increase latency. We need to monitor both the LLM's inference time and the subsequent retrieval operations.'
Option D: 'Latency is not a primary concern for this system – our priority is solely on improving response accuracy, as measured by customer satisfaction scores.'
This question tests understanding of prompt engineering's impact on system latency. The correct answer (Option B) highlights that vector database lookup speed is a key factor in overall latency. Options A and D incorrectly isolate the LLM or accuracy as the sole determinants of performance – a complex AI system has multiple components contributing to its response time. Option C correctly identifies the chain-of-thought prompting as potentially introducing additional processing steps, which *can* increase latency, requiring monitoring. This demonstrates awareness that prompt engineering isn't just about generating better queries but also managing their impact on downstream operations.
42 / 42
You're reviewing a code review comment on a PR that implements an AI prompt for summarizing product reviews. The reviewer writes: 'This approach seems like it could introduce significant latency due to the LLM's processing overhead.' Which response best addresses this concern during a discussion with the development team?
The team is debating whether to prioritize speed or accuracy when refining the prompt.
Option A acknowledges the latency issue but suggests a simplistic solution. Option B dismisses performance concerns entirely, which isn't realistic. Option C correctly identifies the core problem – LLM processing overhead – and proposes targeted mitigation strategies. Option D is incorrect because using a larger model doesn't automatically guarantee better summary quality; it can also increase complexity.
What will I practice in "AI System Design Language — AI Prompting English Exercise"?
This is an AI Prompting exercise set. It walks through 42 scenario-based multiple-choice questions built around real usage of AI Prompting terminology that IT professionals encounter on the job.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is free to complete with no account, sign-up, or paywall.
How many questions are in this exercise?
This set contains 42 questions. Each one shows immediate feedback and a detailed explanation after you answer, so you learn the correct usage right away rather than waiting for a final score.
Do I need prior experience to complete this exercise?
No prior experience is required. Each question includes a full explanation covering the reasoning behind the correct answer, so the exercise itself teaches the AI Prompting vocabulary as you go.
Can I retry the exercise if I get questions wrong?
Yes — use the "Try again" button on the results screen to reset your answers and go through all the questions again. There is no limit on attempts.
Is my progress saved?
Your answers and score for the current session are tracked in the browser as you go. No account or login is needed, and there is nothing to install.
What if I don't understand a term used in a question?
Read the explanation shown after you answer each question — it breaks down the correct term in plain English with a real-world example. You can also check the site Glossary for quick definitions.
How is this different from reading a blog article on the topic?
Exercises like this one are interactive drills that test and reinforce specific vocabulary through multiple-choice questions, while blog articles explain concepts in prose. Practising here after reading builds active recall, not just passive recognition.
Where can I find more AI Prompting exercises?
See the AI Prompting exercises hub for the full set of related pages, or browse all exercise categories from the main Exercises index.
Can I use this exercise to prepare for a technical interview?
Yes — AI Prompting vocabulary comes up often in technical discussions and interviews. Pair this exercise with our dedicated Interview Preparation section for role-specific practice.