오랫동안 피땀 흘려 시험을 준비하던 친구가 [마침내 국가고시에 수석으로 합격했다는] 소식을 들었어요.
Attach -다는 directly to past-tense -았/었- to modify 소식 ('news')—as in hearing the joyful news that a hardworking friend topped the national exam. Because -다는 comes from -다고 하는, it bridges completed past achievements straight into 'the news that...'.
Sentence Structure
The long backstory about the friend leads into the past-tense verb 합격했다 ('passed'), which adds -는 to become 합격했다는 and modify 소식을 들었어요.
Never use present-tense -는다는 after past -았/었-; once the verb is in past tense (합격했-), always attach -다는 directly. ❌ 수석으로 합격했는다는 소식을 들었어요 → ✅ 수석으로 합격했다는 소식을 들었어요.
Note the contrast inside the sentence: 준비하던 (past ongoing 'who had been preparing') uses -던 for personal memory, while 합격했다는 uses quoted -다는 because you heard the exam result as news—very natural when chatting at Sangam DMC.