The ticking noise when you coast is normal. It's just the pawls in the freewheel/freehub that keep the freewheel from turning backwards. That noise will always be that loud. It's just a function of the freewheel design. You should learn to love that sound.

The noise when you pedal is not good. As Annie said, take it back to your LBS for an adjustment. It's supposed to need that adjustment after a few weeks. And it will take about 10 minutes. It's caused by the rear derailleur cage not being perfectly aligned with the cog on the cassette, so the chain is landing off center to the cog and it dings or grinds. A well-adjusted bike should be quiet when you are pedaling.