A currency swap is an agreement to exchange principal and interest payments in one currency for principal and interest payments in another currency. It is primarily used to manage cash flows in different currencies, though it also helps manage currency risk. Options A and B are incomplete, while option C is partially correct but option D most accurately captures the primary purpose.