Cook the spaghetti in salted water until al dente. Meanwhile, heat the olive oil in a pan and finely dice the garlic, zucchini, tomatoes and the feta cheese.
As soon as the oil is hot, heat the diced garlic cloves in the oil for 2 minutes and add the zucchini cubes. When the zucchini cubes are through, add the tomatoes and season with salt and pepper.
Drain the spaghetti and add to the pan with the diced feta cheese. Mix well, distribute on plates and then serve.