The safest way to solve an analogy question is to write out the exact relationship in a full sentence first, then test each option against that sentence.
Relationship: “A dirge is performed at death, which is the opposite of birth.”
Sunset : Sunrise: These are just two opposite events with nothing performed at one because of the other, so the sentence does not fit.
Security check : Arrival: A security check is linked to arrival itself, not to arrival's opposite, so the sentence does not fit.
Marriage : Alimony: Testing the sentence: “Alimony is paid at divorce, which is the opposite of marriage.” This fits perfectly, since divorce is indeed the ending or opposite of marriage.
Welcome address : Vote of thanks: Both occur at the same event (like a ceremony), not at each other's opposite, so the sentence does not fit.
Only option C matches the exact relationship pattern.