Cognizant interview question

How do you ensure security in REST