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'
|Late Drinkwater strike helps Leicester see off Walsall|
|Everton seal club-record Lukaku deal|
|Lazio complete De Vrij capture|
|Fabregas opens account in Chelsea win|
|AFA president Grondona dies aged 82|
|Trezeguet heading for Indian Super League|
|Premier League to introduce vanishing foam|
|Rennes bring in Bruls|
|Kehl steps down as Dortmund captain|
|Capello: I´m staying until 2018|
|Pedro saddened by Fabregas departure|
|Fernandez agrees Porto switch|
|West Ham close on Jenkinson, says Allardyce|
|Donnelly out for three months|
|Chambers: It has been a whirlwind|
|Lukaku drops Chelsea exit hint|
|Mee signs new deal at Burnley|
|Lovren denied United States visa|
|Redknapp admits Fer interest|
|No official Cuadrado bids, insists agent|
|Maguire ready to make step up|
|Rodgers: Liverpool have a strategy in transfer market|
|Ki out to prove himself at Swansea|
|Garcia plays down importance of Real scalp|
|Evian complete Bruno signing|
|Poyet frustrated by lack of new faces|
|Mexes convinced Milan are improving|
|Mazzarri praises Inter attitude|
|Ronaldo could face Manchester United - Ancelotti|
|Tevez thanks fans after father found ´safe and well´|
|Gabi braced to tackle big-spending rivals|
|Shaw: I deserved Van Gaal criticism|
|Morinigo surprised by Gedoz substitution|
|Honduras appoint Medford|
|Van Gaal delighted with United display|
|Roma battle past Real Madrid|
|Simeone talks up Hernandez transfer|
|Defensor Sporting 1 Nacional Asuncion 0 (1-2 agg): Visitors into final despite loss|
|United edge Inter on penalties|
|Gerrard: It´s been ´the worst three months of my life´|
|Sabella set to quit Argentina post|
|Toure plans to see out career with City|
|Tevez´s father released after kidnapping|
|Benitez denies Callejon spat|
|Brownhill stunner downs Burnley|
|Sunderland edge out Recreativo|
|Barton and Hoilett earn QPR draw|
|UEFA Champions League Review: Lafata treble puts Sparta in command, Slovan beat Sheriff|
|Gomis opens Swansea account at Exeter|
|Schneiderlin hints at Southampton discontent|
|Scolari makes Gremio return|
|Bojan strike in vain as Schalke beat Stoke|
|Tevez to miss friendly amid kidnap reports|
|Porto sign Jose Angel from Roma|
|UEFA Europa League Preview: Trencin v Hull City|
|Liverpool land Origi|
|UEFA Europa League Preview: Torino return to Europe after 20-year absence|
|Rodriguez and Schneiderlin not for sale, say Southampton|
|Rakitic: Not all about front three|
|Barkley pens new Everton deal|
|Guardiola relishing Chivas friendly|
|Drogba targets Premier League glory|
|Hull make Maguire and Robertson double swoop|
|Perisic blow for Wolfsburg|
|Ibrahimovic scores hat-trick as PSG hammer Kitchee|
|Al-Hilal coach sacked over referee row|
|La Liga boss wants cream of the crop|
|Valencia granted work permit, completes West Ham move|
|Atletico complete deal for Griezmann|
|Reus focused on fitness battle despite ´major European interest´|
|Barcelona announce club-record revenue|
|Bony could be sold for right price, says Jenkins|
|Confidence key for Newcastle, says Taylor|
|Saivet out for four weeks with knee injury|
|Genk part company with Ferrera after just one game of season|
|Gold clarifies Twitter gaffe|
|Vidic adapting to different style at Inter|
|Toulouse bring in Matheus|
|Butragueno backs Rodriguez to cope with pressure|
|Benteke aiming to come back stronger|
|Valdez joins Frankfurt|
|Jovetic ready to shine|
|Simeone hails Griezmann qualities|
|Monk unsure over De Guzman future|
|Benitez: Michu will take time to adjust|
|Diaby confident of staying fit|
|Shaw not fit enough, says Van Gaal|
|MLS Preview: RSL look for attacking spark|
|Monk slaps ´astronomical´ price on Bony´s head|
|Australian clubs looking at Ronaldinho|
|Sinclair enjoying ´one of the best pre-seasons´|
|Spiranovic surgery a success|
|Seattle Sounders 0 Los Angeles Galaxy 3: First-half blitz fires Californians to victory|
|Lemina thrilled with Bielsa effect|
|Bayern´s Green chomping at the bit|
|Palace complete US tour with easy win|
|Carragher: Liverpool didn´t want me|
|Simeone: Atleti´s La Liga triumph was no fluke|
|Sturridge: ´I´ll step up´|
|Van Gaal: Formation gives United flexibility|
|Mathieu insists age is no barrier|
|Martinez the deal sealer, says Besic|
|Coaches embrace blockbuster Serie A start|
|Ronaldinho to leave Atletico Mineiro|
|Lorient capture Ayew|
|Celtic loan Berget, sell Watt|
|Pires signs up for Indian Super League|
|Allegri set for early San Siro reunion in maiden Juve campaign|
|Bakayoko makes Monaco move|
|Bakayoko makes Monaco move|
|Lens granted Ligue 1 place|
|UEFA Champions League Preview: Red-hot Salzburg face Qarabag|
|Parma bring in Cassani from Fiorentina|
|De Vrij set for Lazio|
|BREAKING NEWS: Everton complete Besic signing|
|Kongolo pens Feyenoord extension|
|Redknapp confirms Granero exit|
|Advocaat confirmed as Serbia coach|
|CSL Preview: Henan aim to escape drop zone, Liaoning host Guangzhou RandF|
|Arribas makes Sevilla switch|
|Chambers joins Arsenal|
|Ospina buoyed by Arsenal recruitment|
|Liverpool´s loss is our gain, says Redknapp on Remy|
|Ferdinand: I would still be at United with Giggs in charge|
|Pepe targets Super Cup glory|
|Martinez prioritising striker signing|
|Perez not looking to leave Benfica|
|Klopp itching to work with full Dortmund squad|
|Mourinho: It feels like Drogba never left|
|FIFA asks for FIGC review into alleged racist remark|
|Hull to review Maguire deal|
|Wenger prepared to gamble on Chambers|
|Atletico agree Griezmann deal|
|Irvine planning further striker addition|
|Campbell: Black professionals scared to talk about racism|
|Mata backs Herrera to star in Premier League|
|Injured Rafael returning to Manchester|
|Schmidt demands more from Leverkusen|
|Copa Libertadores Preview: Defensor Sporting banking on home record|
|Remy´s Liverpool move off, confirms Rodgers|
|Inzaghi demands nastiness from Milan|
|MLS Review: Timbers triumph in Montreal, Dallas thwart Vancouver|
|Jovetic ready to lead City line - Pellegrini|
|Lewandowski impresses Ribery, Alaba|
|Colombian Primera A Review: Three clubs remain perfect, Atletico Nacional get off the mark|
|Rodgers: ´We can score goals´ without Suarez|
|Chilean Primera Division Review: Canales brace powers Universidad Chile|
|Atletico Madrid need penalties to edge past Earthquakes|
|Liga MX Review: Monterrey, America stay perfect|
|Paraguayan Primera Division Review: Capiata set pace|
|Brazilian Serie A Review: Cruzeiro win again, Kaka scores|
|Sterling goal sees Liverpool past Olympiacos|
|Peruvian Primera Division Review: Los Caimanes notch maiden win, Inti Gas claim top spot|
|CAF Champions League Review: Zamalek held, Vita Club leave it late|
|Jovetic at the double as Manchester City thrash Milan|