Cloud Application Security

Which design practice lets a cloud application add or remove instances freely without losing user session data?

Show the answer

Correct answerA. Storing session state in an external shared data store

AWhy this is right: Externalized state means no instance holds unique data, so instances can be added or removed freely.

BWhy not this: Hard-coded addresses make the client depend on specific instances and block elastic scaling.

CWhy not this: Local memory ties each session to one instance, so scaling in or an instance failure loses that session.

DWhy not this: A single instance cannot scale out and is a single point of failure, which runs against cloud design.

Stateless application design keeps session state outside the instances, in a shared store, so any instance can serve any request and instances can scale in or out. Local memory ties sessions to one instance, so removing that instance loses the data.