Mealy bug, any insecticide will get rid of it with a few applications. White oil might work with only one application, but it'll probably burn if in the full sun, although seeing you have got mealy bug, you may have it in a sheltered position anyway. My preferred method is just squish and squirt, no insecticides used at all.
Mealy bug is usually a problem when the plant is not in the best of health, and usually can only survive where the humidity ( closely around the plant) is fairly high, improving air flow can often help too. You'll rarely find it on a yucca out in the open in full sun.
A common problem with yuccas is overwatering, this could make it susceptible to mealy bug and other pests.
I should add that I'm a qualified horticulturist, for what that's worth.