; and (II) there exists a severe shortage of qualified candidates because of the direct relationship identified by the Secretary under subsection (b)(1)(B) of this section between— (aa) the rural or remote nature of the area; and (bb) difficulty in the recruitment and retention of CBP employees in the area; and (ii) has given public notice for the positions. (B) Prioritization of hiring veterans If the Secretary uses the direct hiring authority under subparagraph (A), the Secretary shall apply the principles of preference for the hiring of veterans established under subchapter I of chapter 33. (2) Recruitment and relocation bonuses The Secretary may pay a bonus to an individual (other than an individual described in subsection (a)(2) of section 5753) if— (A) the Secretary determines that— (i) conditions consistent with the conditions described in paragraphs (1) and (2) of subsection (b) of such section 5753 are satisfied with respect to the individual (without regard to any other provision of that section); and (ii) the position to which the individual is appointed or to which the individual moves or must relocate— (I) is a position as a CBP employee; and (II) is in a rural or remote area for which the Secretary has identified a direct relationship under subsection (b)(1)(B) of this section between— (aa) the rural or remote nature of the area; and (bb) difficulty in the recruitment and retention of CBP employees in the area; and (B) the individual enters into a written service agreement with the Secretary— (i) under which the individual is required to complete a period of employment as a CBP employee of not less than 2 years; and (ii) that includes— (I) the commencement and termination dates of the required service period (or provisions for the determination thereof); (II) the amount of the bonus