The correct answer is D. were given.
The sentence is in the past tense, so we need to use a verb in the past tense. The other options are not in the past tense.
A. are given is in the present tense. B. will be given is in the future tense. C. had given is in the past perfect tense.
The marathon participants were given a certificate each yesterday. This means that the participants received a certificate at some point in the past, and that the action of giving the certificates is now complete.