Full AWS Practitioner Certification Question

After an incident has been managed and operations have been restored, what step should be taken to avoid the same incident in the future?