An analytics micro-service will run continuously for the next 18 months. Benchmarks show it needs about 20 vCPUs and 40 GB of RAM to stay under 60 % CPU and memory utilization. The team wants the lowest monthly price while meeting those performance targets and keeping future resizing simple. Which Compute Engine VM configuration best satisfies the requirements?
Create an n2-standard-32 instance (32 vCPUs, 128 GB RAM) to leave headroom for growth.
Create a custom N2 VM with 20 vCPUs and 80 GB of memory to match an even 4 GB per vCPU ratio.
Create a custom N2 VM with 20 vCPUs and 40 GB of memory.
Create an n2-highcpu-32 instance (32 vCPUs, 32 GB RAM) and rely on swap space for additional memory needs.
Cost is minimized when the machine is sized as closely as possible to the measured requirement. A custom N2 (or E2/N1) machine type can be created with exactly 20 vCPUs and 40 GB of memory, staying inside the supported 0.5-8 GB per vCPU range for N2 custom machines. Using a larger predefined shape, such as n2-standard-32 (32 vCPU, 128 GB) or n2-highcpu-32 (32 vCPU, 32 GB), over-allocates either memory or CPU and increases cost. Choosing 80 GB of RAM also doubles memory that is not needed, again raising the price. Therefore, a custom machine type with 20 vCPUs and 40 GB of RAM delivers the required performance at the lowest cost and can be resized later by editing the custom definition.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a custom VM in GCP Compute Engine?
Open an interactive chat with Bash
What is the vCPU-to-RAM ratio in N2 custom machine types?
Open an interactive chat with Bash
Why is resizing a custom VM simple in GCP?
Open an interactive chat with Bash
What does 'custom N2 machine type' mean in GCP Compute Engine?
Open an interactive chat with Bash
Why is resizing simpler for custom machine types in GCP?
Open an interactive chat with Bash
What is the significance of the 0.5-8 GB per vCPU range in N2 series machines?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .