Do apple give replacement on iPhone 5?

I have a annoying rattling sound coming from the iPhone 5 which I believe is the loose lock button minor I know but you would expect quality out of something you pay a lot for. I was wondering if apple store will replace it for a new one.

Take it to the store and se if they can fix it if you bought it with some like 1 year guaranty thing then they'll either fix it maybe for some cost or replace it i assume free if you gots that guaranty thing but yeah "you would expect quality out of something you pay a lot for" that statement made me laugh i have about 5 friends with iphone 4s and they all say after long time with the phone their opinions are that iphone suck and their next phone will be a samsung or xperia

You can if you have a warranty. You should contact them. If you bought the iPhone from a store (not the apple store) you should have a warranty (as long as it hasn't expired) and just go see them. If not, you can fix it a phone store. But I highly recommend you contact the Apple Support first to see what you are liable for.

Take it to the service center. They will either fix it or replace it only if your phone is under warranty

What does your warranty say? You'd be expected to have read it since you paid so much.

If its really making a rattling sound then yes they would fix it or replace it… Although I'm not sure how it could be making a rattling sound.