German Shepherds get along well with children and other pets if raised with them, but their protective instinct can make them suspicious of strangers.
This breed is considered intelligent and easily trainable.
Some dogs, bred by irresponsible breeders, can be nervous and sensitive. If, in addition, this is combined with poor socialization and inadequate training, then such a dog is at high risk of aggressive and overly protective behavior.
Just keep reading and find a perfect book for yourself.