Question: what is the difference between average life and duration?
Answer: Correct. WAL (or just average life) is more used for MBS to measure the effect on prepayment (thus shorten its life). Duration is used in connection of measurement of interest rate risk. Your definition refers to Macaulay duration.