Wash the zucchini, trim the ends, and slice them into thin, evenly sized rounds. Pat them dry with a clean kitchen towel. Removing excess moisture helps the slices fry more evenly and develop a beautiful golden color.
Heat frying oil in a large skillet over medium heat. Fry the zucchini in batches until the slices become tender and lightly golden on both sides. Avoid overcrowding the pan, as this can cause the zucchini to steam rather than fry. Transfer the cooked slices to a plate lined with paper towels.
While the zucchini is still warm, add a few torn basil leaves and toss gently. This allows the fragrant basil to infuse the zucchini. Reserve some fresh leaves for the final garnish.
Bring a large pot of salted water to a boil. Add the spaghetti and cook until just shy of al dente according to the package instructions. Before draining, reserve at least one cup of the starchy cooking water. Do not rinse the spaghetti.
Heat the extra-virgin olive oil in a large skillet over medium-low heat. If using garlic, add the lightly crushed clove and let it infuse the oil for about 30 seconds. Remove the garlic if you prefer a more traditional zucchini-forward flavor. Add most of the fried zucchini and gently break up a few slices with a wooden spoon.
Transfer the partly cooked spaghetti into the skillet with the zucchini. Add a small amount of reserved pasta water and toss continuously over medium-low heat for 1–2 minutes. The pasta will finish cooking while absorbing the flavors of the zucchini and olive oil.
Remove the skillet from direct heat and allow it to cool briefly. Gradually add the finely grated Provolone del Monaco and optional Parmesan, tossing continuously. Add warm pasta water a little at a time until the cheese forms a smooth, glossy coating. If the cheese begins to clump, stop adding cheese, add a small splash of water, and toss gently until the sauce loosens.
Add the remaining zucchini and torn basil leaves. Season with freshly ground black pepper and taste before adding more salt. Toss once more and serve immediately with extra grated cheese and fresh basil.