DataStage determines which configuration file to use by checking the APT_CONFIG_FILE environment variable. This variable points to the .apt configuration file that defines node resources and parallel processing settings. It's not determined by state files, admin settings, or Director paths - it's explicitly set via the environment variable.