Complete the code to specify the JMX port for Kafka broker.
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.port=[1]"
The default JMX port for Kafka metrics is often set to 9999 to avoid conflicts.
Complete the code to enable JMX remote access without authentication.
KAFKA_JMX_OPTS="$KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.authenticate=[1]"
Setting com.sun.management.jmxremote.authenticate to false disables authentication for JMX remote access.
Fix the error in the JMX options to enable SSL for JMX remote connections.
KAFKA_JMX_OPTS="$KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.ssl=[1]"
The property com.sun.management.jmxremote.ssl expects a boolean value like true or false to enable or disable SSL.
Fill both blanks to create a dictionary comprehension that collects JMX metrics for topics with names longer than 5 characters.
metrics = {topic: metrics_data[topic][1] for topic in topics if len(topic) [2] 5}The comprehension collects the 'message_count' metric for topics whose name length is greater than 5.
Fill all three blanks to filter and transform JMX metrics into a new dictionary with uppercase topic names and only metrics with values above 100.
filtered_metrics = [1]: metrics_data[topic] for topic in topics if metrics_data[topic][[2]] [3] 100
This comprehension creates a dictionary with uppercase topic names as keys and filters metrics where 'message_count' is greater than 100.