A solutions architect is implementing a complex Java application with a MySQL database. The Java application must be deployed on Apache Tomcat and must be highly available. What should the solutions architect do to meet these requirements?
ADeploy the application in AWS Lambda. Configure an Amazon API Gateway API to connect with the Lambda functions.
BDeploy the application by using AWS Elastic Beanstalk. Configure a load-balanced environment and a rolling deployment policy.
CMigrate the database to Amazon ElastiCache. Configure the ElastiCache security group to allow access from the application.
DLaunch an Amazon EC2 instance. Install a MySQL server on the EC2 instance. Configure the application on the server. Create an AMI. Use the AMI to create a launch template with an Auto Scaling group.