Money invested in the atal pension yojana is safe because this is a government scheme, and the scheme does not change when the government changes; your contribution is secure.