Preheat the oven to 350°F. Grease and flour the bottom and sides of a 13×17-inch jelly roll pan.: The oven warming releases a faint dry heat smell that signals readiness. When you grease and flour the pan, you'll feel the texture of the oil beneath your fingers as you spread it, and a thin sheen should cover the surface. This step prevents sticking and helps the edges brown evenly. A common mistake is applying too much flour, which can create a pasty residue; aim for a light dusting. Visually, the prepared pan will appear matte rather than glossy, and it should slide easily into the oven without wobble.
In a large bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Set aside.: As you whisk, the aromas of cinnamon and nutmeg bloom, sweet and spicy in the air. The dry mix should look uniform pale brown, sprinkled with evenly distributed specks from the spices. Sifting or vigorous whisking prevents clumps and ensures even rise later on. A frequent error is incomplete mixing, which can lead to pockets of leavening or spice; make sure the color is consistent before moving on.
In a separate large bowl, using an electric mixer on medium speed beat together the oil and sugars until evenly combined. Beat in the eggs, vanilla, and sour cream until no sugar lumps remain. You may need to turn off the mixer and scrape down the sides of the bowl.: When the vegetable oil and both sugars come together, the mixture glows a bit, and you may notice a faint glossy sheen. As you add the eggs , the sound of the mixer shifts to a smoother, lighter whir and aromas of sweet molasses from the brown sugar deepen. Scraping down the bowl with a spatula ensures all the heavier bits are reincorporated. Watch for splatters and avoid overbeating which can trap excess air and change the crumb structure.
With the mixer on low speed, carefully beat in the flour mixture, followed by the grated carrots. Be careful not to over-mix.: At low speed the batter will take on a more cohesive body, and you should see ribbons of carrot evenly dispersed into the batter. The sound is lower and quieter, with a gentle drag as the paddle moves through the thicker batter. Over mixing will tighten the crumb and make the cake dense; stop once you no longer see streaks of dry flour . The final batter should be homogenous and heavy enough to hold its shape briefly on the paddle.
Pour the batter into the prepared pan, spreading it to the edges. Bake in the preheated oven for 20-35 minutes, or until an inserted toothpick comes out clean, and if you give the pan a gentle nudge the middle doesn't wobble.: As the cake bakes you will notice a warm, spiced aroma filling the kitchen and the surface turning a light golden brown. The edges will pull slightly away from the pan. A toothpick inserted in the center should be mostly clean, and a gentle nudge should leave the middle set, not jiggly. Avoid opening the oven repeatedly which drops temperature and can cause uneven rise; instead check toward the end of the bake time. If the center remains soft after the maximum time, it may need another few minutes, but watch carefully to avoid overbrowning.
Allow the cake to fully cool in the pan before frosting.: Cooling brings down the internal temperature slowly and allows the crumb to firm so the frosting does not melt. You will notice the steam fading from the surface and the aroma settling into a more subtle note. Patience here prevents a glossy, runny frosting and keeps slices tidy. A common mistake is frosting warm cake, which creates a slick, sliding layer; wait until the pan is cool to the touch or at least until the cake is clearly room temperature.
In a large bowl, using an electric mixer on medium speed beat together the butter and cream cheese until very well softened and evenly combined.: As you beat, textures transform to a pale, fluffy mass and the mixture will smell like rich dairy. Ensure both the butter and cream cheese are truly softened so you do not end up with lumps. The beaters will glide smoothly when the emulsion is right. If lumps persist, briefly stop and scrape the bowl, then continue at low speed to finish. Avoid running a cold mixer setting that will not combine the ingredients.
Turn the mixer down to low speed and carefully beat in the powdered sugar, about 1 cup at a time, followed by the vanilla. Beat in the whipping cream 1 tablespoon at a time as needed, or add in a little extra powdered sugar until you reach the desired consistency.: Adding the powdered sugar gradually prevents a cloud of dust and ensures smooth incorporation. The texture will thicken as more sugar is added, and a little whipping cream softens it to a spreadable state. Taste as you go to balance sweetness and tang. Be cautious of adding too much liquid which can make the frosting runny; instead add sugar gradually to tighten the structure if needed.
Frost the cooled cake, then decorate with chopped walnuts if desired.: When you spread the frosting, you should feel a silky resistance under the spatula, and the surface will take on a soft sheen. The taste should be tangy and sweet in balance, and chopped walnuts add a crunchy contrast. Slice with a sharp knife for clean edges. A frequent error is pressing too hard while cutting which smears the frosting, so wipe the knife between cuts for tidy pieces.