Question: how long are federal district judges appointed for?
Answer: Tenure and salary "Article III federal judges" (as opposed to judges of some courts with special jurisdictions) serve "during good behavior" (often paraphrased as appointed "for life"). Judges hold their seats until they resign, die, or are removed from office.