The length of any two sides of a triangle must be larger than the remaining side, otherwise you won't have a connecting triangle.
So if AB is the largest side, then AC needs to be greater than 2. And if AC is the largest side, AC must be less than 8. Which means the answer is B.