Matching the mediastinal compartments with their key contents:
(A) Anterior Mediastinum: Primarily contains the thymus gland (in children), fat, lymph nodes, and the sternopericardial ligaments (III) which attach the pericardium to the sternum.
(B) Middle Mediastinum: Contains the heart, pericardium, phrenic nerves, and the roots of the great vessels, including the pulmonary trunk (II).
(C) Posterior Mediastinum: Located behind the heart, it contains the esophagus, trachea, azygos and hemiazygos veins, thoracic duct, sympathetic trunks, and the azygos vein (I) is a prominent structure here.
(D) Superior Mediastinum: Situated above the heart, it contains the thymus, trachea, esophagus, aortic arch and its branches (including the left brachiocephalic vein forming from the union of the left internal jugular and subclavian veins), phrenic and vagus nerves, and the left brachiocephalic vein (IV) passes through this compartment.
Therefore, the correct matching is (A)-(III), (B)-(II), (C)-(I), (D)-(IV).