Preheat oven to 350°F/175°C. Generously butter 2 8-inch cake pans, or 3 6-inch cake pans. Line the bottom of each pan with a round sheet of parchment paper.
In a large bowl, whisk flour, baking powder, baking soda, salt, cinnamon, nutmeg, and cloves together. Set aside.
In a medium bowl, whisk together oil and both sugars. Once combined, whisk in eggs, sour cream and vanilla extract until smooth. Add the wet mixture into the flour mixture and mix just until combined. Don’t overmix. Fold in the grated carrots, nuts, and coconut shreds (optional).
Evenly distribute your batter between the cake pans. Bake for 35-40 minutes if using 2 cake pans or 25-30 minutes if using 3 cake pans, or until a skewer inserted into the center comes out clean or with just a few moist crumbs. Let the cakes cool in the pan for about 20 minutes then transfer them to a cooling rack to cool completely.