Both are pretty easy to get, though. I personally eat a lot of broccoli and tend to eat red, fatty fish once a week. Unless the doctor says something, most folks won't need to take those supplements. It is a lot more difficult to meet your vitamin D needs through food, however.
Magnesium deficiency/insufficiency is almost as common as vitamin D's. If status hasn't been verified by something like an RBC or WBC magnesium test, then it isn't really known.