Use flood fill (DFS or BFS) when you need to mark or count connected regions. Use multi-source BFS when computing distances from a set of cells. Use bitmask BFS when collecting items changes your movement options.
Boundary problems are easy to recognize. Look for cells that touch the grid edge. These often require starting from the boundary and working inward.