I’ve never made a cake, but this is what I think you’d need:
A good kitchen with a decent table. An oven. The ingredients. Time and no distractions. A mixing bowl and the various bits of pans and stuff to make it. (I’ve really never made one).
If you were, for example, in a warehouse, with the oven on one side of the warehouse, the table on the other side, half the ingredients missing, no mixing bowl, forklifts driving by you, and only three minutes to make it in, then the forklift drives over the pan and squashes it, you would, I think, find it very difficult to make a cake.