In the paragraph, the words resident and inhabitants are synonyms, words that have the same meaning (in that case it means someone that lives in X place, ) and that can be interchanged when you are writing as a way for not repeating the same word twice.
As for the options, the last phrase contains two synonyms as well, the words shelter and refuge. Both words means a place where one is protected; in that case, protected from the rain and wind.