Choose your practice level
Choose experience for the scope of responsibility, then difficulty for the reasoning challenge. Filters narrow the existing questions; they do not change or remove the answers.
Fresher: fundamentals and beginner projects. Intermediate: implementation, debugging and optimization. Senior: architecture, scale, cost and technical decisions. Years are suggested study ranges, not eligibility rules; if you fall between ranges, choose by readiness. Difficulty remains an independent filter. These are editorial practice groupings, not employer ratings.
- Fresher (0–1 year): Build a five-document search demo. Trace a question to its supporting passage, explain chunk boundaries and verify that a citation supports the actual claim.
- Intermediate (2–5 years): Create reviewed relevance labels, calculate Recall@K and test identifier queries. Compare candidate retrieval with reranking and diagnose a missing-evidence case.
- Senior (5+ years): Design permission-aware retrieval and cache keys, index migration and deletion reconciliation. State freshness guarantees, fail-closed behaviour and rollout/rollback costs.
Showing 10 of 10 unique questions.
These are original practice questions, not questions reported from a particular employer. Every scenario below is hypothetical. Use the answers to understand the reasoning, then explain the decision in your own words and connect it to work you actually did.
How to practise
First answer aloud without reading. State the goal, assumptions, proposed approach, checks and trade-offs. Then compare your reasoning with the answer, tackle the follow-up and write down one gap to practise. Aim for a clear two-minute initial explanation; expand when asked. This timing is a practice suggestion, not an interview rule.
Role-based questions and detailed answers
How do you separate retrieval failure from generation failure?
Show answerHide answer: How do you separate retrieval failure from generation failure?
Answer: Inspect the retrieved passages before changing the prompt. If the required evidence is absent, investigate indexing, filtering, query handling and ranking. If the evidence is present but the answer is wrong, investigate context construction and generation. Evaluate the stages separately with known evidence cases so end-to-end scores do not hide where the system actually fails.
Hypothetical scenario: The answer omits a policy exception even though the source document contains it.
Follow-up: What trace would tell you whether the relevant passage reached the model?
Common mistake: Rewriting prompts without checking the retrieved context.
Worked example: For ‘Can contractors claim travel?’, save retrieved passage IDs, versions and the exact context sent to generation. If the contractor exception was absent from candidates, test indexing/query filters; if present in candidates but dropped from context, inspect reranking/packing. Only then test generation with a known-correct evidence bundle. This three-stage trace avoids blaming the model for a missing input.
What a strong answer demonstrates: Locate the first point at which required evidence disappears, then propose a test isolating that component.
How do you choose chunk boundaries?
Show answerHide answer: How do you choose chunk boundaries?
Answer: Start with document structure and the unit of information needed to answer questions. Preserve headings, source identity and necessary surrounding context. Test several strategies on representative queries, including facts crossing boundaries. Small chunks may lose meaning; large chunks may dilute retrieval and increase context cost. Choose from observed evidence coverage rather than a universal token-size rule.
Hypothetical scenario: A table heading defines the currency, but the retrieved chunk contains only numeric rows.
Follow-up: What metadata or boundary change would preserve the meaning?
Common mistake: Assuming a fixed chunk size works equally well for every document type.
Worked example: A table row says ‘30,000’, while its header says ‘annual allowance in INR’. Keep the header with the row or attach explicit metadata when chunking. Compare small and section-sized chunks on the same questions; inspect duplicated overlap, cross-boundary exceptions and context cost. There is no universal best chunk size independent of document structure and query needs.
table = {'heading': 'Annual allowance in INR', 'rows': ['Contractor: 30000', 'Employee: 50000']}
chunks = [
{'text': table['heading'] + '\n' + row, 'source_id': 'policy-17', 'version': 2}
for row in table['rows']
]
assert all('Annual allowance in INR' in chunk['text'] for chunk in chunks)
assert all(chunk['source_id'] == 'policy-17' for chunk in chunks)
# Preserve table meaning and provenance; evaluate boundaries on real queries.
What a strong answer demonstrates: Show one boundary failure and a measurable evidence-coverage check, not an unexplained token-size recommendation.
When might semantic search need lexical retrieval?
Show answerHide answer: When might semantic search need lexical retrieval?
Answer: Exact identifiers, product codes and uncommon names may require precise lexical matching that an embedding search does not reliably prioritize. Compare lexical and semantic candidates, or combine them using an evaluated ranking strategy. Keep query normalization explainable and test near-identical identifiers. A semantically similar passage can still be completely wrong for a specific reference number.
Hypothetical scenario: A user asks about policy AB-104, but retrieval returns the similarly worded policy AB-140.
Follow-up: Which test cases would expose identifier confusion?
Common mistake: Assuming semantic similarity guarantees an exact entity match.
Worked example: For policy AB-104, compare exact-code matching with embedding candidates for AB-140 and AB-104. Use a vetted identifier filter or evaluated lexical/semantic fusion, keeping original query text for diagnosis. Test punctuation, leading zeros and typos separately. If you combine rankings, do not add raw similarity scores from incompatible scales without justification.
What a strong answer demonstrates: Explain hybrid retrieval's purpose and evaluation, including a case where semantic similarity returns the wrong entity.
Why version the embedding model and index together?
Show answerHide answer: Why version the embedding model and index together?
Answer: Embeddings depend on the model and preprocessing used to create them. Mixing incompatible vectors or silently changing text normalization can make retrieval unreliable. Record model version, chunk strategy, source snapshot and index configuration. Rebuild or migrate deliberately, evaluate candidate retrieval and keep a rollback path rather than replacing query embeddings without coordinating the stored index.
Hypothetical scenario: A new query encoder is deployed while all stored document vectors still use the previous representation.
Follow-up: What compatibility evidence is needed before sharing an index?
Common mistake: Treating vectors from different embedding configurations as automatically interchangeable.
Worked example: Build index v2 beside v1 using the new encoder, preprocessing and source snapshot. Route test queries through matching query/document configurations, compare relevance and measure migration cost. Switch the serving pointer only after the candidate is ready; retain a compatible v1 path for rollback. Equal vector dimensions alone do not establish compatible semantic spaces.
What a strong answer demonstrates: Describe a coordinated migration with compatibility tests and a rollback boundary, not only a re-embedding command.
How do you evaluate retrieval independently?
Show answerHide answer: How do you evaluate retrieval independently?
Answer: Create queries with reviewed relevant passages or documents, allowing multiple valid evidence sources where appropriate. Measure whether needed evidence appears within the candidate budget and inspect difficult slices. Keep relevance judgements separate from generated answer quality. Explain limitations in the reference set; a passage absent from the annotations is not necessarily irrelevant.
Hypothetical scenario: Several policy sections answer the question, but the evaluation labels only one as relevant.
Follow-up: How could incomplete relevance labels distort your comparison?
Common mistake: Using answer fluency as the only retrieval metric.
Worked example: Use unique document IDs at a stated relevance unit. Suppose the reviewed relevant set is {policy-a, policy-b, policy-c, policy-d}; the top five results contain policy-a, policy-c and three irrelevant documents. Recall@5 = 2/4 = 0.50; Precision@5 = 2/5 = 0.40. Recall divides by all known relevant documents, not K. Average per-query recall over a defined evaluation set; handle zero-relevant queries separately and report incomplete judgments. Answer correctness, citation support and latency need separate evaluation.
def recall_at_k(relevant, ranked, k):
if k < 1:
raise ValueError('k must be positive')
relevant = set(relevant)
if not relevant:
return None # Handle unanswerable queries separately.
unique_ranked = list(dict.fromkeys(ranked))
return len(relevant & set(unique_ranked[:k])) / len(relevant)
relevant = {'policy-a', 'policy-b', 'policy-c', 'policy-d'}
ranked = ['policy-a', 'other-1', 'policy-c', 'other-2', 'other-3']
assert recall_at_k(relevant, ranked, 5) == 0.5
What a strong answer demonstrates: Calculate the denominator correctly, declare document-versus-chunk labels and explain why high retrieval recall does not prove a grounded answer.
What can reranking fix, and what can it not?
Show answerHide answer: What can reranking fix, and what can it not?
Answer: A reranker can improve the order of candidates it receives, potentially putting more useful evidence into limited context. It cannot recover a relevant passage that never entered that candidate set. Measure candidate recall before attributing gains or failures to reranking, and include its latency and cost when choosing how many candidates to retrieve and retain.
Hypothetical scenario: The correct document is filtered out before a reranker receives its top candidates.
Follow-up: Which earlier stage must change before reranking can help?
Common mistake: Adding a reranker as a universal solution to missing evidence.
Worked example: If a relevant passage is candidate 37 of 50, a reranker may move it into the final five. If it never enters the candidate set, reranking cannot recover it. Measure Recall@50 before final Recall@5, then record reranking latency and cost. Increase candidate count only if better coverage justifies the additional work under the request deadline.
What a strong answer demonstrates: Separate candidate recall from final ranking quality and make a budget-aware choice of candidate/context sizes.
Where should document permissions be enforced?
Show answerHide answer: Where should document permissions be enforced?
Answer: Apply trusted authorization before documents become model context and before snippets or citations are returned. Ensure retrieval filters derive from authenticated access rules, not user-provided labels. Recheck changing permissions and protect caches from cross-user reuse. A model instruction not to reveal secrets is insufficient once unauthorized information has already entered the request.
Hypothetical scenario: An employee searches a topic that exists in both public guidance and restricted compensation documents.
Follow-up: How would you test that caching cannot expose another user's evidence?
Common mistake: Filtering only the final answer after unauthorized passages were retrieved.
Worked example: Derive access filters from the authenticated principal and trusted ACLs, then check access before any snippet reaches the model or user. Include tenant, effective access scope and relevant policy/version state in cache isolation. Test user B after user A warmed a restricted answer. If authorization data is unavailable or revoked, fail closed rather than reusing cached context.
What a strong answer demonstrates: Cover retrieval, caches, citations and permission changes; explain leakage tests rather than relying on final-output redaction.
How should updates and deletions reach a RAG system?
Show answerHide answer: How should updates and deletions reach a RAG system?
Answer: Track source identity and version so ingestion can replace or remove the corresponding chunks. Reconcile indexing checkpoints with the source and monitor freshness, not only successful ingestion runs. Define how caches and citations handle removed material. Test partial failures because an update can otherwise leave old and new passages available together without clear version precedence.
Hypothetical scenario: A withdrawn policy remains searchable because the ingestion job only adds new documents.
Follow-up: What reconciliation detects stale chunks after a missed deletion event?
Common mistake: Assuming an append-only ingestion pipeline keeps the index current.
Worked example: A deletion for source 81 should remove every chunk/version that is no longer allowed and invalidate derived answers. Use tombstones/version ordering so a delayed upsert cannot resurrect it. Reconcile source inventory against index IDs after missed events. Where deletion indexing is asynchronous, block disallowed sources at serving until removal is confirmed and monitor the lag.
What a strong answer demonstrates: State the consistency/freshness contract and recovery for missed or out-of-order events, including caches.
How do you answer when evidence is missing or contradictory?
Show answerHide answer: How do you answer when evidence is missing or contradictory?
Answer: Do not force a single confident answer. Explain what the available sources establish, identify the conflict or missing detail and ask for clarification where useful. Apply an explicit version or authority rule only when the product defines one. Evaluate these cases deliberately; appropriate abstention is a supported outcome, not automatically a failure to answer.
Hypothetical scenario: Two documents give different application deadlines and neither is marked as superseded.
Follow-up: What evidence would justify preferring one deadline?
Common mistake: Letting the model invent an authority rule to hide a source conflict.
Worked example: Two dated policies disagree on eligibility but neither is marked authoritative. Return the disagreement with both passage references and ask for the governing version. If the product defines an approved-source precedence rule, apply it outside the prompt and expose the chosen version. Choosing whichever text ranks first silently invents policy authority.
What a strong answer demonstrates: Distinguish missing evidence from conflict and specify what additional fact would allow a justified answer.
What makes citations useful rather than decorative?
Show answerHide answer: What makes citations useful rather than decorative?
Answer: A citation should point to the actual supporting source and, where possible, the specific passage and version. Check that each important claim is supported, not merely that a link exists. Retain source identifiers through retrieval and generation rather than asking the model to invent URLs. Measure citation correctness separately from answer completeness and response speed.
Hypothetical scenario: An answer links to the right document but cites a paragraph unrelated to its central claim.
Follow-up: How would you test claim-level support without rewarding irrelevant links?
Common mistake: Counting the number of citations as evidence of grounding quality.
Worked example: Store a mapping from allowed citation IDs to source URL, version and passage. Validate generated citation IDs against that mapping and inspect whether the cited text supports each important claim. For three supported claims out of four, linking a document four times does not repair the unsupported claim. A URL's existence is not an entailment check.
What a strong answer demonstrates: Demonstrate claim-level support and source identity without letting the model fabricate destination URLs.
Turn practice into evidence
Build a small policy-search corpus with identifiers, document versions and access labels. Prepare queries with known supporting passages, missing answers and contradictory versions. Trace retrieval, reranking and generation separately; demonstrate that a deleted or unauthorized document cannot become answer context.
Score each response informally: 0 if you cannot explain it, 1 for a definition, 2 for an approach with checks, and 3 for justified trade-offs plus a failure-recovery plan. This is a self-study rubric, not a validated hiring assessment. Revisit weak answers and never invent project outcomes or experience.
Career roadmap and related jobs
Build the underlying skills with the RAG Engineer career guide. For a shorter starting point, read AI interview answer frameworks.
Explore relevant live jobs. Listings are filtered by RAG and can include adjacent roles. Read the employer's requirements and original posting before applying. Use one listing to select the questions most relevant to its responsibilities.
Methodology
Editorial synthesis of cited sourcesAI-assisted original educational practice material. These are not actual employer interview questions, reported interview experiences or hiring guarantees. Answers, hypothetical scenarios, follow-ups and self-assessment advice are original editorial synthesis. Official Google references support background concepts, not endorsements of these answers. Related job recommendations use role-title aliases and, for specialist roles, primary specialization checks. Recommendations are a limited sample; adjacent roles may appear and availability changes. References checked 17 October 2026.
Read our editorial and research policy →Worked examples are original, hypothetical learning exercises, not employer results or production-ready implementations. Code uses the Python standard library; test and adapt it before real use.
Sources
- RAG Engine overview
Google Cloud · Checked 17 October 2026
- Structured outputs
Google AI for Developers · Checked 17 October 2026
- Google Cloud: retrieval recall and precision at K
Google