Skip to content
Sharp

Microservice Architecture · interview question

In a Docker container, how can you ensure that the Java application is decoupled from the host's Java version?

Multiple choiceHardchapter-18-curatedpremiummicroservice-architecturedocker-containerization
Choose one answer
Answer and explanation

Correct answer

D. Include the JDK in the Docker image

Why

By including the JDK in the Docker image, you ensure that the Java application uses the specific Java version packaged with the image, independent of the host's Java version.

Test yourself on Microservice Architecture

A free test with instant, explained results. No account needed.

Start free test
All Microservice Architecture questions →