Top 30 Generative ai Interview Questions and Answers
30 multiple-choice questions on Generative ai, drawn from 30 bites out of the 69 tagged Generative ai on Tezvyn. Answer them here or read straight down. Every question carries the correct option, why it is correct, and a link to the bite it came from.
30 questions. Pick an answer, or open “Show the answer” to read it.
Answers are graded in your browser. Nothing is saved, and no XP or streak is earned here. The app keeps score.
Question 1 of 30
For which task would a Causal Language Model be the most suitable choice?
Show the answer
Answer: c · Extending a partial sentence into a complete, coherent paragraph
Causal Language Models are designed for open-ended text generation, predicting the next word based only on preceding words, making them ideal for continuing or extending text. Tasks like sentiment analysis, information extraction, or summarization typically require understanding the entire input, which is a limitation for CLMs.
Read the full bite: Causal Language Modeling: The Autocomplete Engine
Question 2 of 30
Which scenario most clearly demonstrates the value of prompt engineering?
Show the answer
Answer: b · Generating a consistent series of structured product descriptions for an e-commerce platform.
Prompt engineering is essential for tasks requiring reliable, repeatable, and specific outputs, such as generating consistent content for an application. Casual brainstorming or one-off requests do not typically require the detailed guidance that prompt engineering provides.
Read the full bite: Prompt Engineering: Guiding LLMs to Better Answers
Question 3 of 30
When is zero-shot prompting the most appropriate technique to use?
Show the answer
Answer: d · When performing a simple sentiment analysis on a product review.
Zero-shot prompting is ideal for simple, common tasks like sentiment analysis that leverage the model's pre-existing knowledge without needing examples. Tasks requiring new, specific formatting rules (option A) are generally too novel for zero-shot and would likely require examples.
Question 4 of 30
In which situation should you avoid few-shot prompting?
Show the answer
Answer: d · A clearly described one-sentence task is running near the model's token limit
The card states that few-shot prompting should be avoided when a zero-shot instruction is sufficient and when the context window is nearly full, because examples then add cost and bias without benefit. Distractor D describes a valid use case, as adapting niche style without retraining is exactly where few-shot prompting excels.
Question 5 of 30
For complex reasoning tasks, what is the main benefit of using self-consistency over standard greedy decoding in LLMs?
Show the answer
Answer: d · It enables the model to overcome early reasoning errors by exploring multiple solution paths and selecting the most consistent outcome.
Self-consistency's primary benefit is to prevent the model from getting 'locked into a flawed reasoning path early on' by generating and evaluating a diverse set of reasoning paths, then selecting the most frequent answer. Option C is incorrect because self-consistency samples a 'diverse set' of paths, not an exhaustive search, and does not guarantee the 'absolute optimal solution' but rather a more robust one.
Read the full bite: Self-Consistency: Majority Rules for LLM Reasoning
Question 6 of 30
Which scenario best illustrates the primary advantage of using the ReAct framework for an LLM?
Show the answer
Answer: c · Answering a question that requires current, real-world data.
The ReAct framework is designed for tasks requiring information outside the model's training data or interaction with the world, making it ideal for answering questions with current, real-world data. Tasks like creative writing, summarization, or purely internal logical puzzles do not leverage ReAct's core benefit of external interaction and would incur unnecessary overhead.
Read the full bite: ReAct: Teaching LLMs to Think, Act, and Observe
Question 7 of 30
What is the primary objective of Supervised Fine-Tuning (SFT) for a pre-trained base Large Language Model (LLM)?
Show the answer
Answer: c · To adapt the model to follow instructions and engage in helpful, conversational interactions.
The card explains that SFT exists to transform a knowledgeable but unhelpful base model into a 'helpful, instruction-following assistant' by teaching it conversational skills. It explicitly states that SFT is not for teaching new domain-specific knowledge.
Read the full bite: Supervised Fine-Tuning (SFT): Teaching a Model to Chat
Question 8 of 30
A developer needs to adapt a large foundation model for a specific task using limited computational resources. Which method is most appropriate?
Show the answer
Answer: a · Parameter-Efficient Fine-Tuning (PEFT)
PEFT is specifically designed to adapt large models for specific tasks on a budget by freezing most of the original model and only training a small number of new parameters. Full fine-tuning (B) is too resource-intensive for limited hardware, and training a new model from scratch (D) is even more demanding and inefficient for adapting an existing foundation model.
Read the full bite: PEFT: Fine-Tune Large Models on a Budget
Question 9 of 30
Which statement accurately describes a key outcome of instruction fine-tuning for a base LLM?
Show the answer
Answer: d · It teaches the model to generate responses that align with user intent and specific task formats.
Instruction fine-tuning is designed to align the model's behavior with user intent, teaching it to follow directions and produce compliant, helpful responses in specific formats. The card explicitly states that it does not inject new factual knowledge; rather, it teaches conversational style and format.
Read the full bite: Instruction Fine-Tuning: Teaching LLMs to Follow Orders
Question 10 of 30
For which task would a Reward Model likely be considered an inefficient or unnecessary approach?
Show the answer
Answer: d · Fine-tuning a code generation model to produce executable and bug-free code.
The card explicitly states that reward modeling should be avoided when a clear, objective, and cheaper metric exists, citing code executability as an example. The other options involve subjective qualities like helpfulness, creativity, or ethics, for which reward models are specifically designed.
Read the full bite: Reward Modeling: Teaching an LLM What 'Good' Means
Question 11 of 30
Which statement accurately distinguishes the forward and reverse processes in a denoising diffusion model?
Show the answer
Answer: b · The forward process is a fixed Markov chain that gradually adds Gaussian noise, while the reverse process uses a learned network to iteratively denoise samples.
The forward process is fixed and gradually adds Gaussian noise over many steps, whereas the reverse process is learned and iteratively denoises random noise back into data. Option D is wrong because the forward process is not learned and generation is not single-step, and Option C incorrectly swaps the fixed and learned roles while wrongly assuming a deterministic reverse path.
Read the full bite: Explain Denoising Diffusion models and forward/reverse processes.
Question 12 of 30
When denoising in Stable Diffusion, how do text embeddings primarily influence the U-Net's intermediate feature maps?
Show the answer
Answer: b · Image features act as Query while text embeddings provide Key and Value in cross-attention layers throughout the U-Net
Text embeddings condition the U-Net through cross-attention layers where image-derived Queries attend to text-derived Keys and Values at multiple resolutions, not just at the input or bottleneck. Option D reflects the common misconception that text is concatenated to the latent noise, while option A incorrectly describes the mechanism as self-attention.
Read the full bite: How does text guide Stable Diffusion via U-Net cross-attention?
Question 13 of 30
Which scenario best illustrates a situation where Graph RAG provides a distinct advantage over traditional RAG?
Show the answer
Answer: d · Synthesizing an answer that requires understanding multi-hop connections between genes, diseases, and drug compounds.
Graph RAG excels in scenarios requiring the understanding of explicit relationships and multi-hop connections between entities, such as in drug discovery, where it leverages a structured knowledge graph. Traditional RAG is more suited for retrieving information from unstructured text or for simple fact extraction, as described in the other options.
Read the full bite: Graph RAG: Answering Questions with Connected Facts
Question 14 of 30
What is the fundamental mechanism generative inpainting uses to fill masked areas in an image?
Show the answer
Answer: a · It analyzes surrounding context to generate entirely new, semantically consistent pixels.
Generative inpainting's core mechanism is to generate entirely new, semantically consistent pixels based on the surrounding image context, rather than just cloning or averaging existing pixels. It does not recover original data, as it fabricates new content.
Read the full bite: Generative Inpainting: Filling in the Blanks with AI
Question 15 of 30
Which of the following best describes a fundamental limitation of current text-to-image models?
Show the answer
Answer: c · They struggle with tasks demanding precise logical consistency or accurate object enumeration.
The card explicitly states that these models 'struggle with rendering legible text, counting objects correctly' and 'don't truly understand prompts,' indicating a limitation in logical consistency. Option D is incorrect because the card clarifies it 'is not a tool for retrieving existing images; it generates new ones.'
Read the full bite: Text-to-Image Synthesis: From Prompt to Picture
Question 16 of 30
Which characteristic most directly indicates a generative model is experiencing mode collapse?
Show the answer
Answer: d · The model produces a narrow range of similar outputs, despite some appearing very convincing.
Mode collapse is characterized by the generator producing a limited set of outputs, even if those specific outputs are high quality, failing to capture the full data distribution. Option A is incorrect because the generator might minimize its loss for the few modes it produces, not necessarily see a continuous increase.
Read the full bite: Mode Collapse: When Your AI Gets Stuck in a Rut
Question 17 of 30
Why is Fréchet Inception Distance (FID) preferred over pixel-by-pixel comparisons for evaluating generative image models?
Show the answer
Answer: c · It captures the high-level semantic features and overall realism of image distributions.
FID is preferred because it captures high-level semantic features and overall realism, which pixel-by-pixel comparisons fail to do effectively. The card explicitly states that FID evaluates a distribution, not single images, meaning it does not guarantee the quality of every individual generated image.
Read the full bite: Fréchet Inception Distance (FID): Grading AI Art
Question 18 of 30
What best characterizes a Latent Diffusion Model (LDM)?
Show the answer
Answer: c · A specific architectural variant within the family of diffusion models.
The card explicitly defines an LDM as "a diffusion model architecture" and "This specific architecture". While LDMs operate in a latent space, they are a type of diffusion model, not a method for optimizing variational autoencoders.
Question 19 of 30
What is the fundamental purpose of a joint embedding space in AI?
Show the answer
Answer: d · To map diverse data types into a common semantic space where conceptual similarity is quantifiable.
A joint embedding space's core purpose is to represent different data types in a shared coordinate system where their semantic similarity can be measured. Option B is incorrect because the card explicitly states it's not for perfect, lossless translation.
Read the full bite: Joint Embedding Space: A Rosetta Stone for AI
Question 20 of 30
For which task would multimodal fusion be most essential for achieving a comprehensive and nuanced understanding?
Show the answer
Answer: d · Answering a question about the content of an image, given both the image and a natural language question.
Multimodal fusion is critical for tasks like Visual Question Answering (VQA), where understanding requires combining information from distinct modalities like images and text. The other options are primarily unimodal tasks that can be effectively addressed using a single data type.
Read the full bite: Multimodal Fusion: Combining Senses for AI
Question 21 of 30
What fundamental capability distinguishes a Large Multimodal Model (LMM) from combining separate, specialized AI models for text, image, and audio?
Show the answer
Answer: d · LMMs learn a shared conceptual understanding that links information across different data types.
The card states an LMM is a 'single neural network trained to understand the relationships between different types of data' and 'learns a shared conceptual space' to reason across modalities. Option B is incorrect because the card explicitly states that for purely text-based tasks, a standard LLM is often more efficient and sufficient.
Read the full bite: Large Multimodal Models (LMMs): Beyond Text
Question 22 of 30
What is the primary advantage of converting raw audio into a spectrogram for AI models?
Show the answer
Answer: c · It transforms audio into a visual format that explicitly displays frequency content over time, making it suitable for image-processing AI.
The core purpose of a spectrogram is to convert the rich, hidden frequency information of audio into a visual, time-frequency representation, which is ideal for AI models that excel at image processing, such as CNNs. Option D describes the primary information found in a raw audio waveform, not a spectrogram, and the card states that raw waveforms might be better when precise timing of amplitude peaks is crucial.
Read the full bite: Audio Spectrograms: Turning Sound into Images for AI
Question 23 of 30
Which of the following best describes the fundamental operation of a Text-to-Speech (TTS) system?
Show the answer
Answer: b · Converting written language into an audible, artificially generated voice.
A Text-to-Speech (TTS) system's core function is to take written text and transform it into artificial human speech, as described in option B. Option C describes speech recognition, which the card explicitly states is the reverse process and not what TTS does.
Read the full bite: Text-to-Speech (TTS): Turning Text into Spoken Audio
Question 24 of 30
What is the primary innovation in BLIP's approach to pre-training versatile vision-language models from noisy web data?
Show the answer
Answer: c · It uses a self-training mechanism with a captioner to generate new captions and a filter to select the most relevant image-text pairs.
BLIP's core innovation is its self-training mechanism, which uses a captioner to generate synthetic captions and a filter to select high-quality image-text pairs from noisy web data. This allows it to automatically create a clean dataset, unlike manual annotation (A).
Read the full bite: BLIP: Bootstrapping Better Vision-Language Models
Question 25 of 30
Which limitation significantly hinders current text-to-video models from being widely adopted for professional, high-fidelity video production?
Show the answer
Answer: d · Their struggle to maintain consistent object appearance and temporal flow across extended video sequences.
The card explicitly states that current models "struggle with maintaining temporal consistency—ensuring a character or object looks identical across many frames and scenes," leading to "flickering or morphing artifacts" that make them unsuitable for professional work. While some post-production might be needed, the core limitation for professional adoption is the inherent inconsistency in the generated output, not primarily the need for manual editing to achieve basic quality.
Read the full bite: Text-to-Video Generation: From Prompt to Picture Show
Question 26 of 30
For which scenario is human evaluation most appropriate when assessing an AI model's performance?
Show the answer
Answer: c · To establish a "ground truth" for subjective qualities like coherence and relevance.
The card emphasizes that human evaluation is crucial for capturing subjective qualities like coherence and relevance, which automated metrics cannot accurately measure, thus providing a "ground truth." Other options describe scenarios where human evaluation is explicitly stated as impractical due to its cost and lack of scalability.
Read the full bite: Human Evaluation: Judging AI When Metrics Aren't Enough
Question 27 of 30
A generative model creates individually clear images, but all belong to one narrow class. How would its Inception Score likely be affected?
Show the answer
Answer: c · The Inception Score would be low due to insufficient diversity, despite high individual image quality.
The Inception Score evaluates both the quality (distinctness) and diversity of generated images. While the model excels in quality, its lack of diversity by generating images from only one narrow class would significantly lower its overall score, as explicitly stated in the card's canonical example. Options focusing solely on individual image quality miss the critical diversity component.
Read the full bite: Inception Score: Judging AI Art for Quality and Variety
Question 28 of 30
For which scenario is LLM-as-a-Judge most appropriate?
Show the answer
Answer: b · Assessing the creativity and coherence of a chatbot's open-ended responses.
The card states LLM-as-a-Judge is for "evaluating tasks where the definition of 'good' is complex and subjective," specifically listing "chatbot helpfulness, summarization quality, creative writing." It explicitly advises against using it for "objective, computable correct answers like math problems or code execution," which rules out options A and C. Option D is also an objective performance metric, not a subjective content evaluation.
Read the full bite: LLM-as-a-Judge: Using Models to Grade Models
Question 29 of 30
Why is LLM Red Teaming considered essential for AI systems, beyond traditional security practices?
Show the answer
Answer: d · It specifically targets and identifies novel, model-specific vulnerabilities that traditional tools miss.
The card states that LLM Red Teaming was created to address "unique, model-specific vulnerabilities" and "new classes of risks that standard security tools were not designed to find." Distractor B focuses on general functionality and accuracy, which is not the primary security-focused purpose of red teaming.
Read the full bite: LLM Red Teaming: Adversarial Security Testing
Question 30 of 30
What is the primary role of LLM guardrails in a user-facing application?
Show the answer
Answer: a · To ensure the LLM's responses adhere to predefined safety policies and remain on-topic.
Guardrails are designed as safety policies to steer model outputs, ensuring they are on-topic, safe, and compliant, as stated in the card. They do not enhance the LLM's inherent creative capabilities; rather, they restrict outputs to prevent policy violations.
Read the full bite: LLM Guardrails: Keeping Model Outputs on Track
Could you explain these out loud?
That is what an interview actually tests. Tezvyn gives you questions like these with what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.