Accelya Group interview question

In a project they asked how did i ensured security while maintaining less memory consumption