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

Google Associate Cloud Engineer - Practice Test 1

Question #6
Billing & Cost Management

You lead a team of 10 developers, each with their own Google Cloud Project for experimenting with various Google Cloud solutions. You need to be notified if any developer's sandbox environment exceeds $500 in monthly spending. What is the most effective way to achieve this?

A. Create a single budget for all projects and configure budget alerts on this budget.
B. Create a budget for each individual project and configure budget alerts on each of these budgets.
C. Create a separate billing account per sandbox project and enable BigQuery billing exports. Create a Data Studio dashboard to visualize spending per billing account.
D. Create a single billing account for all sandbox projects and enable BigQuery billing exports. Create a Data Studio dashboard to visualize spending per project.
Question #7
Networking

Your Google Cloud Dataproc cluster operates within a single Virtual Private Cloud (VPC) network, specifically in a subnetwork with the IP range 172.16.20.128/25. Currently, there are no private IP addresses available in this subnetwork. You need to add new Virtual Machines (VMs) that can communicate with your Dataproc cluster, and you want to achieve this with the fewest possible steps. What is the most efficient solution?

A. Create a new Secondary IP Range within the existing VPC and configure the new VMs to utilize this range.
B. Modify the existing subnetwork's IP range to 172.16.20.0/24.
C. Establish a new VPC network for the VMs and enable VPC Peering between this new VPC and the Dataproc cluster's VPC network.
D. Create a new VPC network for the VMs with a subnet of 172.32.0.0/16, enable VPC network Peering, and configure a custom route exchange.
Question #8
GKE

You manage a Google Kubernetes Engine (GKE) cluster for your organization, which hosts 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 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 #9
Compute Engine

You have installed the gcloud command-line interface (CLI) and authenticated with your Google Account. Many of your Compute Engine instances are located in the `europe-west1-d` zone. You want to streamline your workflow by avoiding the need to specify this zone for every CLI command when managing these instances. What is the most efficient way to achieve this?

A. In the Settings page for Compute Engine under Default location, set the zone to `europe-west1-d`.
B. Set the `europe-west1-d` zone as the default zone using the `gcloud config` subcommand.
C. In the CLI installation directory, create a file called `default.conf` containing `zone=europe-west1-d`.
D. Create a Metadata entry on the Compute Engine page with key `compute/zone` and value `europe-west1-d`.
Question #10
Identity and Access Management

You have received a JSON key file for a Google Cloud service account to access specific resources within a project. After installing the Cloud SDK, you need to configure your environment to use this private key for authentication and authorization when executing `gcloud` commands. What is the correct method to achieve this?

A. Use the command `gcloud auth login` and specify the path to the private key file.
B. Use the command `gcloud auth activate-service-account` and provide the path to the private key file.
C. Place the private key file in the Cloud SDK installation directory and rename it to `credentials.json`.
D. Place the private key file in your home directory and set an environment variable `GOOGLE_APPLICATION_CREDENTIALS` to its path.
Back to gcp-ace 50 questions - page 2 of 10