Different structures of a bacterial cell perform different functions. What dispensable component of a cell ensures its survival within hostile environment?

Cilia
Capsule
Flagella
Spores
Inclusions