You do not need to reside in the District of Columbia because there are no restrictions on where an officer can live. However, there are hiring preferences for DC residents.  Additionally, there are great incentives to live in the district (see housing incentives).