...
If server-side auto-creation is enabled with the broker's auto.create.topics.enable, the broker's defaults for partitions and replication factor will be used. When server-side auto-creation is disabled, client-side auto-creation will try to use client-side configurations if set. However, if none exist, as represented by -1, broker-side defaults can be used if the broker supports KIP 464. Client-side auto-creation is not supported for older brokers (greater than 0.10.1.1) if no client configurations are given. , and even older brokers (versions before 0.10.1.1) do not support client-side auto-creation at all.
Compatibility, Deprecation, and Migration Plan
...