Full AWS Practitioner Certification Question

A logistics company is experiencing performance issues with its core application hosted on Amazon EC2 instances. The application is stateful and performs memory-intensive, in-memory processing tasks. The infrastructure was provisioned using AWS CloudFormation and is currently using M5 instance types. As user traffic has grown, the system has become sluggish, and end users are now reporting delays when interacting with the application.What is the most operationally efficient solution to address these performance issues?