Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 174 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 174
Topic #: 1
[All Professional Cloud Developer Questions]

You need to migrate a standalone Java application running in an on-premises Linux virtual machine (VM) to Google Cloud in a cost-effective manner. You decide not to take the lift-and-shift approach, and instead you plan to modernize the application by converting it to a container. How should you accomplish this task?

  • A. Use Migrate for Anthos to migrate the VM to your Google Kubernetes Engine (GKE) cluster as a container.
  • B. Export the VM as a raw disk and import it as an image. Create a Compute Engine instance from the Imported image.
  • C. Use Migrate for Compute Engine to migrate the VM to a Compute Engine instance, and use Cloud Build to convert it to a container.
  • D. Use Jib to build a Docker image from your source code, and upload it to Artifact Registry. Deploy the application in a GKE cluster, and test the application.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
anshad666
1 month, 2 weeks ago
Selected Answer: D
https://cloud.google.com/java/getting-started/jib
upvoted 1 times
...
__rajan__
1 year, 2 months ago
Selected Answer: D
Jib is a tool that builds Docker images from Java code without the need for a Dockerfile. This makes it easy to containerize Java applications, even if you don't have any experience with Docker.
upvoted 2 times
...
purushi
1 year, 3 months ago
Selected Answer: D
Going for D for the below reasons: - Cost effective way - Modernize the application by converting it to a container
upvoted 2 times
...
phil_thain
1 year, 5 months ago
Selected Answer: A
This seems to be exactly the situation described in this tutorial: https://cloud.google.com/migrate/containers/docs/migrating-monolith-vm-overview-setup So I think that option A is correct
upvoted 1 times
examprof
11 months, 3 weeks ago
Indeed, but I think Alt A doesn't address the whole picture. Migrate for Anthos itself would not automatically containerize the Java app running on the Linux VM. Migrate for Anthos can package the VM as a Kubernetes pod, but the application within the VM remains unchanged in its original form. To containerize this application and make it fully compatible with GKE, additional steps - those described in Alt D - would be required. Alternative D is correct.
upvoted 1 times
...
...
telp
1 year, 10 months ago
Selected Answer: D
Answer D https://cloud.google.com/blog/products/application-development/introducing-jib-build-java-docker-images-better
upvoted 1 times
...
TNT87
1 year, 11 months ago
Answer D https://cloud.google.com/blog/products/application-development/introducing-jib-build-java-docker-images-better
upvoted 1 times
...
zellck
1 year, 11 months ago
Selected Answer: D
D is the answer. https://cloud.google.com/blog/products/application-development/introducing-jib-build-java-docker-images-better
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...