When to use path and identifier in fetch media task?

When to use path and identifier in fetch media task?

@harman_singh, please look into this query.