Fred scored the only goal of the game as Brazil completed their World Cup preparations with a hard-fought 1-0 win over Serbia.
The Selecao were struggling to break down their European opponents when, in the 58th minute, the forward expertly controlled a long ball forward from Thiago Silva before prodding home.
Brazil had chances to add to their tally but were ultimately forced to settle for a narrow win.
Having not been tested by Panama in midweek, the World Cup hosts 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.
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, the striker cleverly chesting Thiago Silva's delivery to take Branislav Ivanovic out of the game and then prodding the ball past Vladimir Stojkovic - despite having stumbled before doing so.
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'
|Bayern Munich v Borussia Monchengladbach: Wounded Bayern on the brink of Bundesliga glory|
|Reina lauds Atletico ´super-team´|
|AC Milan announce €89.3m loss|
|Wilshere: Injuries inevitable with my style of play|
|Atletico Madrid v Rayo Vallecano: Saul demands La Liga focus|
|Mancini feels Toure swoop is unlikely|
|Atletico a joy to watch, says Allardyce|
|Liverpool ordered to pay record tribunal fee to Burnley for Ings|
|Klaassen not interested in Napoli move|
|Borussia Dortmund v Wolfsburg: Hummels transfer request disrupts hosts´ preparation|
|Alli banned for the rest of Spurs´ season by FA|
|West Brom v West Ham: Bilic tips Pulis to put up a fight|
|Agbonlahor steps down as Aston Villa captain|
|Real Betis v Barcelona: Mixed emotions for Montoya as visitors close in on title|
|Hummels tells Dortmund he wants Bayern move|
|Matuidi out of PSG-Rennes clash|
|Newcastle United v Crystal Palace: Pardew poised for St James´ return|
|Flores reveals Watford break clause|
|England´s Jones helps Pardew keep Eagles grounded|
|Arsenal v Norwich City: Under-fire Wenger buoyed by easing injury woes|
|Forster: Chelsea rumours a compliment|
|Lambert to leave Blackburn|
|Sakho provisionally suspended by UEFA|
|Stoke City v Sunderland: Allardyce wary of wounded Potters|
|Falcao: USA can win Copa America|
|Madrid confirm Benzema hamstring strain|
|Everton v AFC Bournemouth: Martinez wants repeat of Wembley second-half|
|Fabregas wants title challenge under Conte|
|The pressure got to me at Tottenham, reveals Soldado|
|Bilic has no concerns over Cresswell future|
|Bilic: I might have to be a Manchester United fan!|
|Real Sociedad v Real Madrid: Carvajal hoping to cope without Benzema and Ronaldo|
|Martinez: Judge me over three seasons, not two or three months|
|Unhappy Muller accepts being dropped for Atletico clash|
|Cattermole crucial to Sunderland relegation fight - Allardyce|
|Leicester success not a one-off - Mandaric|
|There cannot be two coaches of Inter - Mancini|
|Guardiola: Don´t compare Saul to Messi|
|MLS Review: NYC stumble again, Timbers hold Revolution|
|America 2 Tigres UANL 1 (4-1 agg): Arroyo, Martinez seal win|
|Copa Libertadores Review: Rosario claim away advantage, Corinthians hold Nacional|
|PSG prospect Edouard signs first professional contract|
|Gap between Juventus and Milan is ´embarrassing´ - Sacchi|
|Mancini: I made some errors this season|
|Schlupp: Leicester are playing to win the title|
|Leicester showing nothing is impossible - Del Piero|
|Zidane does not like James, claims Valderrama|
|Pressure on ´legendary´ Liverpool - Marcelino|
|Madrid clash ´career-defining´ - Kompany|
|Neuer: We have to be awake in Munich|
|Moreno: I´m at my best thanks to Klopp|
|Bale: City are elite but Madrid more mature|
|We showed we belong - Oblak|
|Torres: This is for the Atletico supporters|
|Alonso: It could have been worse but Bayern still believe|
|Simeone praises ´best´ Atletico after Bayern triumph|
|Guardiola blames slow start for Bayern loss|
|Saul hails most important and beautiful goal of his career|
|Filipe Luis lauds Atletico match-winner Saul|
|Chelsea down City for third straight FA Youth Cup|
|Atletico Madrid 1 Bayern Munich 0: No joy for Pep as Saul answers the call|
|Lille 0 Angers 0: Coupe de la Ligue finalists frustrated in stalemate|
|Lucescu plays down Konoplyanka factor|
|Experience can count for nothing, Klopp warns Liverpool|
|Sevilla are ready to make history - Emery|
|Klopp delight for Hillsborough families|
|Cosmos boss claim contact with Totti|
|Paris Saint-Germain v Rennes: Pastore insists champions remain motivated|
|Ronaldo will be ´80 per cent´ fit... according to his mother|
|Europa League a ´dream´ for Villarreal and Soldado|
|Ozil: Third place will mean Arsenal have achieved target|
|The Bendtner experiment was a failure - Allofs|
|Infantino wants friendly between North and South Korea|
|´The worst cash out decision in history´ - Leicester backer bailed on 5000/1 bet - for 95p!|
|Sakho will not contest doping offence, but has Euro 2016 lifeline|
|Ibrahimovic, Di Maria, Ben Arfa up for Ligue 1 award|
|Simeone banned for rest of Liga season|
|Cazorla open to Villarreal return|
|RB Leipzig rejected Vardy for being ´too old´ at 27|
|Villa: Griezmann at Messi and Ronaldo´s level|
|ICC chief dreams of hosting Old Firm derby at Wembley|
|Evra: Allegri has no time for idiots|
|Beckenbauer backs Hoeness to step in for Sammer at Bayern|
|Benzema is France´s best striker - Sagna|
|Guardiola: Bayern success hinges on Champions League|
|´Never give up and be positive´ - Ronaldo rallies Madrid team-mates|
|Hart performance was ´Schmeichel-esque´ - Ferdinand|
|Benitez relieved for Hillsborough families|
|It´s hard without Ronaldo - Kroos|
|Former Inter midfielder Mariga banned for five games for injuring referee|
|Nichols free to play grand final|
|Copa Libertadores Review: Mosquera gives Tachira advantage, Nacional hold Huracan|
|Sampaoli: I almost joined Chelsea|
|Leicester´s triumph unbelievable, but deserved - Fletcher|
|Szczesny wants Roma stay|
|Torres: Nothing would compare to winning a title with Atleti|
|Ramos satisfied with 0-0 draw|
|Filipe Luis: Leicester are like Atletico|
|Ronaldo is not a child - Casemiro|
|Lewandowski: Maybe I will play in England or Spain|
|There are ´a million´ more disappointing results than 0-0 - Kompany|
|Leicester don´t need Vardy to win title at United, says Simpson|
|Dalglish: Families deserve Hillsborough verdict|
|Moving Southampton game impossible - Pellegrini|
|Tavecchio coy on Conte replacement|
|Pellegrini accuses Madrid of lacking intent in stalemate|
|Bale pleased with Madrid display|
|Ronaldo, Benzema doubtful for second leg against City|
|Silva out of semi-final second leg with hamstring injury|
|Football League Review: Walsall close in on top two, Portsmouth seal play-off place|
|Reluctant saviour Bale fails audition as Ronaldo´s successor|
|Manchester City 0 Real Madrid 0: Honours even at Etihad|
|Shakhtar Donetsk v Sevilla: Stepanenko ready for reigning champions|
|Simeone hints at future Inter role|
|Simeone ready for Bayern battle|
|Tottenham eye Marseille´s Batshuayi|
|Eric Black calls on fans to help Villa bounce back|
|Pochettino: Managing PSG would be a dream|
|Lahm desperate for away goal in Spain|
|Raul surprised by Zidane coaching role|
|Ronaldo out of Manchester City v Real Madrid|
|Atletico have no weaknesses, Falcao warns Bayern|
|Zieler to leave relegated Hannover|
|Guardiola will leave great legacy behind at Bayern - Alonso|
|Villarreal v Liverpool: Klopp ready to fight|
|Aldridge - the biggest victory in the history of the club|
|Ayre hails ´resilience and dignity´ of Hillsborough families|
|Alli charged by FA|
|Ben Arfa addresses transfer talk - ´Everything is possible´|
|Norwich, Sunderland warned and fined by FA|
|Kane: Spurs must cope with teams getting under our skin|
|Bale keen for Tottenham return|
|Intimidation key to Cech´s success|
|Atletico treating Bayern clash like a final - Saul|
|Hummels thinking about Bayern, confirms Rummenigge|
|Hillsborough ´the greatest miscarriage of justice of our time´ - Burnham|
|Boateng in Bayern squad for Atletico clash|
|Crown Prosecution to consider criminal charges after Hillsborough verdict|
|Coric claims Bayern, Madrid and Manchester City interest|
|Juventus fear losing Morata and Cuadrado|
|Hillsborough victims were unlawfully killed, says jury|
|Hernandez: I rejected Juventus for Leverkusen|
|Pepe: I am not violent - Neymar has more yellows|
|Buffon: Champions League must follow for Juventus|
|BREAKING NEWS: Vardy hit with additional one-game ban by FA|
|Davids defends Neymar over Barcelona form|
|Sydney FC sign Australia´s Wilkinson|
|Running of the bulls easier than playing Atletico - Watzke|
|Sakho has let Liverpool down, says Carragher|
|Juventus were ´extremely lucky´ to win Serie A, claims Maradona|
|´Strong character´ Alli sometimes provoked – Pochettino|
|Vidal hopes to retire at Bayern Munich|
|Leicester star Mahrez not interested in move to PSG|
|Gameiro plays down Barcelona link|
|Benitez has got Newcastle fighting with aggression - Anita|
|Allegri set to sign new deal after Scudetto triumph - Marotta|
|Boufal weighing up every option ahead of expected move|
|Napoli will sell Higuain and should replace him with Kane, says Maradona|
|Toure ready to fill Sakho void against Villarreal|
|Martial has proved worth to United, says Smalling|
|Dortmund fans would give Gotze a second chance - CEO|
|Dortmund open to Hummels exit|
|Pulis delighted with West Brom work-rate|
|Juve captain Buffon revels in ´most beautiful Scudetto´|