AD0-E123 practice question 8 of 10

A developer is checking an AEM start script on the server and notices the CQ_JVM_OPTS parameter is set to the following: '-agentlib:jdwp=transport=dt_socketladdress=8000,server=y,suspend=n" How will this value affect the start of the AEM instance?

Full set: 50 questions
Answer options
A: AEM instance will run in the debug mode Correct answer
B: AEM instance will temporarily be suspended, and it will not be able to start
C: AEM instance will start in the publish mode
Correct Answer:
A. AEM instance will run in the debug mode
Explanation

The CQ_JVM_OPTS parameter in an AEM start script is used to set options for the Java Virtual Machine (JVM). The setting '-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n' enables the Java Debug Wire Protocol (JDWP) agent for the JVM, allowing a debugger to attach to it. The suspend=n flag means the JVM will not suspend at the start but will wait for a debugger to connect on port 8000. This effectively runs the AEM instance in debug mode, which is useful for development and troubleshooting.
Option B is incorrect because the suspend=n setting means the JVM does not suspend on start-up.
Option C is incorrect because this parameter is for debug mode, not for specifying the run mode of the AEM instance.

Scroll to Top