How to use this book

Who this book is for

This book was written for backend and full-stack developers integrating LLM features into real products, as well as engineers moving AI feature proofs of concept (PoCs) into production. Having worked with HTTP APIs for at least one year is sufficient. If terms like request and response, status codes, retries, and JSON are familiar to you, you will be able to follow almost everything in this book.

The gap between a PoC and a production feature is larger than one might think. In a PoC, "it mostly works" is the goal, but in production, a single malformed response out of tens of thousands of daily calls, a single payment executed twice, or an unexpected spike on a cost line item becomes a problem. This book focuses on bridging that gap. It does not cover how to train models directly or how to operate GPU clusters. What we cover is the craft of using provider-supplied LLM APIs safely and economically as a component of an application.

How this book is organized

The main text covers the five exam domains of the Promotion exam, one chapter each.

Chapter Questions addressed
Chapter 1: API Basics and Message Design What to put where in a request, and which model and parameters to choose
Chapter 2: Structured Outputs and Tool Calling How to receive model responses in a format programs can reliably consume, and how to connect them with external functions
Chapter 3: Performance and Cost Optimization How to make users wait less and have the company pay less
Chapter 4: Reliability and Error Handling How to self-heal without doing the same work twice even when failures occur
Chapter 5: Evaluation and Operations How to verify with numbers before making changes, and what to monitor during operations

Each chapter follows the same structure. Learning objectives and the Introduction set the direction, and Key concepts explains all knowledge and skills within the scope of the exam. Going deeper covers trade-offs and failure analyses, while At work follows the problems of a fictional organization from start to decision. Common mistakes addresses the same family of misconceptions targeted by incorrect exam choices, and Summary at a glance is intended for review the day before the exam. Self-check, unlike the exam, is in open-ended written format. Its purpose is to verify whether you can retrieve and apply concepts on your own without options; answers and explanations are collected in Appendix B. To ensure that each chapter can be understood on its own, whenever content from another chapter is required, it is briefly re-explained on the spot.

The exam at a glance

Item Details
Track AI Feature Development (LAD), Red Belt Promotion exam
Promotion exam 30 questions, 50 minutes, passing score of raw score 70 or higher
Free practice set 10 questions, 20 minutes
Scoring 2 points for recall/application questions, 3 points for judgment questions. The raw score is the percentage calculated by dividing earned points by the maximum possible score
Grades Grades 1–9, bounded by raw scores of 90, 80, 70, 60, 50, 40, 30, and 20 points
Exam weights Chapter 1: 20%, Chapter 2: 25%, Chapter 3: 20%, Chapter 4: 20%, Chapter 5: 15%

There are five question types: single-select, multi-select, statement evaluation, ordering, and matching. On the exam paper, all questions are answered by selecting one number from ① through ⑤. For multi-select, you choose one combination among A, B, and C from <Options>; for statement evaluation, a combination of statements judged to be correct; and for ordering and matching, one among candidate orderings or candidate pairings.

What the questions look like

Every question begins with a specific scenario faced by a fictional company. Two to three sentences describe which team is building what feature, the scale of data and traffic, and what problem has arisen. A single question follows. Conditions that must not be missed are marked in bold. Conditions such as "Waste caused by retries must also be reduced" and "Do not change the model" determine the correct answer.

Most of the questions are judgment questions that evaluate two or more constraints together. Judgment questions are designed so that if a single condition changes, the correct answer changes as well. Therefore, you must ask not "Is this feature a good feature?", but "Under these conditions, what is the most appropriate choice?" Incorrect options contain misconceptions commonly encountered in the field: ideas such as believing all errors should be retried, trusting that if the format is correct the content is also correct, or mistaking streaming for a way to reduce costs. If you read the "Common mistakes" sections of this book carefully, you will be able to eliminate wrong answers first, even on questions you have never seen before.

For the free practice set and Mock exam, you can view option-by-option explanations and reference documents after submitting. Even for questions you answered correctly, read the explanations to check whether your reasoning matched. Promotion exam questions and explanations are not made public.

Six-week study plan

This plan is based on one hour per day, five days a week. Hands-on tasks are only meaningful when you call APIs directly, so prepare an API key from a provider and a modest testing budget in advance.

Week Scope Tasks
Week 1 How to use this book, Chapter 1 Complete two Chapter 1 Hands-on tasks, directly call request and response examples from official documentation
Week 2 First half of Chapter 2 (Structured outputs) Practice schema design and three-stage validation, review Chapter 1 Self-check
Week 3 Second half of Chapter 2 (Tool calling) Implement a tool loop, take 1 free practice set
Week 4 Chapter 3 Practice latency measurement and cache break-even, classify incorrect practice questions by chapter
Week 5 Chapter 4 Practice fault injection, implement a checkpoint pipeline
Week 6 Chapter 5, comprehensive review Practice with an evaluation harness, take the Mock exam, review Summary at a glance for each chapter and Appendix C

Key point

If you are short on time, read the Key concepts and Common mistakes of each chapter first, and read Going deeper on your second reading. Do not skip Chapter 2, which carries the largest exam weight.

Notation and sources

  • Product names, API names, and parameters retain their original forms, such as max_tokens and the Messages API.
  • Vendor-specific facts (parameter names, limits, price multipliers, retention periods) were verified against official documentation on October 20–21, 2026, and supporting pages are collected at the end of each chapter and in Appendix D.
  • LLM APIs change on a scale of weeks. Principles are explained first, and vendor-specific facts are used as examples. Rather than memorizing numbers, recheck the documentation.
  • Model names and prices are used only where strictly necessary, and the scope stated in the documentation (e.g., "models released after Claude Opus 4.6") is transcribed as is.
  • Statutory provisions are based on the current Personal Information Protection Act (PIPA) (effective September 11, 2026) from the National Law Information Center. The explanations of statutes in this book are for study purposes and do not constitute legal advice.
  • The companies and individuals appearing in the case scenarios are entirely fictional.

Note

The current URLs are platform.claude.com/docs for Anthropic documentation, developers.openai.com/api/docs for OpenAI documentation, and ai.google.dev/gemini-api/docs for Google Gemini API documentation.