Geometric constrained variational calculus. III: The second variation (Part II)