Either bars of force or solid walls of force, caster's choice.
The smaller solid walls version would have been too small to contain the ancient black dragon at all; Malack is slightly smaller than her.
I am, however, blinking at the idea that level 7 is "relatively low-level."