There are a few reasons why the Dpkg::Options setting you've specified in your /etc/apt/apt.conf.d file might be ignored:
You may be using a version of apt that does not support the Dpkg::Options setting. The Dpkg::Options setting was introduced in apt version 1.1.0, so if you are using an older version, this setting will be ignored.
The Dpkg::Options setting may be overridden by a setting in another configuration file. apt reads configuration files from multiple locations, and settings in later files can override earlier ones. For example, if you have a file /etc/apt/apt.conf.d/99force-confold that contains the line Dpkg::Options {"--force-confnew"};, this setting will override the --force-confold setting you specified in your earlier configuration file.
The Dpkg::Options setting may not apply to the specific package or operation you are performing. The Dpkg::Options setting affects how dpkg handles configuration files when installing or upgrading packages, but it may not apply to other operations such as removing packages or updating the package cache.
If you are using a recent version of apt and the Dpkg::Options setting is not being overridden by another configuration file, it's possible that the --force-confold option is not applicable to the operation you are trying to perform. You can try specifying the --force-confdef option instead, which forces dpkg to use the default version of any modified configuration files.
It's also worth noting that the DEBIAN_FRONTEND=noninteractive setting does not suppress all interactive prompts when using apt. It only suppresses prompts that are specifically related to the debconf system, which is used to ask questions and set configuration options during the installation of certain packages. If you are seeing an interactive prompt that is not related to debconf, this setting will not suppress it.