Prepare three 8-inch round pans by lining them with parchment paper. Spray lightly with baking spray and lightly dust with flour.
In a bowl, sift together flour, baking soda, baking powder, and cinnamon.
In another large bowl, beat eggs and sugar on high speed until they’re lightly fluffy.
In a third bowl, combine grated carrots, pineapple, oil, and vanilla. Then, add this mixture to the eggs and sugar. Use a spatula to incorporate.
Add half the dry ingredients to the wet ingredients and fold to combine. Then, add the remaining dry ingredients and combine. Fold in walnuts and coconut flakes.
Distribute the batter evenly between the three baking pans. Bake the layers in the oven for 20-24 minutes. Let the layers cool for 10 minutes before popping out of the pans and transferring to a wire rack to cool the rest of the way.