Bookmark this page

Quiz: Configuring the JVM in a Standalone Server

Configuring the JVM in a Standalone Server

Choose the correct answer to the following questions:


  1. 1.

    How many survivor spaces are in the young generation of the Java Virtual Machine (JVM)? (Choose one.)

    A

    1

    B

    2

    C

    3

    D

    4

  2. 2.

    Which of the following statements are true? (Choose two.)

    A

    The metaspace and the permanent generation have to be equal in size in JDK 1.8.

    B

    There is no permanent generation in modern JDKs.

    C

    JBoss EAP 7 can run on JDK 1.7 as well as JDK 11.

    D

    JBoss EAP 7 can only run on JDK 1.8 and later.

    E

    In JDK 1.8, the minimum and maximum JVM heap sizes must always be set to the same value.

  3. 3.

    Which of the following statements are false? (Choose two.)

    A

    Java developers must deallocate the objects created in their programs when running in Red Hat JBoss Enterprise Application Platform (JBoss EAP).

    B

    For an EAP 7 standalone server, you cannot change the JVM settings without restarting the server.

    C

    The young generation, or eden memory size is always less than the maximum heap size configured for the JVM.

    D

    You cannot run more than one JBoss EAP standalone server per operating system.

    E

    The tenured region memory size is always less than the maximum heap size configured for the JVM.

  4. 4.

    Which of the following statements are correct? (Choose two).

    A

    The minimum heap size of a JVM can be greater than the maximum heap size.

    B

    The minimum heap size is always less than or equal to the max heap size.

    C

    The min heap size is always less than and can never be equal to the max heap size.

    D

    You can set both minimum and maximum heap size of a JVM to a value greater than the memory allocated (RAM) to the operating system.

  5. 5.

    Consider the following configuration in the standalone.conf file of an JBoss EAP server

    JAVA_OPTS="-Xms4096m -Xmx2048m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=4098m"

    Which of the following statements is correct? (Choose one.)

    A

    The server fails to start because the maximum metaspace size is greater than the maximum heap size.

    B

    The server fails to start because the value of the minimum heap size is too low.

    C

    The server fails to start because the minimum heap size is greater than the maximum heap size.

    D

    The server starts successfully with no errors

    E

    The JVM immediately allocates 2GB because the maximum heap size is set to this value.

Revision: ad248-7.4-18a9db2