Custom-made shared libraries best solutions

Question:
A company is migrating their PHP and Python applications running on the same host to a new architecture. Due to internal policies, both are using a set of custom-made shared libraries from the OS, but the latest update applied to them as a result of a Python development team request broke the PHP application. Which two architectures would provide the best support for both applications? (Choose two.)

  1. Deploy each application to different VMs and apply the custom-made shared libraries individually to each VM host
  2. Deploy each application to different containers and apply the custom-made shared libraries individually to each container
  3. Deploy each application to different VMs and apply the custom-made shared libraries to all VM hosts
  4. Deploy each application to different containers and apply the custom-made shared libraries to all containers
Answer:
A, B - are the correct answers