Admittedly, there were supply shocks too, in addition to demand pressures that were stoking inflation pressures. Monetary policy response to supply shocks is a deliberate balancing act because errors can be costly in terms of lost growth.
If the judgement is that the supply shock is transitory (such as cyclical increase in vegetable prices), the preferred policy response should be to not respond by monetary tightening. If on the other hand, the judgement is that the supply shock is structural in nature and will persist, monetary policy has to respond since persistent inflation, no matter what the driver, stokes inflation expectations.