Wales leapfrogged Bosnia in Euro Under-21 qualifying as Liam Cullen's stunner gave them a 1-0 win in Wrexham.
Under-21 boss Paul Bodin had said his side needed to "put things right" against Bosnia after an embarrassing October defeat against Moldova.
Cullen's goal proved the difference as he curled home from 20 yards.
In an entertaining contest, Wales cleared one off the line in the second half as they held on for a morale-boosting victory.
Wales had started the campaign with an impressive 1-0 win over Belgium but were beaten 5-1 at home by Euro 2019 finalists Germany.
However, they produced a strong performance against Bosnia despite several players such as Regan Poole and Joe Morrell being called up for Ryan Giggs' senior side.
Nathan Broadhead came close to doubling Wales' advantage, while Cullen was also denied a second goal late on as his flicked effort was saved.
Wales are already out of contention for Euro 2021 as only the group winners and the best runners-up qualify automatically for the finals in Hungary and Slovenia.
The other eight group runners-up will secure a play-off spot with four further teams qualifying for the finals.
Earlier Wales' U19 progressed to the elite round of the European Championships by defeating Kosovo 2-0 at Newport's Rodney Parade thanks to goals from Harry Pinchard and Neco Williams.