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

Google Associate Cloud Engineer - Practice Test 2

Question #26
Storage

A healthcare organization stores patient medical images on-premises and needs to implement an automated solution to archive new images to Google Cloud Storage. The solution must ensure that any newly generated medical images are reliably uploaded to Cloud Storage. Which approach should you design and implement?

A. Create a Pub/Sub topic and enable a Cloud Storage trigger for it. Develop an application to publish all new medical images to the Pub/Sub topic.
B. Develop a script utilizing the `gcloud storage` command to synchronize the on-premises storage with Cloud Storage, and schedule this script as a cron job.
C. Establish a Pub/Sub topic and configure a Cloud Function, triggered by the topic, to write data to Cloud Storage. Create an application to send 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.
Question #27
Project Structure & Best Practices

You have successfully established a development environment within a Google Cloud project for an application utilizing Compute Engine and Cloud SQL. Now, you need to set up a production environment for this application. The security team has mandated strict network isolation between the two environments and requires adherence to Google's recommended best practices. What is the most appropriate action to take?

A. Create a new project, enable the Compute Engine and Cloud SQL APIs in that project, and replicate the setup you have created in the development environment.
B. Create a new production subnet in the existing VPC and a new production Cloud SQL instance in your existing project, and deploy your application using those resources.
C. Create a new project, modify your existing VPC to be a Shared VPC, share that VPC with your new project, and replicate the setup you have in the development environment in that new project in the Shared VPC.
D. Request the security team to grant you the Project Editor role in an existing production project used by another division of your company. Once granted, replicate the setup you have in the development environment in that project.
Question #28
Developer Tools

You are developing an application on your Ubuntu laptop, which has the Google Cloud SDK installed via the official Ubuntu package repository. You need to test your application locally using a Cloud Datastore emulator. What is the correct method to install the necessary emulator component?

A. Export Cloud Datastore data using `gcloud datastore export`.
B. Install the `google-cloud-sdk-datastore-emulator` component using the `apt-get install` command.
C. Install the `cloud-datastore-emulator` component using the `gcloud components install` command.
D. Create a Cloud Datastore index using `gcloud datastore indexes create`.
Question #29
Kubernetes Engine

Your existing application running in Google Kubernetes Engine (GKE) consists of multiple pods running on four GKE n1-standard-2 nodes. You need to deploy additional pods requiring n2-highmem-16 nodes without any downtime. What is the most efficient way to achieve this?

A. Use gcloud container clusters upgrade. Deploy the new services.
B. Create a new Node Pool and specify machine type n2-highmem-16. Deploy the new pods.
C. Create a new cluster with n2-highmem-16 nodes. Redeploy the pods and delete the old cluster.
D. Create a new cluster with both n1-standard-2 and n2-highmem-16 nodes. Redeploy the pods and delete the old cluster.
Question #30
Security & IAM

You are managing a BigQuery data warehouse in your Google Cloud project. A third-party analytics company, operating in their own Google Cloud project, requires access to a specific BigQuery dataset within your project to provide a recommendation service. How should you securely grant them access?

A. Create a Service Account in your project and grant it BigQuery data viewer access to the dataset. Share the Service Account key with the partner company.
B. Instruct the partner company to create a Service Account in their project, and then grant that Service Account appropriate BigQuery access to the dataset in your project.
C. Create a Service Account in your project, grant it BigQuery data viewer access, and then ask the partner company to grant this Service Account access to BigQuery in their project.
D. Ask the partner company to create a Service Account in their project and have them grant that Service Account access to BigQuery resources within their own project.
Back to gcp-ace 50 questions - page 6 of 10