QWhich of the following is a security advantage of managed code over unmanaged code?
Question Info
Choose the Best Option
Click any option to instantly check if you're correct.
Explanation
The correct option is:
Size of the attack surface
Explanation: Managed code, such as code running in a .NET or Java environment, often has built-in security features like memory management, type safety, and automatic bounds checking, which help reduce vulnerabilities. This reduces the attack surface because it prevents certain types of low-level vulnerabilities (e.g., buffer overflows) that are more common in unmanaged code (like C or C++).
Unmanaged code typically gives the programmer more control over memory and system resources, but this also increases the potential for security flaws and exploits, enlarging the attack surface.
Share This Question
Challenge a friend or share with your study group.