How is the exogenous DNA protected from degradation during bacterial transformation?
Different bacteria have different modes of transformation and as I understand it is Haemophilus influenzae that takes up the single strand whereas ?Streptococcus [i am not sure which bacteria it is] takes up dsDNA. 

I intuitively think that DNAses are not that common like RNAses. Moreover, natural competence is associated with stress and is even triggered by DNA damage. Therefore we can speculate that DNA repair proteins will be prevalent and DNAses will be low in the cell, under these conditions. The chance of foreign DNA being damaged goes down.

In the case of artificial transformation, I guess the entire concept of heat shock is a way of providing stress. Moreover, the lab strains such as DH5alpha have certain mutations which disable them from recognizing a plasmid as "foreign".