Prepare the Carrot Cake
Preheat your oven to 350°F (175°C). Grease three 8-inch round cake pans with nonstick spray and line the bottoms with parchment paper.
In a large mixing bowl, whisk together the eggs, buttermilk, sugar, vegetable oil, and vanilla extract until smooth and well combined.
Add the flour, baking powder, baking soda, and cinnamon. Mix just until the dry ingredients are incorporated. Avoid overmixing.
Gently fold in the freshly shredded carrots, coconut flakes, chopped pecans (if using), and drained crushed pineapple until evenly distributed throughout the batter.
Divide the batter evenly between the three prepared cake pans.
Bake for approximately 25–35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs.
Remove the cakes from the oven and allow them to cool in their pans for about 10–15 minutes before transferring them to a cooling rack.
Once completely cooled, place the cake layers in the refrigerator or freezer briefly. This makes them easier to handle when frosting and assembling.
Prepare the Cream Cheese Frosting
In a large mixing bowl or stand mixer, beat the softened cream cheese and butter until completely smooth and creamy.
Gradually add the powdered sugar, mixing on low speed until incorporated.
Add the vanilla extract and continue mixing until the frosting is light, fluffy, and smooth.
If the frosting feels too soft, refrigerate it for 15–20 minutes before assembling the cake.
Assemble the Cake
Place your first carrot cake layer onto a cake board or serving plate.
Spread a generous, even layer of cream cheese frosting over the cake.
Place the second cake layer on top and repeat with another layer of frosting.
Add the final cake layer and cover the entire cake with the remaining cream cheese frosting.
Smooth the frosting around the sides and top, or create a decorative finish using a spatula or piping bag.
Decorate with extra chopped pecans, if desired.
Refrigerate the cake for at least 1–2 hours before slicing to help the frosting set.
Slice, serve, and enjoy!