Generative AI and Large Language Models Questions

The capabilities and behavior of modern generative and large language models. Covers how LLMs are pretrained, in-context learning and few-shot prompting, generative model families (autoregressive, diffusion), context windows, and tokenization and sampling. Emphasizes understanding what generative models can and cannot do and how they differ from discriminative ML.

HardTechnical
94 practiced

You must decide between two third-party LLM options for a knowledge assistant: a faster, cheaper model with slightly lower factual accuracy, versus a slower, costlier model with better factuality. How would you evaluate and choose, and how might you combine both to meet product goals?

EasyTechnical
78 practiced

Explain the difference between a generative and a discriminative model. Give at least two concrete examples of each and describe how the choice between the two approaches affects a production system.

MediumTechnical
151 practiced

Explain adapter modules for transformer models: how they are inserted (e.g., between attention and feed-forward), how they change parameter budgets, their advantages relative to full fine-tuning, and potential drawbacks. Design a lightweight adapter architecture for sequence classification and estimate the number of extra parameters for a 1.5B parameter base model.

MediumTechnical
96 practiced

Explain the differences between zero-shot, one-shot, few-shot, and in-context learning in LLMs. Describe scenarios where each is preferred, and when you would reach for fine-tuning instead of relying on in-context capabilities.

HardSystem Design
125 practiced

Design an end-to-end, privacy-compliant human-feedback and RLHF data pipeline for a production system that may collect PII or sensitive content (for example a customer-support assistant under GDPR or similar regulation). Cover redaction and annotator safety for sensitive or disallowed content, anonymization/pseudonymization and data-minimization strategies, differential privacy during training where appropriate, consent and deletion (erasure) workflows, secure labeling-platform access controls, auditability and provenance so the pipeline can be shown not to leak customer data, and the trade-off between privacy guarantees and reward-model utility.

Unlock Full Question Bank

Get access to all 37 Generative AI and Large Language Models interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.