You can remember the meaning of 年纪 with this easy mnemonic:
It's beautiful seeing Granny and her friends. They met at a young age and spent years (年) together. Sometimes they tell me about how they got disciplined (纪) at school for playing tricks on each other.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.