As per the AWS Acceptable Use Policy, penetration testing of EC2 instances: | AWS Certified Cloud Practitioner Quiz - LeetQuiz