How UAG ends a protein
When a ribosome reaches UAG, no tRNA comes to claim it. A release factor fits into the codon site instead and triggers the finished protein's release: in bacteria that's RF1 (which reads UAA and UAG but not UGA), and in eukaryotes eRF1, which reads all three stops. The ribosome then disassembles, and translation is over.
UAG is the least-used of the three stop codons in many genomes — but "least used" still means millions of genes across the tree of life end on it.
Why it's called amber
UAG's nickname is the oldest one in genetics. The first nonsense (stop-gaining) mutants were isolated in phage T4 in a lab strain nicknamed "amber" — a nod to researcher Harris Bernstein, whose surname means amber in German. Once amber meant UAG, the later-discovered stops got color names too: ochre (UAA) and opal (UGA). The names stuck and still show up in textbooks and even in tool names (e.g. "amber stop codon" assays).
Lab strains called amber suppressors carry a tRNA that reads UAG as an amino acid — a classic teaching example of readthrough, and the reason some UAG mutations are surprisingly mild in those strains.
What changing UAG does
Look at the table: of UAG's nine single-base changes, only one — UAG→UAA — still spells stop. The other eight all code amino acids, from lysine (AAG) to tryptophan (UGG). A gene whose UAG mutates to any of them loses its stop signal: the ribosome reads through into whatever follows, and the protein comes out longer than intended.
The reverse case matters more in class: any codon mutating into UAG (in DNA: TAG) is a nonsense mutation — the protein is cut short.
UAG on exams
Given UAG → UGG, the expected answer is a readthrough (stop → tryptophan, chain continues). Given CAG → UAG in DNA (TAG), it's a premature stop / truncated protein. Watch both happen on the translator.