Easy1 markMultiple Choice
Domain 2.2: Planning and configuring compute resourcesCompute EngineCustom Machine TypesCost Optimization

GCP ACE · Question 14 · Domain 2.2: Planning and configuring compute resources

You need to deploy a legacy application on Compute Engine. The application has very specific hardware requirements: it needs exactly 6 vCPUs and 40 GB of RAM. None of the predefined machine types match this requirement exactly.

What is the MOST cost-effective way to provision this instance?

Answer options:

A.

Select the e2-standard-8 (8 vCPUs, 32 GB RAM) and add extra memory.

B.

Select the n2-standard-8 (8 vCPUs, 32 GB RAM) and use a startup script to limit CPU usage.

C.

Create a custom machine type with 6 vCPUs and 40 GB of RAM.

D.

Deploy the application on Google Kubernetes Engine (GKE) to utilize exact resource requests.

How to approach this question

Recognize that GCP allows you to tailor VM sizes exactly to your needs.

Full Answer

C.Create a custom machine type with 6 vCPUs and 40 GB of RAM.✓ Correct
Create a custom machine type with 6 vCPUs and 40 GB of RAM.
Compute Engine offers Custom Machine Types, which allow you to independently specify the number of vCPUs and the amount of memory for an instance. This is ideal for workloads that don't fit predefined shapes, preventing you from over-provisioning and overpaying.

Common mistakes

Assuming you must choose the next largest predefined machine type.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam