It's a straightforward endurance test: keep throwing cakes and avoid getting hit.
Stay mobile rather than standing still, since the return throws come at predictable intervals once you've watched a couple of rounds. Land your hits consistently and the level resolves itself.