Kata is a formal exercise where the attack and defense are choreographed. This is the traditional way of training.