A German Shepherd, thanks to its formidable learning capacity, loyalty and versatility, is responsible for ensuring the safety of the flock.