Skip to content

CertPunch

AI Agents Professional

Exam 2 · 44 questions · Choose another exam

  1. Question 52 of 259An autonomous legal research agent falls into an execution trap: when searching for a statutory precedent using a database query tool, the tool returns 'Zero Results Found.' The agent continuously inputs variations of the identical search string, generating an infinite action loop. How do you programmatically terminate this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure an external runtime manager that tracks the hash of the tool's input variables and forces a fallback exception if identical input signatures repeat three times.

    An external runtime manager breaks execution loops by hashing tool inputs and triggering an exception when repeats occur. Increasing temperature or token limits will not fix deterministic traps; they merely generate variations of the same failed request.

  2. Question 53 of 259A manufacturing logistics agent operates using a ReAct reasoning framework to read shipping tables. During a routine query, an external database API returns a structural error message. Instead of modifying its query syntax, the agent outputs the exact same action call inside its scratchpad, creating an infinite processing loop that exhausts API quotas. Which programmatic guardrail breaks this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Implementing an external execution manager that hashes the agent's action outputs and injects an explicit corrective steering prompt if an action-error pattern repeats consecutively.

    An external execution manager breaks infinite loops by hashing outputs and injecting corrective steering prompts when repetitions occur. Increasing model temperature will not solve structural API error traps.

  3. Question 54 of 259A real-time financial news tracking agent alerts users to regulatory violations. It uses a vector database to search historic filings. Users report receiving false positive alerts because the agent retrieves a valid penalty clause from 2018 and applies it to a 2026 transaction. What is the flaw? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. The system relies entirely on semantic vector similarity without integrating a temporal metadata filter or a time-decay ranking algorithm.

    The correct answer works because semantic embeddings capture meaning but lack inherent chronological filtering, requiring temporal metadata to handle time-sensitive data. For the exam, watch for scenarios mixing dates and vector databases; always look for missing metadata filters.

  4. Question 55 of 259An engineering team observes that their 'Critique-Correction' loop agent consistently gets stuck in an execution trap: it finds a flaw in its previous code output, but when it attempts to fix it, it generates a new script containing the same structural bug. What is the root cause?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The critique phase generated abstract negative feedback without providing actionable structural constraints or prescriptive adjustments.

    The correct answer works because abstract critique fails to guide the generation path away from structural flaws, causing the model to repeat identical mistakes. Distractors like temperature settings or server RAM do not address the lack of prescriptive guidance in the prompt.

  5. Question 56 of 259An autonomous financial agent is processing market trends. The developers want to implement a multi-step reasoning protocol that alternates between internal rationalization steps ('Thought') and external data tool queries ('Action'). Which framework should they build?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The ReAct (Reason + Act) paradigm.

    The ReAct paradigm works because it explicitly interleaves internal reasoning steps with external tool executions. Self-consistency and least-to-most prompting lack this tight, sequential integration of tool-calling required for dynamic data retrieval.

  6. Question 57 of 259An architectural firm utilizes an AI planning agent to generate structural layout variations for a commercial building. The agent must systematically evaluate multiple floor plan branches, analyze the compliance rating of each branch at intermediate junctions, and backtrack immediately if a layout violates municipal safety regulations. Which planning paradigm is optimized for this scenario?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Tree-of-Thoughts (ToT) using a customized Depth-First Search (DFS) or Breadth-First Search (BFS) routing script.

    Tree-of-Thoughts works because it models reasoning as a searchable tree, allowing agents to evaluate intermediate steps and backtrack from invalid branches. Linear prompting cannot backtrack, making it unsuitable for strict compliance routing.

  7. Question 58 of 259A financial agent is designed to verify loan applications by navigating deeply nested corporate ownership structures, regulatory tables, and past tax audits. Standard linear prompting layouts fail because the model confuses overlapping relationship vectors. Which framework models the reasoning space as an interconnected lattice rather than a single sequence or branch?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Graph-of-Thoughts (GoT).

    Graph-of-Thoughts is correct because it models reasoning as a directed graph, allowing the agent to cross-link and merge complex data points. For the exam, remember that Chain-of-Thought is strictly linear, while ReAct requires tools to function properly.

  8. Question 59 of 259An engineering team deploys a corporate information assistant using a vector database RAG pipeline. Users report that while the vector database returns chunks with high cosine similarity scores, the agent outputs obsolete guidelines because the system retrieves policy revisions from 2021 instead of recent 2026 updates. What component is missing?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. A metadata-based temporal filtering layer or a time-weighted decay function within the retrieval algorithm.

    Adding temporal metadata filtering is correct because standard vector similarity only measures semantic closeness, not data freshness. A practical exam cue is that if a system retrieves outdated information despite high similarity scores, the pipeline lacks time-based constraints.

  9. Question 60 of 259An agent uses the Reflexion architecture to refine its data extraction code. In trial 1, the code fails due to a missing library import. In trial 2, despite generating a self-reflection note highlighting the missing library, the agent outputs code with the exact same error. Why is this loop happening?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The reflection prompt generated an abstract critique instead of a concrete, programmatic constraint or alternative execution path.

    Generating an abstract critique is correct because self-correction requires explicit, actionable constraints to override parametric biases. If the reflection prompt only states that code failed without providing specific corrections, the model naturally repeats the error.

  10. Question 61 of 259A legal analysis agent must identify discrepancies within a 500-page merger agreement. The team notices that when the discrepancy involves text positioned near page 250, the agent regularly claims 'no issues found,' whereas it catches errors on pages 5 and 495 flawlessly. What is this constraint?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The 'Lost in the Middle' phenomenon inherent in long-context transformer attention allocation.

    The Lost in the Middle phenomenon is correct because transformer attention allocation prioritizes the beginning and end of long contexts. A solid exam cue is that if models miss details specifically in the center of documents, attention bias is the culprit.

  11. Question 62 of 259An autonomous agent is deployed to manage a high-volume customer service routing workflow. During a long-running conversation, the agent begins forgetting the initial user identity variables and strict business rules stated in the initial prompt, despite the total conversation length remaining well within the model's physical context window. What memory issue is occurring, and how should it be structurally resolved?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Lost in the Middle' position bias; resolve by implementing a hybrid memory architecture that anchors critical initialization rules in a static system prompt space while dynamically summarizing past chat loops.

    Identifying the issue as Lost in the Middle position bias is correct because transformers de-prioritize tokens in the center of the context window. Pinning initialization rules in a static system prompt prevents critical instructions from drifting into low-attention zones.

  12. Question 63 of 259An engineering team is benchmarking an agent designed to handle code migration. When the agent utilizes the Tree-of-Thoughts (ToT) paradigm, it exhibits a high success rate but takes 45 seconds to answer. When using a linear Chain-of-Thought (CoT) pattern, it responds in 4 seconds but fails 60% of the tasks. What trade-off is being observed?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. State-space search depth and evaluation latency versus linear token generation speed.

    Evaluating state-space search depth against linear token generation is correct because Tree-of-Thoughts recursively evaluates multiple intermediate steps. Chain-of-Thought generates tokens linearly and quickly, but lacks the lookahead evaluation needed for complex tasks.

  13. Question 64 of 259An automated e-commerce agent fails to complete checkouts whenever a user takes more than 10 minutes to locate their MFA verification code. The engineering team discovers that the agent's short-term memory manager clears all temporary session variables every 5 minutes to free up active tokens. Which mitigation is most resilient?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Implement an external, persistent Key-Value session cache with an explicit 30-minute Time-To-Live (TTL) tied to the user's distinct Session ID.

    Implementing an external persistent cache with a Time-To-Live is correct because it decouples session state from the active reasoning context window. Increasing the model's token generation limit does nothing to prevent short-term memory managers from clearing variables.

  14. Question 65 of 259You are building a RAG-backed customer support agent for an insurance company. Policies are hundreds of pages long and feature deeply nested clauses. When a user asks about policy exclusions, a naive top-K chunk retrieval passes mismatched clauses from completely different policies, leading to false claims assertions. Which chunking and retrieval paradigm resolves this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Implement Hierarchical Section-Based Chunking coupled with Meta-Data Filtering based on the explicit policy ID.

    Implementing hierarchical section-based chunking with metadata filtering is correct because it ensures chunks are structurally grouped and isolated by policy ID. Changing distance metrics will not prevent mismatched clauses if the retrieval pipeline lacks strict filtering boundaries.

  15. Question 66 of 259An automated pipeline agent processes a continuous stream of corporate communications. The system architecture requires a memory module that maintains a running summary of macro-level discussions over several days while retaining the exact, verbatim text of the last 5 chat turns. Which specific memory wrapper fits this design?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. ConversationSummaryBufferMemory.

    ConversationSummaryBufferMemory fits this design by summarizing older turns while keeping recent messages verbatim. Standard buffer memory lacks summarization, which would quickly exhaust the context window during multi-day operations.

  16. Question 67 of 259An agent is tasked with scheduling complex logistics workflows. The team utilizes 'Least-to-Most Prompting' as the core planning framework. What operational characteristic distinguishes this approach from classic Chain-of-Thought (CoT) prompting?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. It systematically breaks down a complex problem into a sequence of dependent sub-problems, solving each one incrementally using the previous solution's output.

    Least-to-Most prompting systematically breaks complex tasks into dependent sub-problems, solving each with prior outputs. Chain-of-Thought generates a single continuous reasoning trace without isolating sub-tasks into independent execution steps.

  17. Question 68 of 259What is a primary operational disadvantage of depending completely on 'Parametric Memory' (targeted fine-tuning) to frequently update an enterprise agent's product knowledge repository?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. It carries extreme computational and financial overhead for continuous updates and lacks source data lineage tracking.

    Relying entirely on fine-tuning for knowledge updates introduces severe compute costs and eliminates data lineage tracking. Use non-parametric memory like RAG for rapid updates, as fine-tuning cannot provide real-time data source citations.

  18. Question 69 of 259You are configuring a RAG pipeline for an automated HR assistant that parses internal employment contracts. Users state that the agent regularly generates incorrect compliance summaries because the vector search retrieves localized sentences while omitting the overarching section headers and contextual prerequisites. Which chunking layout addresses this error?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Parent-Child (Small-to-Large) Chunking configurations where small sub-chunks are indexed for vector search, but their larger parent blocks are passed to the model.

    Parent-Child chunking solves context loss by indexing small chunks for precise vector matches while passing larger parent blocks to the model. This ensures surrounding context is retained, unlike naive character splitting which fragments documents.

  19. Question 70 of 259What is a critical architectural risk when relying strictly on 'Parametric Memory' updates (frequent fine-tuning) to feed real-time inventory updates into an autonomous retail agent?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. It is slow, computationally expensive, lacks data lineage traceability, and cannot keep pace with high-velocity real-time changes.

    Frequent fine-tuning is computationally expensive and inherently lacks the real-time velocity required for inventory tracking. Non-parametric RAG architectures are required here, as they allow immediate updates and clear data lineage.

  20. Question 71 of 259A corporate compliance agent must verify whether international operations align with a 5,000-page operational handbook. A standard RAG pipeline (Top-K) frequently overlooks critical regional compliance variations because the regional rules are explicitly listed in an appendix while the general principles are in Chapter 1. Which retrieval upgrade resolves this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Transition to a Graph RAG or Hierarchical Agentic RAG system that structures explicitly mapped cross-references between chapters and appendices.

    Graph RAG maps explicit relationships between nodes, allowing traversal between main chapters and distant appendices. Simply changing distance metrics or increasing chunk size cannot capture these complex cross-references.

  21. Question 72 of 259A procurement agent needs to synthesize insights from thousands of legacy financial vendor receipts spread across 5 years. A standard vector search fails because receipts contain similar numeric codes but different contexts across fiscal quarters. Which advanced architecture resolves this complex multi-hop historical query problem?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy Graph RAG combined with Entity-Relation indexing and temporal metadata mapping.

    Graph RAG with temporal metadata resolves multi-hop queries by mapping semantic edges between entities across time. Simply increasing vector search results lacks the relational structure needed for complex chronological analysis.

  22. Question 73 of 259An enterprise data extraction agent frequently runs out of context window capacity while processing an enterprise software codebase because the full code of every inspected file is held permanently inside the conversation buffer. Which memory layout optimizes this workspace?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. A 'Workspace Virtualization' layout where raw code bodies are stored in an ephemeral key-value index while compact structural maps are maintained in the active prompt context.

    Workspace virtualization offloads raw code to an external index while keeping structural maps in the prompt. This optimizes context usage, whereas holding entire files in the buffer causes memory exhaustion.

  23. Question 74 of 259An autonomous DevOps agent operates using a ReAct framework. When tasked with fixing a broken build, it executes a tool command that returns a complex terminal error stack trace. Instead of parsing the log, the agent outputs a blank 'Thought:' string and crashes. How do you programmatically fortify this reasoning failure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Implement an input/output parsing interceptor that captures empty or anomalous agent cycles and substitutes an explicit system guiding prompt into the context window.

    Implementing an interceptor catches empty or anomalous outputs and injects an explicit system guiding prompt to force the model back on track. Options like increasing the context window or fine-tuning do not solve the immediate loop execution failure.

  24. Question 75 of 259An AI engineering team utilizes the Reflexion framework to optimize an agent's Python code generation tasks. How does the Reflexion framework fundamentally enhance output reliability compared to standard zero-shot code generation paths?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. It implements an evaluation loop where a critic module analyzes execution errors, writes a natural language critique, and inserts it into the context workspace for the next trial.

    Reflexion uses an evaluation loop where a critic module analyzes execution errors, writes a natural language critique, and stores it in the context for the next trial. It relies on self-evaluative linguistic loops, not inference-time weight modifications.

  25. Question 76 of 259You are designing a high-throughput, latency-critical automated financial trading agent. The system requires near-instantaneous access to transaction states and conversation parameters from the last 2 minutes, while occasionally querying a massive archive of corporate filings from 5 years ago. Which memory tiering layout is optimal?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. A dual-tier system mapping a high-speed in-memory Key-Value store (Short-Term) with an external indexed Vector Database (Long-Term).

    A dual-tier system provides the best balance, using an in-memory key-value store for instant state access and an external vector database for long-term semantic retrieval. Flat files lack speed, while continuous fine-tuning is computationally unfeasible.

  26. Question 77 of 259An autonomous operations agent is designed to execute multi-step database refactoring workflows. During execution, an external API tool suddenly reports that a target server cluster is offline. A resilient planning architecture should use which protocol to continue the task safely?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Dynamic Replanning via a closed-loop environmental evaluation mechanism.

    Dynamic replanning allows an agent to read unexpected runtime tool failures, invalidate historical sub-goals, and generate an alternative execution pathway on the fly. Static prompting or strict linear processing cannot adapt to unexpected environment changes.

  27. Question 78 of 259An architectural engineering agent is calculating load capacities for a bridge design. It needs to test multiple materials, evaluate stress limits at each juncture, and systematically discard entire structural setups if a safety threshold is violated. Which planning protocol allows this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Tree-of-Thoughts (ToT) using a Depth-First Search (DFS) or Breadth-First Search (BFS) evaluation mechanism.

    Tree-of-Thoughts allows an agent to evaluate discrete steps as tree nodes, using search algorithms like depth-first or breadth-first search to systematically prune failing paths. Linear prompting lacks the branching required to discard failing setups.

  28. Question 79 of 259An automated security agent monitors live network firewalls. It uses a vector database to query historical threat vector files. When a minor, non-threatening traffic spike occurs, the agent triggers an enterprise emergency alert because an identical spike happened during a massive database breach one year ago. What retrieval error is present?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. The vector retrieval scoring matrix lacks a time-decay metric, causing ancient historical data configurations to match current live telemetry scores equally.

    The vector retrieval scoring matrix lacks a time-decay metric, causing outdated historical data to match current telemetry scores equally. Without temporal weight adjustments, semantic searches treat old alerts as current system states, triggering false positives.

  29. Question 80 of 259When selecting a vector database index configuration for an autonomous agent performing real-time transaction monitoring based on incoming data triggers, which engineering trade-offs must be evaluated?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Search execution latency under high concurrent load queries versus precision retrieval recall metrics (Recall @ K).

    The core trade-off is evaluating search execution latency under high concurrent load against precision retrieval metrics like Recall@K. Selecting index models like HNSW versus IVF-PQ requires balancing search velocity with semantic retrieval accuracy.

  30. Question 81 of 259A medical diagnostic agent using a Chain-of-Thought (CoT) pattern needs to rule out rare conditions. The system continuously makes premature diagnoses because the first few steps of its reasoning trajectory create a confirmation bias echo chamber inside its own scratchpad. Which structural planning adjustment eliminates this trap?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Transition the planning structure to a Multi-Agent 'Physician-Critic' loop where a separate agent is explicitly prompted to invalidate the primary agent's hypotheses.

    Transitioning to a multi-agent loop with a separate critic forces an independent evaluation of the primary agent's hypotheses, successfully breaking the confirmation bias. Simply increasing temperature or adding static examples does not resolve the echo chamber.

  31. Question 82 of 259An enterprise legal agent is tasked with evaluating corporate contract compliance against 10,000 pages of internal policy guidelines. The engineering team deploys a standard Naive RAG pipeline (Top-K chunk retrieval). However, the agent consistently generates incomplete evaluations because the compliance rules require connecting legal clauses split across entirely distinct chapters. Which architecture resolves this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Graph RAG combined with cross-document entity indexing and multi-hop agentic retrieval.

    Graph RAG combined with cross-document entity indexing resolves this by mapping data as interconnected entities and explicit relational edges. This structured pipeline traverses hops between distant chapters, synthesizing context where naive chunk retrieval fails.

  32. Question 83 of 259You are deploying a customer relations agent that needs to maintain a personalized interaction style. The agent must recall long-term customer behavioral histories spanning years, while ensuring that the immediate chat history never exceeds 2,000 tokens to control API costs. Which memory combination optimizes this deployment?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. An external Vector DB utilizing semantic clustering for historical interaction summaries, paired with a rolling ConversationBufferWindowMemory wrapper.

    Using an external vector database paired with a rolling buffer window memory restricts immediate conversational costs to a hard token limit while retaining long-term data. Unoptimized retrieval pipelines or continuous fine-tuning fail to enforce token constraints efficiently.

  33. Question 84 of 259An enterprise agent is tasked with conducting automated market research. The team implements a single linear Chain-of-Thought (CoT) prompting path. During testing, if the model retrieves an inaccurate market share value in its very first reasoning step, the final report is completely corrupted. Which planning framework replaces CoT to solve this vulnerability?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Tree-of-Thoughts (ToT) integrated with an explicit path-evaluation and backtracking mechanism.

    Tree-of-Thoughts conceptualizes reasoning as a deliberate search over a tree of thoughts, evaluating intermediate path metrics to allow backtracking if an initial assumption proves unviable. Linear reasoning chains cannot recover from early errors, making ToT the required choice here.

  34. Question 85 of 259Which architectural design pattern illustrates a collaborative multi-agent planning paradigm where specialized agent personas challenge, critique, and iteratively refine each other's outputs to build a complex artifact?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Multi-Agent Debate / Interaction Frameworks (e.g., ChatDev, MetaGPT, or Autogen debate topologies).

    Multi-agent debate frameworks work because they assign distinct personas to actively critique and refine intermediate outputs, effectively mitigating single-model biases. A practical exam cue is to look for keywords like iterative refinement or specialized roles to quickly identify multi-agent topologies.

  35. Question 86 of 259A cybersecurity agent monitors live network traffic logs. It uses a vector database to fetch historic attack vectors. When a brief, non-threatening connection spike happens, the agent floods the dashboard with false 'Critical Threat' warnings because a similar spike occurred during a massive breach last year. What retrieval issue is present?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The retrieval scoring function lacks a time-weighted recency bias, causing historical anomalies to look identical to live system events.

    A time-weighted scoring function works because it prioritizes recent events, preventing historical anomalies from triggering false alerts in live monitoring. Distractors involving hardware corruption or massive context windows fail to address the core semantic similarity flaw.

  36. Question 87 of 259An agentic code-refactoring assistant runs out of context window capacity while processing a multi-file project workspace because the full code of every file it touches is kept in the conversation buffer. Which memory organization model optimizes this workspace? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. A 'Workspace Virtualization' model where raw code bodies are moved to an ephemeral key-value store, leaving only compact structural trees in the active context.

    Workspace virtualization works because it offloads raw code payloads to an external store while keeping structural trees in the context window. Brute-force compression or zero-shot guessing fails to maintain the dynamic readability required for complex refactoring.

  37. Question 88 of 259An enterprise data analytics agent needs to process a high-velocity stream of conversational feedback. The architecture demands a memory setup that maintains an active, updated summary of the long-term thematic trends while keeping the verbatim text of the last 5 turns clean. What is the tool for this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. ConversationSummaryBufferMemory.

    ConversationSummaryBufferMemory works because it acts as a hybrid manager, compressing older interactions into summaries while retaining verbatim recent turns. Simple buffer memory lacks summarization, and vector retrievers do not maintain conversational recency.

  38. Question 89 of 259A development team notices that their customer support agent performs well when retrieving policies located at the top or bottom of an uploaded handbook document, but frequently misses guidelines buried in the middle of the text payload. What is this phenomenon called, and how should it be countered? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Lost in the Middle' positional bias; counter by deploying an LLM re-ranker to reduce context bulk and position high-relevance chunks at the absolute boundaries of the prompt.

    The Lost in the Middle effect works because attention layers prioritize the absolute boundaries of the context window, ignoring central data. Re-ranking counters this by isolating critical chunks and deliberately relocating them to those high-attention boundaries.

  39. Question 90 of 259A development team deploys a corporate policy assistant using a RAG pipeline. Users notice that while the agent provides highly relevant answers for queries matching the middle sentences of sections, it routinely leaves out critical section titles and header definitions. What strategy fixes this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Implement a 'Sentence-Window Retrieval' strategy where child sentences are matched, but an expanded window (including parent headers) is served to the LLM.

    Sentence-window retrieval works by matching precise text chunks for high accuracy while returning a broader window that retains critical document headers. Removing capitalized words or shrinking overlaps only destroys semantic context and damages retrieval quality.

  40. Question 91 of 259An autonomous supply chain agent frequently breaks down when parsing invoices that list parts using irregular abbreviations. The team wants to use a ReAct framework but avoid modifying the base LLM weights. What approach ensures consistent parsing without context window bloat?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Implement a tool-use schema mapping irregular abbreviations to an external canonical data dictionary, intercepting the agent's action calls to resolve terms before parsing.

    Using an external data dictionary tool is correct because it acts as a non-parametric translation layer without consuming context window space. Injecting massive abbreviation lists into the prompt would bloat the context, while fine-tuning violates the requirement.

  41. Question 92 of 259When designing a high-frequency real-time automated data processing agent, what specific trade-offs must be evaluated when configuring an HNSW index versus a Flat IVF index in the vector memory tier?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Search latency under high concurrent load versus precision recall accuracy (Recall @ K).

    Evaluating search latency against recall accuracy is correct because HNSW prioritizes ultra-low search speed, while Flat IVF partitions data to balance speed and precision. For the exam, remember that vector index choices always represent a speed versus accuracy compromise.

  42. Question 93 of 259An autonomous financial analysis agent must process real-time market data. The system design requires a multi-step reasoning layout that systematically alternates between internal logical rationalization steps ('Thought') and target data tool queries ('Action'). Which framework matches this design?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. The ReAct (Reason + Act) paradigm.

    The ReAct framework explicitly structures agent operations by interleaving text-based reasoning steps (Thoughts) with target external tool execution blocks (Actions). Look for alternating reasoning and acting phases to quickly identify ReAct on the exam.

  43. Question 94 of 259Which design template illustrates a collaborative multi-agent planning framework where independent, specialized agent entities challenge, critique, and iteratively refine each other's outputs to build a complex software artifact?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Multi-Agent Debate and Interaction Topologies (e.g., ChatDev, MetaGPT, or Autogen debate loops).

    Multi-agent collaboration structures assign independent specialized personas, such as an engineer and a QA reviewer, to iteratively cross-examine, audit, and refine outputs. Single-agent loops lack the specialized cross-examination needed for complex artifact generation.

  44. Question 95 of 259An automated testing agent gets stuck in a critique loop: it identifies a syntax bug in its previous code block, but during the correction step, it generates a new script containing the identical error, wasting API tokens. What is the root cause of this failure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. The critique phase generated abstract negative feedback without providing actionable structural constraints or prescriptive guidance for the adjustment phase.

    If self-critiques simply output abstract phrases like 'this code is wrong' without diagnosing the cause or enforcing alternative syntax parameters, the model will slide back into its strongest parametric biases. Effective self-correction requires actionable feedback.

Study on mobile

Get CertPunch for iOS or Android.

Website sessions are saved in this browser tab. They do not transfer to the apps.

Scroll to Top