Grokking AI: 50 Questions Every Engineer Asks
Plain answers to the questions engineers ask most about AI and LLMs: why models hallucinate, what tokens and effort mean, and how context windows, RAG, and agents work.

Course Overview
Most engineers now use large language models (LLMs) every day, and most of them have the same questions. Why does a model state false things? What is a token? Does a higher effort setting give a better answer? Does the model remember earlier chats? This course answers those questions one at a time. Every lesson is one question, and every lesson has the same shape: a short answer first, one picture of the mechanism, a step-by-step explanation with one running example, a table of common wrong beliefs, and a list of what the answer means for your daily work. The course is written for junior engineers who have used a chat assistant or a coding assistant and have never studied machine learning. No advanced math is needed. Many lessons include a small Python program that runs with one click, and a short question that checks your understanding.
What you'll learn in Grokking AI: 50 Questions Every Engineer Asks
- What happens between your question and the answer, one token at a time, with no lookup in a database.
- What a token is, where the tokens of one request go, and how to reduce the number you pay for.
- What the effort setting changes, what a thinking model does, and when a higher level is worth its cost.
- Which parts of prompting still matter: a clear goal, the right context, examples, and an output format.
- How tool use, agents, and MCP work, and why an agent fails more often as its task becomes longer.
- How to test a feature whose output changes on every run, and how to review code written by AI.
- Why a model states false things with confidence, and which methods lower the rate of hallucination.
- What a context window is, and why a long chat becomes slower, more expensive, and less accurate.
- How to choose between a small model and a large one, and how to read parameter counts and benchmarks.
- How memory, embeddings, RAG, and fine-tuning differ, and how to choose the right one for a problem.
- What prompt injection is, what is safe to paste into an assistant, and when to trust a cited source.
- A short answer at the top of every lesson, then diagrams, an example you can run, and a check question.
Course Content
Tokens, Context, and Cost
What Is a Token and Why Do Models Not Read Words?
How Can I Reduce My Token Usage?
What Is a Context Window and What Happens When It Is Full?
Why Does a Long Conversation Get Slower and Less Accurate?
Why Do Output Tokens Cost More Than Input Tokens?
What Is Prompt Caching and How Does It Lower My Bill?
Why Did the Model Stop in the Middle of Its Answer?
What Are Rate Limits and Why Do I Hit Them?
Effort, Thinking, and Model Choice
What Does Effort Mean and Is High Always Better?
What Is a Thinking Model and How Is It Different?
Is the Reasoning a Model Shows Me Its Real Reasoning?
How Do I Choose Between a Small Model and a Large Model?
What Do Parameter Counts Mean and Is Bigger Always Better?
Why Does the Top Benchmark Model Do Worse on My Task?
What Are Open Models and Can I Run One on My Laptop?
Prompting
What Is a System Prompt and How Is It Different From My Message?
Does Prompt Engineering Still Matter?
Does Telling the Model It Is an Expert Improve the Answer?
How Many Examples Should I Put in a Prompt?
Why Does the Model Ignore Some of My Instructions?
Why Does the Model Agree With Me When I Am Wrong?
How Do I Get Valid JSON From a Model Every Time?
Memory and Knowledge
Working With AI as an Engineer
What people say about our courses






About the Author

Arslan Ahmad
Industry Expertise & Leadership
Arslan Ahmad is the lead author of Grokking AI: 50 Questions Every Engineer Asks. As the founder of Design Gurus and a former FAANG hiring manager, he has worked at industry giants like Facebook (now Meta) and Microsoft.
He has conducted hundreds of system design interviews, giving him unique insight into what top tech companies look for in candidates.
The course also incorporates expertise from senior engineers at Google, Meta, Amazon, Microsoft, and Uber, ensuring you learn system design best practices from professionals who have built and scaled real-world systems.
500+
Interviews Conducted
10k+
Students Taught
Related Courses
$98
$98
$48
FAQs
What is Grokking AI: 50 Questions Every Engineer Asks?
It is a course in which every lesson answers one common question about AI and large language models (LLMs), such as why models hallucinate, what a token is, and whether a higher effort setting gives a better answer. Each lesson gives the short answer first and then explains the mechanism with diagrams and one running example.
Who is this course for?
It is for junior engineers and other developers who already use a chat assistant or a coding assistant and want to understand why it behaves as it does. You do not need to have studied machine learning.
Do I need a background in machine learning or math?
No. Every idea is explained in plain language with diagrams and small worked examples, and the course uses no math beyond school arithmetic.
Do I need to know how to program?
Basic programming helps, because the practice programs are written in Python and several examples come from daily engineering work. Each program runs with one click, and the lesson explains what it prints.
Do I need an API key or a paid AI account?
No. The Python programs run inside the lessons and use only the standard library, with small stand-ins where a real model would be needed. Some lessons also have a live box that sends your text to a real model from inside the lesson.
How is each lesson structured?
Every lesson has the same shape: a short answer, one picture of the mechanism, a step-by-step explanation with one running example, a table of common wrong beliefs, a list of what the answer means for your work, something to run, one check question, and the key takeaways.
Do I have to take the lessons in order?
No. Each lesson answers one question, describes the terms it needs, and links to the related lessons, so you can open the question you have today. The course order starts with how a model produces an answer and ends with daily engineering practice, which is a good order for a first reading.
Which questions does the course answer?
The questions are grouped by subject: how a model produces an answer, tokens and cost, effort and model choice, prompting, memory and knowledge, tools and agents, trust and privacy, and working with AI as an engineer. The curriculum on this page lists every question.
Is there any practice, or is it only reading?
Every lesson has something to run and one check question that explains each option after you answer. Most lessons include a small Python program that you can change, and the others use a live box where you send a prompt to a real model.
Does the course teach the products of one AI company?
No. The lessons explain ideas that the major model families and providers share, and they say so where providers differ. The lessons contain no price lists and no model version names.
Will the course become outdated when new models are released?
The lessons explain mechanisms, such as how an answer is produced, why input is sent again in every request, and why errors add up over many steps. These mechanisms change slowly, while model versions, prices, and limits change quickly, so the course leaves those out.
How is this different from Grokking LLM Essentials and Grokking Generative AI Fundamentals?
Those two courses teach the subject from start to finish, topic by topic. This course is organized by the questions that engineers ask at work, so each lesson starts from one question and gives a direct answer. Take this course if you already use AI tools and want quick, reliable answers, and take the other two if you prefer a full guided path.
