" is also correct. "What taste does it have" would usually not be used unless in certain cases where the answer has to do with sweet/sour/bitter etc. Both of your cake questions are acceptable.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.