Compute Engine offers custom machine types that let you choose the number of CPUs and amount of memory to fit your needs exactly, unlike predefined types which have fixed sizes.
Custom machine types let you pick more CPUs and less memory, matching your workload needs and saving cost compared to fixed predefined types.
Compute Engine enforces limits on CPU and memory combinations. If you request more memory than allowed for the CPU platform, it rejects the VM creation with an invalid configuration error.
Security depends on the operating system, firewall rules, and network settings, not on whether the VM uses a custom or predefined machine type.
Using instance templates with custom machine types inside managed instance groups allows you to automate deployment of flexible VMs at scale, balancing cost and management effort.