Hard1 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 are migrating a legacy application to 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 closely, and choosing the next largest predefined type would result in wasted resources and higher costs.

Which TWO actions should you take to deploy this application cost-effectively? (Select TWO)

Answer options:

A.

Select the e2-standard-8 machine type and use a startup script to disable 2 vCPUs.

B.

Create a custom machine type.

C.

Specify 6 vCPUs and 40 GB of memory during instance creation.

D.

Deploy the application on a sole-tenant node.

E.

Use an n2-highmem-4 machine type and enable swap space on the local SSD.

How to approach this question

Recognize that GCP allows you to build VMs with exact specifications to avoid paying for predefined sizes that are too large.

Full Answer

Create a custom machine type with 6 vCPUs and 40 GB of RAM.
When predefined machine types do not fit your workload's specific vCPU and memory requirements, you should use a Custom Machine Type. This feature allows you to independently specify the exact number of vCPUs and the exact amount of memory (within certain ratios) during instance creation. This ensures you only pay for the resources your legacy application actually needs, avoiding the cost of over-provisioning.

Common mistakes

Thinking you have to choose a larger predefined machine type and just accept the wasted cost.

Practice the full GCP Associate Cloud Engineer Practice Exam 6

50 questions · hints · full answers · grading

More questions from this exam