My sister passed the exam.

Literal

Younger-sister [topic-は] that exam [target-に] passed.

試験に合格する ('to pass an exam') uses に to mark the exam as the target of passing. 合格 ('passing/success') is a Sino-Japanese compound: 合 ('fit/match') + 格 ('standard').