Springbok captain Victor Matfield paid tribute to his side's staunch defence as the world champions withstood a late rally from Wales to win 25-29 at the Millennium Stadium.
The victory kept South Africa's hopes of a Grand Slam alive after they brushed aside Ireland last weekend.
South Africa were 17-9 behind at the break but scored 17 unanswered points in the space of seven minutes to grab the initiative from Wales.
Wales refused to cave in and mounted a fierce late rally but couldn't breach the green wall.
"I'm very proud of the boys, they showed great character," said Matfield. "Wales put us under pressure and it was a great game for the spectators to watch.
"Well done to Wales, they really came out and played well. "(Defending) is something we really worked hard on (in training) and it came through and we were happy with that," he added.
Referring to a possible Grand Slam, Matfield said: "I don't know. There's still a fair way to go. We're focusing on Scotland and that's going to be another huge game. We will enjoy tonight and then start fresh from zero on Monday again."
Wales U20 captain Tom Phillips and performance psychologist Dr Rich Neil explain why spending three days at Monmouth RFC has further strengthened the togetherness of the squad ahead of the #WorldRugbyU20s
Alongside Scarlets flanker James Davies and Cardiff Blues centre Cory Allen, three Wales Sevens core players have made the extended training squad for GB Sevens. Wales Head coach Gareth Williams tells WRU TV's Graeme Gillespie why Luke Treharne, Sam Cross and Luke Morgan earned selection in the initial training squad for Rio.
Wales Sevens head coach Gareth Williams tells WRU TV's Graeme Gillespie he has had to overcome a number of injuries before naming a competitive squad for this weekend's penultimate round of the World Series in Paris.
Merthyr were officially crowned champions of the SSE SWALEC Championship at Dowlais on Saturday where captain Andy Powell paid tribute to his side who have earned promotion to the Principality Premiership
Coleg y Cymoedd's season has had a spectacular ending with victory in two cup finals and a massive victory over one of the best rugby playing schools in the world - Welsh coach Warren Gatland's old alma mater, Hamilton Boys' High School.
WRU chief executive Martyn Phillips hosted the second meeting of the WRU Youth Board last weekend ahead of the Judgement Day IV regional double-header. Tthe board, made up of 15 under-21-year-olds from around Wales, heard presentations from head of participation Ryan Jones, policy and integrity manager Jeremy Rogers and national women's rugby manager Caroline Spanton, with Pro Rugby Wales CEO Mark Davies also on hand to hear the range of views aired.
Wales duo Rhun Williams and Liam Belcher, who makes a welcome return after five months of injury woe, look ahead to next month's World Rugby U20 Championship in Manchester where they will face Ireland, Georgia and New Zealand.