home / exams / Google / gcp-ace / Practice Test 2
gcp-ace Google

Google Associate Cloud Engineer - Practice Test 2

Question #21
Kubernetes Engine

You manage a Google Kubernetes Engine (GKE) cluster for your organization, hosting various non-production workloads for different teams. Your Machine Learning (ML) team requires access to Nvidia Tesla P100 GPUs for model training. You need to implement this solution while minimizing both effort and cost. What is the most appropriate action to take?

A. Instruct your ML team to add the `accelerator: gpu` annotation to their pod specification.
B. Add a new, GPU-enabled node pool to the GKE cluster. Advise your ML team to include the `cloud.google.com/gke-accelerator: nvidia-tesla-p100` nodeSelector in their pod specification.
C. Recreate all existing nodes in the GKE cluster to enable GPUs on every node.
D. Provision a separate Kubernetes cluster on Compute Engine with GPU-equipped nodes, dedicating this new cluster exclusively to your ML team.
Question #22
Kubernetes Engine

You manage a Google Kubernetes Engine (GKE) cluster for your organization, hosting various non-production workloads for different teams. The Machine Learning (ML) team requires access to Nvidia Tesla P100 GPUs for model training. You need to implement this solution while minimizing both effort and cost. What is the most appropriate action to take?

A. Instruct the ML team to add the `accelerator: gpu` annotation to their pod specifications.
B. Add a new, GPU-enabled node pool to the existing GKE cluster. Advise the ML team to include the `cloud.google.com/gke-accelerator: nvidia-tesla-p100` nodeSelector in their pod specifications.
C. Recreate all existing nodes in the GKE cluster to enable GPUs on every node.
D. Provision a separate Kubernetes cluster on Compute Engine with GPU-equipped nodes, dedicating this new cluster exclusively to the ML team.
Question #23
Compute

You are tasked with deploying a new Enterprise Resource Planning (ERP) system on Google Cloud. This application is designed to keep its entire database in-memory for optimal performance and rapid data access. Which Google Cloud Compute Engine configuration is most appropriate for this requirement?

A. Provision preemptible Compute Engine instances.
B. Provision Compute Engine instances with M1 machine type.
C. Provision Compute Engine instances with GPUs attached.
D. Provision Compute Engine instances with local SSDs attached.
Question #24
Kubernetes Engine

You have created two Google Kubernetes Engine (GKE) clusters using the `gcloud container clusters create` command: `prod-cluster` and `dev-cluster`. `prod-cluster` is a standard cluster, while `dev-cluster` is an Autopilot cluster. When you execute `kubectl get nodes`, you only see the nodes belonging to `prod-cluster`. Which sequence of commands should you run to view the node status for `dev-cluster`?

A. `gcloud container clusters update -generate-password dev-cluster` `kubectl get nodes`
B. `gcloud container clusters get-credentials dev-cluster` `kubectl get nodes`
C. `kubectl config set-context dev-cluster` `kubectl cluster-info`
D. `kubectl config set-credentials dev-cluster` `kubectl cluster-info`
Question #25
Storage & Data Transfer

A healthcare provider stores patient medical images in an on-premises data center. They want to leverage Google Cloud Storage for archival purposes and require an automated process to upload new images from their on-premises system to Cloud Storage. Which solution should be implemented to achieve this?

A. Create a Pub/Sub topic and enable a Cloud Storage trigger for it. Develop an application to send all medical images to the Pub/Sub topic.
B. Develop a script that utilizes the `gcloud storage rsync` command to synchronize the on-premises storage with a Cloud Storage bucket, and schedule this script as a cron job.
C. Establish a Pub/Sub topic and a Cloud Function connected to the topic that writes data to Cloud Storage. Create an application that sends all medical images to the Pub/Sub topic.
D. Manually upload the relevant images to the appropriate Cloud Storage bucket using the Google Cloud console.
Back to gcp-ace 50 questions - page 5 of 10