Generally, deer bob their heads when they need to determine if something is a threat. They often adjust their ear posture when they feel threatened, too.