Armor-plating
Though the spark is the life of the Transformer, they are still made up of circuits and processors that are vulnerable. And years of warfare have left those circuits and processors even more vulnerable. To protect them, armor-plating is placed over their structures to preserve their vital functions. Though the armor-plating is not invulnerable, and can succumb with enough weapons fire, the armor is still more resilient than most things on Earth.
Fiction
Live-action film series
When Scorponok's tail was severed in battle, it was taken by the military for research. It was discovered that the exterior of the severed tail was composed of a kind of "self-regenerating molecular armor". Transformers
Animated
All Cybertronians had armor plating formed from protomatter. The armor of the Decepticons was more durable than that of the Autobots. AllSpark Almanac II The armor plating was durable enough to survive the heat of atmospheric reentry largely intact, Transform and Roll Out and according to Megatron was capable of handling far more than the harshest of Earth environments. Megatron Rising - Part 1 Blurr's armor was capable of protecting his Spark from compression forces that crushed his body into a small cube. TransWarped The Return of Blurr
It had its limits however with Optimus Prime's plating noticeably cracking after falling a great height, Transform and Roll Out and Prometheus Black developing a hyper-corrosive acid that proved able to melt through Autobot armor. Total Meltdown

