How to add below configuration snippet into your client code<SCALA> to connect to this Confluent Cloud Kafka cluster

Required connection configs for Kafka producer, consumer, and admin
security.protocol=SASL_SSL   required username='{{ CLUSTER_API_KEY }}'   password='{{ CLUSTER_API_SECRET }}';
# Required for correctness in Apache Kafka clients prior to 2.6

Best practice for higher availability in Apache Kafka clients prior to 3.0

Best practice for Kafka producer to prevent data loss


Hi @AbdulFaheem . Welcome to the Community forum!
You add it to your producer properties. I can help you with Java (not Scala):

        Properties props = new Properties();
        props.put("bootstrap.servers", "");
        KafkaProducer<Integer, String> producer = new KafkaProducer<>(props);