A replacement is the moment the house catches up to current code. Older installs often predate the bulletin's details: one strap around the middle, a relief line that ends in the garage, a vent connector that barely rises. The City inspects the whole installation, not only the new tank, so those get corrected.
The expansion tank surprises people most. The City's water pressure page says owners need a pressure regulator where street pressure exceeds 80 psi. A regulator, like a check valve or backflow device, keeps heated water from pushing back into the main. Under CPC 608.2 and 608.3, as DSD applies them, that closed system needs a listed expansion tank no matter what kind of heater you install.
Then the water. The 2025 water quality report puts plant averages near 14 grains per gallon. Sediment is what kills a lot of tanks early here. If the old tank was never flushed, the new one should be on a yearly schedule, and the drain valve should be reachable.
Last, the paperwork has a long tail. California's Health & Safety Code §19211 makes the seller of any home with a water heater certify in writing that it's braced. A permitted, inspected replacement gives you a record to point to when that day comes.