This is the wrong question. Large militaries spend a fortune anyway on firing ordnance anyway for training purposes. Doing so in actually uncertain conditions is in many ways more valuable than pre-planned exercises. There's also a political attention focusing effect that allows rapid realignment of priorities away from status0quo maintenance towards novel readiness postures. So in strategic terms, it can be a net benefit rather than a net cost.
The flip side of this is adversarial observer(s) can learn all sorts of things about readiness, detection networks, response times, and tactical doctrine if well-prepared in advance to acquire and integrate that information.
Kinda wish I had a way to bet on the popularity of search terms because I can practically hear the rattle of doctrinal articles being furiously drafted at military institutions of higher learning right now.