Brazil needed a moment of quality from Fred to beat Serbia as they claimed a narrow 1-0 win in their final game before the FIFA World Cup.
Having not been tested by Panama in midweek, Brazil were at full-strength for the clash against Ljubinko Drulovic's side.
They were restrained for large spells, however, and coach Luiz Felipe Scolari will be aware improvement is required despite Fred's well-taken winner.
The only goal of the game came after 58 minutes when the Fluminense forward brought down a long ball on his chest under pressure from Branislav Ivanovic and Dusan Basta.
Despite stumbling, he kept his nerve to finish past Vladimir Stojkovic and Serbia were unable to respond.
Brazil's victory may do little to fill an expectant nation with great confidence. However, with Neymar getting almost 80 minutes of action on his road to full fitness and Fred scoring his first in Brazil colours since the Confederations Cup, there are reasons for the hosts to be optimistic.
After a lively opening from both sides, Aleksandar Kolarov threatened first when he struck an effort wide of Julio Cesar's left-hand post after nine minutes.
Neymar then almost benefited from a block that fortuitously landed in his path - only for Ivanovic to produce a well-timed last-ditch tackle.
A combination of tenacious and robust defending helped keep Brazil's forwards well shackled, although Fred was next to threaten - his dipping strike veering off target 24 minutes in.
David Luiz was forced into a hurried clearance following Kolarov's fierce delivery before Aleksandar Mitrovic wasted the best chance of the half, heading wide with the goal at his mercy.
Luiz and Thiago Silva, who will team up at Paris Saint-Germain from next season, then got mixed up close to half-time, but an offside flag rescued Brazil as Lazar Markovic converted.
Scolari swapped Oscar for Willian at the break, presumably in an effort to shake things up, but Brazil still looked somewhat out of sorts.
Indeed, Dusan Tadic perhaps could have opened the scoring for Serbia had he gambled on reaching a cross lofted into the hosts' box.
Fred subsequently ensured first blood went to Brazil - cleverly chesting Thiago's delivery to take Ivanovic out of the game before prodding home the opener.
Neymar, lively but far from his dangerous best, then flashed an effort over the crossbar as his side sought to make the scoreline more emphatic.
There were to be no more goals, although Serbia's Milos Jojic and Brazil forward Jo hit the woodwork in the closing stages.
Brazil open their World Cup campaign against Croatia on June 12 and will be hopeful of a more fluent display.
|Coach: Luiz Felipe Scolari|
for Oscar 46'
for Paulinho 65'
for Dani Alves 72'
for Fred 75'
for Marcelo 76'
for Neymar 81'
|Ronaldo reiterates desire for Zidane to continue as Madrid coach|
|Keane: City need to improve to win Champions League|
|Falcao left out of Colombia´s Copa America squad|
|Carragher: Sturridge must start against Villarreal|
|De La Hoya´s clanger: ´Whoever thought Leicester would win the UEFA Cup?´|
|Marotta: City asked, but it´s not time to sell Pogba|
|Marcelino wants to turn Anfield atmosphere in Villarreal´s favour|
|Marcelo calls for La Liga focus after Madrid reach Champions League final|
|Origi hopeful of returning before season´s end|
|Madrid were the better side, insists Ronaldo|
|Mangala: City should be proud of semi-final run|
|Madrid move motivated by Champions League glory, says Bale|
|We will leave our soul in the final - Ramos|
|Hart left broken by ´very lucky´ Madrid goal|
|Zidane hails victorious Madrid|
|Pellegrini disappointed to miss out in tie of few chances|
|Real Madrid 1 Manchester City 0 (1-0 agg): Zidane´s men set up 2014 final repeat|
|Lucescu: Shakhtar ready for hardest fight|
|´Benteke cost almost Villarreal´s budget!´ - Marcelino expects major Liverpool test|
|AFC Champions League Review: Big-spending Jiangsu Suning dumped out|
|Kompany off injured in Champions League semi|
|Ter Stegen: I want to stay at Barcelona|
|Vardy will thrive for England at Euro 2016, says Smith|
|Lemina eyes key role at Juventus|
|Cerezo hits back at Vidal´s ´ugly´ swipe|
|Bacca happy at Milan without European football, says agent|
|Long backs Saints to end Spurs hoodoo|
|West Ham´s Sullivan labels Leicester lucky|
|Alba admires Atletico team work|
|Ranieri deserves an honour - Italian prime minister|
|Klopp bullish ahead of semi-final showdown|
|Ranieri´s 96-year-old mother: Now my son is King of England|
|Lovren: Europa League final would save Liverpool´s season|
|BREAKING NEWS: Dembele set for long FA ban over Costa altercation|
|AC Milan ultras call for Galliani´s head over ´blatant mockery´ of fans|
|Emery wants ´inspired´ Konoplyanka in Europa League semi-final|
|Wendell Lira blames Puskas Award trip for club woes|
|Joe Cole in line for Tampa Bay Rowdies move|
|Fuchs: I could kiss Hazard after title-clinching goal|
|Hiddink turned down Leicester before Ranieri appointment|
|Arsenal did not hold their nerve in title race - Smith|
|Cazorla targets City comeback for Arsenal|
|Webb could face lifelong ban as FIFA opens proceedings|
|Smith backs Leicester to become Premier League ´force´|
|Toni to retire after Juventus clash|
|Iwobi reveals key to dream Arsenal rise|
|Allen expects to reach Europa League final|
|McLeish leaves Zamalek after 65 days|
|Football fans pile bets on Burnley to win Premier League after Leicester´s shock success|
|Ranieri: Rich teams will win for next 10 to 20 years|
|Pity we could not reward Guardiola for his three years, says Bayern captain Lahm|
|Madrid revenge no factor for Simeone|
|Copa Libertadores Review: Pumas UNAM, Atletico Nacional advance to quarter-finals|
|Adelaide want Leicester City friendly|
|Tottenham have proven critics wrong - Eriksen|
|Ferdinand ´turned on´ by Simeone´s Atletico|
|Wilson hoping Brighton experience enough for United|
|Griezmann urges team-mates to keep feet on the ground|
|We´ve learned from past errors - Fernandinho|
|Payet cleans up West Ham awards|
|´We don´t need superstars´ - Ranieri|
|Vidal: Bayern are still the best in the world|
|Guardiola: I have given my life to Bayern|
|Simeone: Atletico have eliminated two of the world´s three best teams|
|Leicester owner reveals Vardy signing doubts|
|Bayern feel cheated, says Rummenigge|
|Boateng: Bayern solely to blame for Champions League exit|
|Zabaleta confirms calf injury|
|´It was a siege´ - Torres proud of Atletico after holding off Bayern|
|Liverpool v Villarreal: Klopp demands improvement in Anfield return|
|Bayern Munich 2 Atletico Madrid 1 (2-2 agg): Griezmann clinches final berth with away goal|
|AFC Champions League Review: Victory, Al Hilal and Al Ain qualify with wins|
|Courtois ´100 per cent´ committed to Chelsea, denies PSG contact|
|Pellegrini: Madrid are more than Ronaldo|
|Trabzonspor handed four-game stadium ban|
|Morata muscle tear ruled out|
|Sevilla v Shakhtar Donetsk: Vitolo fired up to seal historic Europa League final spot|
|UEFA has opened Pandora´s box with Kosovo decision - Serbian FA president|
|Infantino claims positive response to FIFA funds plan|
|Aubameyang reiterates Real Madrid desire|
|Huth and Fellaini charged by FA|
|Cahill hopes for FA understanding after fiery Tottenham clash|
|Kehl slams Dortmund fans over Hummels boos|
|Mourinho congratulates Ranieri for winning ´my title´ with Leicester|
|Confusion reigns as City confirm Toure travels to Madrid|
|Mata: United can finish fourth and win FA Cup|
|Missing Champions League final would be a failure - Zidane|
|City without Toure for Real Madrid semi-final|
|Infantino hails Leicester title as ´the magic of football´|
|Redknapp talks up ´South Coast Mariners´ role|
|Real Madrid can cope without Benzema - Navas|
|Ronaldo returns for Madrid, but Benzema will miss Bernabeu clash|
|Ranieri wants happy players for title defence|
|Kosovo win vote to become UEFA member nation|
|Drinkwater: Leicester title is mad, bonkers|
|Morgan predicts tear-stained Premier League trophy|
|Transfer market travails and the empire striking back: What next for Leicester City?|
|Toure trains ahead of Real Madrid clash|
|Guardiola´s rotation policy a potential own goal - Magath|
|Ballack backs Atletico to prove too strong for Bayern|
|Messi agreed with Olympics snub - Martino|
|Benzema misses Real Madrid open training|
|Ranieri: We want to improve|
|Ronaldo: Like it or not, I´ll go down in history|
|Strootman delighted with return to Roma starting XI|
|Laporte dismisses Manchester City rumours|
|Ranieri has silenced critics, says Kisnorbo|
|Van Gaal: I am one of the best managers in the world|
|Santa Cruz: Guardiola will bring better football to City|
|Guardiola always a bit anxious - Kahn|
|Kisnorbo: No one will forget Leicester´s fairytale run to Premier League glory|
|Rodgers backs Klopp´s handling of Sturridge|
|Wright: No one would have touched Kante and Co.|
|Smalling: Captaining United an honour|
|No surprises in Mexico´s 40-man Copa squad|
|Juanfran: We are a team of details|
|Stepanenko: My friendship with Yarmolenko is over|
|Leicester fan Martinez: I am glad it did not happen in Germany|
|Schwarzer has shown age is just a number - Kisnorbo|
|Mangala: City want to make history in Champions League|
|Lineker struggling to believe Leicester success|
|Carrick: Top four not gone yet|
|De Gea named United´s player of the year|
|Dundee 2 Dundee United 1: Visitors relegated|
|King delighted to crown Leicester rise with title|
|Ranieri: I knew I would win a title eventually!|
|Soccer world reacts to Leicester´s remarkable Premier League title|
|Serie A Review: Strootman starts as Roma fight back again|
|Leicester success a ´good omen´ for Selby|
|Kane: Chelsea celebrated like they won title|
|Thumping Man City, edging Tottenham and five matches that won Leicester the Premier League|
|Vardy marvels at Leicester´s finest hour|
|Ranieri called me to say thanks, reveals Hiddink|
|Leicester did the impossible - Morgan|
|Terry: Leicester title triumph gives hope to smaller sides|
|Pochettino proud as Spurs fall short|
|Savage: Leicester title a key moment in Premier League history|