Full AWS Practitioner Certification Question

A startup has developed an image editing web application where users can upload pictures and apply custom frames to them. Users upload both the image files and metadata describing the desired frame. The current setup uses a single Amazon EC2 instance for processing and Amazon DynamoDB to store metadata. As the application gains popularity, user traffic fluctuates significantly throughout the day and week. The company wants to scale the application seamlessly to handle spikes in usage, while keeping the infrastructure flexible and cost-efficient.What is the best solution to meet these requirements?