The Archer is a ranged unit, the first such unit unlocked in the Barracks.
The Archer is the second overall troop unlocked.
The Archer has no preferred targets, she attacks whatever comes within her shooting range (unless there are Clan CastleTroops nearby, which will eventually cause the Archers to turn and attack them).