Hard AI Engineer (LLM & Generative AI) questions
210 questions · 20 points each for a correct first answer.
- 1.Injected instructions in a web pageguardrails, security, agentshard
- 2.Why long contexts eat GPU memoryllm-serving, transformershard
- 3.Stuffing 100 chunks into the promptrag, context-managementhard
- 4.What LoRA trainsfine-tuning, lorahard
- 5.Shipping a prompt change safelyevaluation, prompt-designhard
- 6.Agent stuck in a loopagents, reliabilityhard
- 7.Upgrading the embedding modelembeddings, vector-searchhard
- 8.What streaming improveslatency, llm-servinghard
- 9.Sizing the KV cachekv-cache, transformers, deploymenthard
- 10.Why attention divides by sqrt(d_k)attention, transformershard
- 11.What the causal mask preventsattention, transformershard
- 12.Counting LoRA parameterslora, fine-tuninghard
- 13.Where generation time goeslatency, deploymenthard
- 14.Estimating response timelatencyhard
- 15.Temperature 0 is not deterministicsampling, llm-basicshard
- 16.Counting letters in a wordtokenization, tool-callinghard
- 17.Data leaking through image linksprompt-injection, securityhard
- 18.A judge with 90% agreementllm-as-judge, evaluationhard
- 19.Computing nDCG at 3retrieval-metrics, evaluationhard
- 20.Is a 4-point gain realevaluation, statisticshard
- 21.When a tool call failsagents, tool-callinghard
- 22.A suspicious third-party MCP servermcp, prompt-injection, securityhard
- 23.Budgeting the context windowcontext-window, raghard
- 24.How speculative decoding helpsinference, latencyhard
- 25.Continuous batching in servingdeployment, inferencehard
- 26.Serving a mixture-of-experts modelinference, deploymenthard
- 27.How many results to rerankreranking, raghard
- 28.Adding BM25 and cosine scoreshybrid-search, bm25hard
- 29.Fine-tuned model scores too wellfine-tuning, evaluationhard
- 30.Field order in an output schemastructured-output, prompt-designhard
- 31.One failure in Promise.alljavascript, reliabilityhard
- 32.Jailbreaks spread across turnsjailbreaks, guardrailshard
- 33.Ten steps at 95 percent eachai-agents, agentshard
- 34.Reliability across three runsai-agents, agentshard
- 35.Tool call cut off mid-argumentsai-agents, tool-callinghard
- 36.Where to enforce a refund capai-agents, tool-design, agentshard
- 37.Three risky abilities togetherai-agents, agentshard
- 38.Cost of one agent taskai-agents, agentshard
- 39.An MCP server that breaks on logsai-agents, mcphard
- 40.Trusting a readOnly hintai-agents, mcphard
- 41.A tool that changed after approvalai-agents, mcphard
- 42.Calling tools from codeai-agents, tool-calling, context-managementhard
- 43.Is multi-agent worth itai-agents, agentshard
- 44.Tests passed, says the agentai-agents, agentshard
- 45.Agent changes the tests insteadai-agents, agentshard
- 46.Retries at three layersai-agents, tool-designhard
- 47.Cheaper per call or per successai-agents, agentshard
- 48.Passing the client token onwardai-agents, mcphard
- 49.Users approving everythingai-agents, agentshard
- 50.An agent with a shell toolai-agents, agentshard
- 51.Noise between repeated eval runsai-agents, agentshard
- 52.Testing an agent without live APIsai-agents, agentshard
- 53.Cache misses in an agent loopai-agents, context-managementhard
- 54.Debugging through a frameworkai-agents, agentshard
- 55.Input tokens across a long loopai-agents, context-managementhard
- 56.Savings from caching a long prefixai-agents, context-managementhard
- 57.A safety check without extra delayai-agents, agentshard
- 58.Personal data in agent memoryai-agents, context-managementhard
- 59.Old memory, new addressai-agents, context-managementhard
- 60.Pausing to check policy mid-taskai-agents, agentshard
- 61.Screen clicking or an APIai-agents, agentshard
- 62.Cutting cost on easy agent stepsai-agents, agentshard
- 63.Starting tools before the model asksai-agents, tool-callinghard
- 64.A subagent summary drops the key factai-agents, agents, context-managementhard
- 65.A support ticket that gives ordersai-agents, agentshard
- 66.A rule forgotten after compactionai-agents, context-managementhard
- 67.Is the agent cheaper than staffai-agents, agentshard
- 68.Blocking a bad agent changeai-agents, agentshard
- 69.An agent asking for full Drive accessai-agents, agentshard
- 70.The same email sent three timesai-agents, tool-designhard
- 71.What an approval prompt should showai-agents, agentshard
- 72.Traces full of customer dataai-agents, agentshard
- 73.Agent drifts from the goalai-agents, agents, context-managementhard
- 74.Fewer key-value headsllm-fundamentals, llm-basicshard
- 75.Training data for a 70B modelllm-fundamentals, llm-basicshard
- 76.Estimating training computellm-fundamentals, llm-basicshard
- 77.Upper limit on tokens per secondllm-fundamentals, latency-optimizationhard
- 78.Calculating perplexityllm-fundamentals, llm-basicshard
- 79.Odd replies from a self-hosted modelllm-fundamentals, llm-basicshard
- 80.A suspiciously high benchmark scorellm-fundamentals, model-selectionhard
- 81.Choosing a quantization levelllm-fundamentals, model-selectionhard
- 82.Different answers at the same settingsllm-fundamentals, samplinghard
- 83.A 1M-token window in practicellm-fundamentals, context-windowhard
- 84.Probability of a two-token labelllm-fundamentals, logprobshard
- 85.Weak replies in a regional languagellm-fundamentals, model-selectionhard
- 86.Tuned model became too wordyllm-fundamentals, llm-basicshard
- 87.Why training uses bfloat16llm-fundamentals, llm-basicshard
- 88.Training on its own outputsllm-fundamentals, llm-basicshard
- 89.Entropy of a next-token choicellm-fundamentals, samplinghard
- 90.Temperature and top-p togetherllm-fundamentals, sampling-parametershard
- 91.Schema mode still returned bad JSONllm-fundamentals, api-parametershard
- 92.Sampling ten code solutionsllm-fundamentals, samplinghard
- 93.Finishing a reply that was cut offllm-fundamentals, api-parametershard
- 94.The bot forgets its rulesllm-fundamentals, context-windowhard
- 95.Summarise or cut old turnsllm-fundamentals, context-windowhard
- 96.Showing text before checks finishllm-fundamentals, api-parametershard
- 97.Every request waits through retriesllm-fundamentals, rate-limitshard
- 98.A fallback model that misbehavesllm-fundamentals, model-selectionhard
- 99.How many past turns fitllm-fundamentals, context-windowhard
- 100.Penalties that break JSONllm-fundamentals, sampling-parametershard
- 101.Night job slows the live appllm-fundamentals, rate-limitshard
- 102.Billed for a request that timed outllm-fundamentals, token-costhard
- 103.Answers cut after one paragraphllm-fundamentals, api-parametershard
- 104.First token on a 100k promptllm-fundamentals, latency-optimizationhard
- 105.Requests every eight minutesllm-fundamentals, prompt-cachinghard
- 106.GPUs needed for peak trafficllm-fundamentals, model-selectionhard
- 107.Latency for a voice assistantllm-fundamentals, latency-optimization, model-selectionhard
- 108.Is fine-tuning a small model worth itllm-fundamentals, cost-optimisation, model-selectionhard
- 109.Failover that breaks residency rulesllm-fundamentals, model-selectionhard
- 110.Cheaper per token, but a bigger billllm-fundamentals, model-migration, token-costhard
- 111.Input cost when most tokens are cachedllm-fundamentals, prompt-cachinghard
- 112.Testing a new model on live trafficllm-fundamentals, model-migrationhard
- 113.Caching and time to first tokenllm-fundamentals, prompt-caching, latency-optimizationhard
- 114.Sending a backup requestllm-fundamentals, latency-optimizationhard
- 115.A new model that refuses too oftenllm-fundamentals, model-selection, model-migrationhard
- 116.Twenty reviews in one requestllm-fundamentals, cost-optimisationhard
- 117.Fast in testing, slow at launchllm-fundamentals, latency-optimizationhard
- 118.The full cost of running your ownllm-fundamentals, model-selection, cost-optimisationhard
- 119.IVF index after a new languagerag, vector-searchhard
- 120.A filter that matches 0.1% of datarag, vector-search, vector-databaseshard
- 121.All similarity scores look highrag, embeddingshard
- 122.One similarity cut-off for all queriesrag, vector-searchhard
- 123.One chunk in every result listrag, vector-search, chunkinghard
- 124.How many candidates to rescorerag, vector-databases, quantizationhard
- 125.Embeddings and negated statementsrag, embeddings, rerankinghard
- 126.Duplicates during contrastive trainingrag, embeddings, fine-tuninghard
- 127.Hinglish queries in Latin scriptrag, embeddingshard
- 128.Inner product with unnormalised vectorsrag, vector-searchhard
- 129.Storage cost of token-level vectorsrag, vector-databaseshard
- 130.Choosing a vector index configurationrag, vector-search, evaluationhard
- 131.One vector for a 40-page PDFrag, embeddings, chunkinghard
- 132.A billion vectors on a budgetrag, vector-databaseshard
- 133.Top results are copies of one pagerag, vector-databases, chunkinghard
- 134.Answer split across two chunksrag, chunkinghard
- 135.When HyDE makes retrieval worserag, query-transformationhard
- 136.Questions about the whole corpusrag, graph-raghard
- 137.Garbled chunks from two-column PDFsrag, document-parsing, chunkinghard
- 138.Cost of context notes per chunkrag, chunkinghard
- 139.Reranker misses facts at the endrag, reranking, chunkinghard
- 140.MMR set too far towards diversityrag, vector-searchhard
- 141.Rewritten queries change the meaningrag, query-transformation, hybrid-searchhard
- 142.Setting the balance in hybrid searchrag, hybrid-search, evaluationhard
- 143.A question that needs two hopsrag, agentic-raghard
- 144.Relative dates break extracted filtersrag, query-transformationhard
- 145.Re-runs create duplicate chunksrag, vector-databaseshard
- 146.Parent retrieval floods the promptrag, chunkinghard
- 147.RAG gets totals wrongrag, query-transformationhard
- 148.Generating questions for each chunkrag, query-transformation, chunkinghard
- 149.Moved teams, still sees old documentsrag, rag-securityhard
- 150.Leaking data through an image linkrag, rag-securityhard
- 151.Cached answers cross a permission linerag, rag-security, rag-operationshard
- 152.Perfect faithfulness, unhappy usersrag, evaluationhard
- 153.Suspiciously high eval scoresrag, evaluationhard
- 154.Whole corpus in context versus RAGrag, context-window, rag-operationshard
- 155.A 4-point gain on 50 questionsrag, evaluationhard
- 156.Cache serves an outdated policyrag, rag-operationshard
- 157.False facts planted in a wikirag, rag-securityhard
- 158.Citations to chunks that do not existrag, citationshard
- 159.Better offline, flat onlinerag, evaluationhard
- 160.Data that must stay in the countryrag, rag-securityhard
- 161.List questions return partial listsrag, chunking, groundinghard
- 162.Faithful answer, wrong documentrag, evaluationhard
- 163.Extending RoPE by position interpolationtransformers, positional-encoding, context-windowhard
- 164.Why YaRN scales frequencies unevenlytransformers, positional-encoding, context-windowhard
- 165.Decoder with no positional encodingtransformers, positional-encoding, attentionhard
- 166.Sliding cache that drops the first tokenstransformers, attention, inferencehard
- 167.Reach of sliding-window attentiontransformers, attention, context-windowhard
- 168.Subtracting the max in softmaxtransformers, attentionhard
- 169.NaNs from a fully masked rowtransformers, attentionhard
- 170.Tokens that make the model behave oddlytransformers, tokenization, embeddingshard
- 171.Prompt that ends with a spacetransformers, tokenization, promptinghard
- 172.Changing the number of headstransformers, attentionhard
- 173.Left padding with absolute positionstransformers, positional-encoding, inferencehard
- 174.Two BOS tokens at the starttransformers, tokenizationhard
- 175.Broken characters while streamingtransformers, tokenization, inferencehard
- 176.What FSDP and ZeRO-3 shardtransformers, traininghard
- 177.Loss spike in a long training runtransformers, traininghard
- 178.RLHF model becomes wordytransformers, rlhf, fine-tuninghard
- 179.Raising beta in DPOtransformers, rlhf, fine-tuninghard
- 180.Doubling LoRA rank with alpha fixedtransformers, lora, fine-tuninghard
- 181.Merge or keep LoRA adapters separatetransformers, lora, inferencehard
- 182.Teaching new facts by fine-tuningtransformers, fine-tuning, raghard
- 183.Gradients vanish in fp16 trainingtransformers, traininghard
- 184.Running out of fresh training datatransformers, training, scaling-lawshard
- 185.Where to place tensor parallelismtransformers, traininghard
- 186.Reducing the pipeline bubbletransformers, traininghard
- 187.Token probabilities after RLHFtransformers, rlhf, evaluationhard
- 188.Fine-tuned model never stops talkingtransformers, fine-tuning, tokenizationhard
- 189.Training past compute-optimaltransformers, scaling-laws, traininghard
- 190.Sizing GPUs for an MoE modeltransformers, mixture-of-experts, inferencehard
- 191.Tokens gained per speculative steptransformers, inference, decodinghard
- 192.Greedy decoding stuck in a looptransformers, decodinghard
- 193.High temperature combined with top-ptransformers, decodinghard
- 194.Outliers in int8 activation quantisationtransformers, quantization, inferencehard
- 195.Switching the KV cache to FP8transformers, inference, quantizationhard
- 196.Field order in structured outputtransformers, structured-output, decodinghard
- 197.Long prompts slowing other userstransformers, inferencehard
- 198.JSON parse errors on long outputstransformers, structured-output, decodinghard
- 199.Reasoning model for simple extractiontransformers, reasoning, inferencehard
- 200.Beam search prefers short outputstransformers, decodinghard
- 201.What induction heads dotransformers, interpretability, in-context-learninghard
- 202.Using attention maps as explanationstransformers, interpretabilityhard
- 203.Ordering prompts for cache hitstransformers, inferencehard
- 204.GPU at low utilisation during decodingtransformers, inferencehard
- 205.Repetition penalty and generated codetransformers, decodinghard
- 206.Passing the needle test is not enoughtransformers, context-window, evaluationhard
- 207.Steering a model through its activationstransformers, interpretabilityhard
- 208.State-space models versus attentiontransformers, transformer-architecturehard
- 209.Why prompt injection is hard to fixtransformers, security, promptinghard
- 210.Adding domain tokens to a tokenizertransformers, tokenization, embeddingshard