President Barack Obama defended Friday the National Security Agency's massive surveillance programs that have caused an uproar after they were exposed by the Guardian newspaper in London.