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'
|West Ham 3 Lusitans 0: Sakho nets twice at start of Europa League journey|
|Holebas makes Watford move|
|Milan secure Adriano signing|
|Peru v Paraguay: Diaz counts cost of semi-final loss|
|Bastia hit out at reports of extra debt|
|Hernandez has successful surgery|
|Odemwingie signs one-year Stoke extension|
|Uth signs for Hoffenheim|
|Henen seals Everton return|
|Cattermole pens long-term Sunderland deal|
|United States v Guatemala: Klinsmann backs Dempsey ahead of Gold Cup warm-up|
|West Ham working on Jenkinson return - Gold|
|Milan agree deal for Bacca|
|Real buy back Vazquez from Espanyol|
|Richards leaves Swansea for Fulham|
|McShane signs for Reading|
|Giggs tells youngsters to seize US chance|
|Hammond pens Leicester extension|
|Only Schweinsteiger can decide Bayern future - Guardiola|
|Cech plans to play until he´s 40|
|Montoya arrives in Milan ahead of Inter move|
|Hernandez out of Gold Cup|
|US asks Switzerland to extradite seven FIFA officials|
|MLS Preview: Sounders seek momentum switch|
|Mexico 0 Honduras 0: Hernandez injury sours friendly|
|Hernandez taken to hospital|
|Garay in doubt for Copa America final|
|Wambach: USA peaking for World Cup final|
|Bassett ´an absolute hero´ despite own goal - Sampson|
|Japan 2 England 1: Late own goal breaks English hearts|
|Salvo quits as Valencia president|
|Costa not Ribery cover - Bayern director Sammer|
|Chile, Argentina deserve final spots - Mena|
|Ramos keen on United switch - Calderon|
|B36 1 The New Saints 2: Wilde leaves it late to secure advantage|
|Sevilla agree deal for Rami|
|Celtic snap up United teenager Janko|
|Beauvue passes Lyon medical|
|Roma bring in Falque|
|Coates completes permanent Sunderland switch|
|Vallecano to make charity donations from shirt sales|
|Angella commits to Watford|
|Gundogan pens new Dortmund deal|
|Juve reject €80million Barca offer for Pogba, says Marotta|
|Ruiz seals permanent Villarreal move|
|Mourinho respects Cech´s decision to quit Chelsea|
|Claridge excited by potential Pearson successors|
|Miranda completes Inter switch|
|Blind takes over as Netherlands coach|
|Mourinho: Premier League tougher to win than ever|
|Hamburg make Holtby move permanent|
|Southampton terminate Osvaldo contract|
|BREAKING NEWS: Swansea swoop for Eder|
|Abbiati extends Milan stay|
|Cruyff: Barcelona have lost their values|
|Vydra seals Watford move|
|Ambitious Clyne targets trophy haul with Liverpool|
|Claridge: Off-field incidents cost Pearson his job|
|Clyne becomes Liverpool´s sixth close-season signing|
|Imbula leaves Marseille for Porto|
|FIFA chief Blatter challenges critics to prove corruption claims|
|Distin joins Bournemouth|
|Bayern seal Costa deal|
|Arsenal confirm Diaby departure|
|Blatter to miss Women´s World Cup final|
|Bogdan sets sights on being Liverpool number one|
|Danilo eager to get started at Real Madrid|
|Leicester´s Wood joins Leeds|
|Porto confirm Atletico move for Martinez|
|Lloyd: Repetition key to netting penalty|
|Sheffield Wednesday job a ´dream´ for Carvalhal|
|´We played a complete game´ - Messi|
|Diaz upbeat despite heavy Copa loss to Argentina|
|Martino lauds Messi for selfless performance|
|Viviani makes surprise Verona switch|
|Estonian team wins cup match 31-0|
|No meeting with Arsenal has occurred - Vidal´s agent|
|United States 2 Germany 0: Ellis´ team reach World Cup final|
|Argentina 6 Paraguay 1: Messi leads Martino´s men to Copa final|
|UEFA Europa League Review: FK Zeljeznicar and FC Dacia Chisinau open with wins|
|UEFA Champions League Review: FC Pyunik make winning start|