Hard1 markMultiple Choice
Domain 2.2: Planning and configuring compute resourcesDomain 2.2Compute EngineCustom Machine Typesgcloud

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 strict licensing requirements and requires exactly 6 vCPUs and 45 GB of memory. None of the predefined machine types match this exact specification, and you want to avoid over-provisioning to save costs.

Which TWO statements are true regarding creating a custom machine type for this requirement? (Select TWO)

Answer options:

A.

You can create this instance using the gcloud compute instances create command with the --custom-cpu and --custom-memory flags.

B.

Custom machine types are only available in specific premium regions.

C.

The number of vCPUs must be an even number (except for 1 vCPU).

D.

Memory must be specified in exact increments of 1024 MB (1 GB).

E.

You must purchase a committed use discount before creating a custom machine type.

How to approach this question

Recall the rules and CLI flags for creating custom machine types in Compute Engine.

Full Answer

You can create this instance using the gcloud compute instances create command with the --custom-cpu and --custom-memory flags., The number of vCPUs must be an even number (except for 1 vCPU).
Custom machine types allow you to specify the exact number of vCPUs and memory for an instance. To do this via CLI, you use `--custom-cpu` and `--custom-memory`. Google enforces certain rules: above 1 vCPU, the vCPU count must be an even number (6 is valid), and memory must be between 0.9 GB and 6.5 GB per vCPU, specified in 256 MB increments.

Common mistakes

Assuming custom machine types can have any odd number of vCPUs (like 3 or 5).

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam