
Answer-first summary for fast verification
Answer: Use AWS Elastic Beanstalk with load balancing and rolling deployments.
The correct answer is B. AWS Elastic Beanstalk is designed for deploying and managing applications in various environments, including Java applications with Apache Tomcat and MySQL databases. It supports load balancing and rolling deployments, which are essential for high availability. Option A is incorrect because AWS Lambda is suitable for serverless applications and may not be ideal for a complex Java application with persistent connections to a MySQL database. Option C is incorrect as Amazon ElastiCache is a caching solution, not a relational database, and does not directly address deploying a Java application with Apache Tomcat. Option D, while possible, requires more manual setup and maintenance compared to the automated features provided by AWS Elastic Beanstalk.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should a solutions architect ensure high availability for a complex Java application using Apache Tomcat and MySQL?
A
Deploy on AWS Lambda and set up Amazon API Gateway.
B
Use AWS Elastic Beanstalk with load balancing and rolling deployments.
C
Switch the database to Amazon ElastiCache and adjust security settings.
D
Utilize Amazon EC2 with MySQL, create an AMI, and implement Auto Scaling via a launch template.
No comments yet.