In InfluxDB, you can set data retention policies for each bucket (database) to specify how long data should be retained. API tokens are used for authentication, allowing read and write access to the database, with the option to set specific permissions for security.