Subdomain 1.3: Designing network, storage, and compute resources.
1.You are migrating a legacy Java application to Google Cloud. The application runs on a specific version of Linux and requires kernel-level modifications that cannot be containerized. You want to optimize costs. The application's memory requirements are very high (128 GB), but it only utilizes 2 vCPUs. Standard machine types with this memory result in unused vCPUs. What should you choose?
- A.N2-standard-32 machine type.
- B.Custom Machine Type.
- C.Sole-tenant nodes.
- D.Cloud Run.
Show answer & explanation
Correct answer: B — Custom Machine Type.
- A. Incorrect. An N2-standard-32 provides 128 GB of memory but also 32 vCPUs. Since the application only requires 2 vCPUs, this results in significant over-provisioning and higher costs for unused compute resources.
- B. Correct. A Custom Machine Type on Compute Engine allows you to provision a specific number of vCPUs and memory. By using custom machine types with 'Extended Memory,' you can configure an instance with 2 vCPUs and 128 GB of RAM, optimizing costs by only paying for the resources needed while still allowing kernel-level modifications on a full VM.
- C. Incorrect. Sole-tenant nodes provide dedicated physical hardware for compliance, security, or licensing needs. While they support custom VM configurations, they are generally more expensive than shared-core or standard instances and are unnecessary for simply solving a CPU-to-memory ratio mismatch.
- D. Incorrect. Cloud Run is a serverless container platform. It does not support kernel-level modifications or specific legacy Linux OS versions, and the application requirements explicitly state it cannot be containerized.