Answer
John A. Costello served as Taoiseach, or Prime Minister, of Ireland during the period when William T. Cosgrave held the position of Minister for External Affairs. Cosgrave, a prominent figure in Irish politics, played a significant role in shaping Ireland's foreign policy during his tenure. Costello, on the other hand, was responsible for leading the government and overseeing its domestic and international affairs.