QuestionQ458

Application Deployment and Security

Refer to the exhibits.

Question Image

Question Image

An application was developed to handle multiple requests concurrently. After it was deployed, it was found to perform poorly under heavy load. To resolve the performance problems, the application must transition from a stateful architecture to a stateless architecture. Which change must be made to the application following the performance evaluation?

  • A Increase the number of nodes.
  • B Scale the application vertically.
  • C Include a file in every application with the user credentials.
  • D Set the expiration time of user data to one month.
Explanation

Load-balanced Flask instances must be able to validate a user's session regardless of which instance receives the request. Flask implements its default sessions with signed client-side cookies; configuring every application instance with the same session credentials or secret key lets each instance process the session without relying on per-instance state. Flask Sessions documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!