The key point that strikes me in this chapter is the twofold expression of wisdom. Daniel exhibits both faithfulness and prudence. He is faithful in that wisdom reminds him of the ordinances of the Law and he resolves not to disobey. He is prudent in that wisdom points to a way out of the problem and Daniel acts.
My tendency would have been toward only faithfulness and the refusal to eat the king's food. That would have resulted in the proverbial "off with his head". Heroics is not always the best choice as this chapter shows.
This twofold expression of wisdom reminds me of two NT passages:
Mt 10:16 ...be wise as serpents and innocent as doves.
1Cor 10:13 ...God is faithful and he will not let you be tempted beyond your strength, but with the temptation will also provide the way of escape, that you may be able to endure it.