Preheat oven to 350 F. Grease an 8-inch or 9-inch square baking pan (you can also line with parchment if desired).
In a large bowl, rub together the lemon zest and sugar, then add in the shredded apple, carrot, pineapple, coconut, golden raisins, and oil. Add eggs, and whisk to combine.
Add the flour, spices, salt, baking powder, and baking soda and stir until the flour just disappears (don't overmix).
Pour the batter into your prepared pan and smooth the top. If using, sprinkle the pepitas over the cake. Bake for 30 to 35 minutes, until a toothpick inserted into the center of the cake comes out batter-free.
Let cool in pan then carefully cut into squares with a serrated knife. The cake is super moist and will be quite crumbly. I kept mine on the counter for a couple days, but it will keep well in the fridge if you want a slightly firmer, less crumbly cake (and it will last more like 5 to 6 days).