Migrating J2EE Application to the Cloud: Recommended Practices

Best Practices for Migrating J2EE Applications to the Cloud


The operations manager asks you for a list of recommended practices that she should consider when migrating a J2EE application to the cloud.

Which three practices should you recommend? (Choose three.)



Click on the arrows to vote for the correct answer

A. B. C. D. E. F.


References: https://cloud.google.com/appengine/docs/standard/java/tools/uploadinganapp https://cloud.google.com/appengine/docs/standard/java/building-app/cloud-sql.

When migrating a J2EE (Java Enterprise Edition) application to the cloud, there are several best practices that should be considered. Here are three of the most important ones:

  1. Instrument the application with a monitoring tool like Stackdriver Debugger (Option C) Monitoring is essential for any application running in the cloud. In order to ensure that the application is performing as expected, you need to monitor it for issues like performance bottlenecks, errors, and crashes. Stackdriver Debugger is a monitoring tool that allows you to monitor your application's performance and troubleshoot issues in real-time. It enables you to take snapshots of your application's state at any point in time, which can be extremely helpful when debugging problems.

  2. Select an automation framework to reliably provision the cloud infrastructure (Option D) Automation is key when it comes to cloud infrastructure management. When you're dealing with large, complex systems, it's easy for things to go wrong if you're relying on manual processes. That's why it's important to use an automation framework to provision and manage your cloud infrastructure. There are several automation frameworks available, such as Terraform and CloudFormation, that make it easy to manage your infrastructure as code.

  3. Deploy a continuous integration tool with automated testing in a staging environment (Option E) Continuous integration (CI) is the practice of continuously building and testing your application as you develop it. This helps you catch issues early on in the development process, before they become bigger problems. When migrating a J2EE application to the cloud, it's important to deploy a CI tool like Jenkins or CircleCI, and set up automated testing in a staging environment. This will allow you to catch issues before they're deployed to production, and ensure that your application is working as expected.

While the other options listed (porting the application code to run on Google App Engine, integrating Cloud Dataflow into the application to capture real-time metrics, and migrating from MySQL to a managed NoSQL database like Google Cloud Datastore or Bigtable) may also be important considerations, they are not as essential as the three practices listed above.