I bought a furnished house on the second floor, and now I am worried about what I should do if there is water backflow from the sewer or bathroom? How to prevent it? Thanks!

If the finely decorated house you bought has been renovated, it is impossible to solve the problems you are worried about at once unless you re-connect your sewer pipes and bathroom pipes. Go up the main pipe so that any problems they have, whether on the first floor or upstairs, will not have anything to do with you. Only by disassembling the pipes can you better solve the problem once and for all.