Giải phương trình logarit: \({\log _a}f\left( x \right) = b \Leftrightarrow f\left( x \right) = {a^b}\).Giải chi tiết:Ta có \(\begin{array}{l}{\log _{\sqrt 3 }}\left| {x + 1} \right| = 2 \Leftrightarrow \left| {x + 1} \right| = 3\\ \Leftrightarrow \left[ \begin{array}{l}x + 1 = 3\\x + 1 = - 3\end{array} \right. \Leftrightarrow \left[ \begin{array}{l}x = 2\\x = - 4\end{array} \right.\end{array}\)Vậy phương trình đã cho có tất cả 2 nghiệm.Chọn A