final thoughts. it is best to avoid giving your dog any kind of cake. if the cake has chocolate, coffee, or a sweetener in it, keep it away from where they might sneak a bite. if you really want your dog to enjoy a treat, buy them a dog cake mix or make your own that only contains ingredients that are good for them.