Java SE 11 Developer (1Z0-819) — Question 99
Your organization provides a cloud server to your customer to run their Java code. You are reviewing the changes for the next release and you see this change in one of the config files:
old: JAVA_OPTS="$JAVA_OPTS -Xms8g -Xmx8g"
new: JAVA_OPTS="$JAVA_OPTS -Xms8g -Xmx8g -noverify"
Which is correct?
Answer options
- A. You accept the change because -noverify is necessary for your code to run with the latest version of Java.
- B. You reject the change because -Xms8g -Xmx8g uses too much system memory.
- C. You accept the change because -noverify is a standard option that has been supported since Java 1.0.
- D. You reject the change because -noverify is a critical security risk.
Correct answer: D
Explanation
The correct answer is D because using the -noverify option disables certain verification checks, which can leave the application vulnerable to security risks. Options A and C are incorrect as -noverify is not necessary for the latest Java version and is not a standard option. Option B is also wrong because the memory usage indicated by -Xms8g -Xmx8g may be appropriate depending on the application's requirements.