Empty the pasta from the package, wash and peel the onions and carrots, then cut the cheese. Place mayonnaise and ketchup in separate containers. Place the fillet in a plate, and pour salt and pepper into containers.
Cut the carrots into slices, then cut the chicken fillet first lengthwise, then crosswise to form mini-squares. Season with salt and pepper. Cut the onion into half rings and fry in sunflower oil until golden brown, add the fillet to the onion, fry until half cooked. Boil the spaghetti until fully cooked. Place half the fillet with onions and carrots in a baking dish. Sprinkle cooked spaghetti on top, then brush with ketchup. Grease the second layer of onion and fillet with mayonnaise and pour in the remaining pasta.
Place the dish in the oven for 20 minutes, temperature 180 degrees. 5 minutes before readiness, add finely grated cheese.
Place the dish in a flat plate and sprinkle with herbs.