This method is only enabled if you are using an ESP32/ESP8266 based board, and sets the secret device key for the device. The secret key is only obtainable from the Arduino IoT Cloud during device configuration.
ArduinoCloud.setSecretDeviceKey(DEVICE_KEY);