D2: Context Engineering
AWS Foundational AI Practitioner exam practice questions · 10 flashcards
Question
What is context engineering?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Context Engineering practice questions and answers
- What is context engineering?Designing and managing all information given to a model — instructions, retrieved data, history, tool results, memory — to get reliable outputs.
- How does context engineering differ from prompt engineering?Prompt engineering focuses on wording an instruction; context engineering manages the whole context window across sources and turns.
- Why does context matter for FM applications?Models only know what's in their training data plus the context; relevant context improves accuracy.
- Techniques in context engineering?Retrieval (RAG), summarizing history, selecting relevant tools, structured system prompts, memory, pruning irrelevant content.
- Risk of overloading the context?Higher cost and latency, and important details may be ignored.
- What is a system prompt?Persistent instructions defining the model's role, rules and format for a session.
- How is memory used in context engineering?Storing and retrieving past interactions/facts so the model has continuity across sessions.
- Why summarize long conversation history?To keep key facts within the context window and reduce tokens.
- What is grounding?Providing trusted source data in context so responses rely on facts.
- How does tool output become context?Results from tool calls (e.g. API data) are fed back into the model's context for the next step.