If the child is "just before" his/her second birthday, make sure you have proof of age. Either a passport or a birth certificate. I had that issue with my son when we flew with him once.
I hope it is a short international flight. Holding an almost 2year old on a lap for a long flight in coach doesn't sound like much fun.