Hard1 markMultiple Choice

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

You are migrating a legacy application to Compute Engine. The vendor specifies that the application requires exactly 6 vCPUs and 12 GB of RAM to maintain its license validity. None of the standard Google Cloud machine types match this exact specification.

Which TWO actions should you take to deploy this VM? (Select TWO)

Answer options:

A.

Deploy a custom machine type with 6 vCPUs and 12GB RAM

B.

Deploy a standard N1 machine type with 8 vCPUs and restrict the OS to use only 6 vCPUs

C.

Custom machine types are only available for Preemptible VMs

D.

Use the --custom-cpu=6 and --custom-memory=12 flags in the gcloud command

E.

Use the --machine-type=custom-6-12288 flag in the gcloud command

How to approach this question

Recognize that GCP supports custom machine types. Then identify the correct gcloud syntax to provision them.

Full Answer

Deploy a custom machine type with 6 vCPUs and 12GB RAM, Use the --custom-cpu=6 and --custom-memory=12 flags in the gcloud command
Compute Engine allows you to create custom machine types if the predefined types do not fit your needs. You can specify the exact number of vCPUs (must be 1 or an even number) and memory. To do this via the CLI, you use the `gcloud compute instances create` command with the `--custom-cpu` and `--custom-memory` flags.

Common mistakes

Selecting option E; while `custom-6-12288` is the internal string representation, the standard gcloud flags are `--custom-cpu` and `--custom-memory`.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam