Preheat the oven to 350°F.
In a medium size bowl, add the all-purpose flour, baking powder, baking soda, salt, ground nutmeg, and ground cinnamon. Then, use a whisk to combine the dry ingredients together. Set the bowl aside until ready to use.
In a large bowl, add the canola oil, buttermilk, extra-large eggs, and vanilla extract. Then, beat the wet ingredients together with an electric hand mixer until they are emulsified and well combined.
Add the white and brown sugars to the mixed wet ingredients, then beat with the mixer until well combined.
Next, add the combined dry ingredients to the wet ingredients, and beat until just combined.
Next, add the shredded carrots, sweetened coconut flakes, crushed pineapple, and toasted pecan pieces. Stir everything together with a large wooden spoon or rubber spatula just until combined. Make sure to scrape the sides of the bowl as you mix.
Grease and flour2 two 9-inch round cake pans. Then, divide the batter evenly between the two pans. Bake in a 350°F oven for 25-35 minutes, or until a toothpick inserted into the center of the cakes comes out clean.
Remove from the oven and let the cakes cool in the pans for 10 minutes. After 10 minutes, turn the cakes out into wire racks and cool them completely before frosting.3