The significant difference between all-purpose flour and cake flour is the amount of protein that each flour has.
The protein contains in the flour determines how much gluten the flour has. This, in turn, has an effect on the texture of what you baked. The more the protein, the denser, and stronger the texture. The lesser the protein, the lighter the texture.
All-purpose flour has about 10 to 12% protein. The higher protein content will allow the flour to absorb more water, producing stiffer dough.
All-purpose flour is best for pastries such as cookies
On the other hand, cake flour contains only 6 to 8% protein. This absorbs less water producing soft, moist, and pliable dough.
Cake dough is the preferred option for cake baking.