The both scenarios are not possible usage.
A configuration backup generates a file that contains all the unique settings and configuration information for each CA PAM instance. Use configuration files to roll back the configuration settings for a CA PAM instance. Use these files ONLY on the server instance where they were created. This configuration file cannot be restored to or from another instance.
Also, when the different version's database backup file tries to be restored, like the below error will appear and not possible to restore the backup file."Error: PAM-CMN-3285: The database you are attempting to load, 3.0.0 is not compatible with the current version 3.2.0"
<Please see attached file for image>