πŸ”

ACE β€” questions

Page 12 of 17 Β· 334 total questions.

Topic 1 Β· Question 221

Your application is running on Google Cloud in a managed instance group (MIG). You see errors in Cloud Logging for one VM that one of the processes is not responsive. You want to replace this VM in the MIG quickly. What should you do?

  • AUse the gcloud compute instances update command with a REFRESH action for the VM.
  • BUse the gcloud compute instance-groups managed recreate-instances command to recreate the VM. (correct answer)
  • CSelect the MIG from the Compute Engine console and, in the menu, select Replace VMs.
  • DUpdate and apply the instance template of the MIG.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the gcloud compute instance-groups managed recreate-instances command to recreate the VM.

Topic 1 Β· Question 222

You want to permanently delete a Pub/Sub topic managed by Config Connector in your Google Cloud project. What should you do?

  • AUse kubectl to create the label deleted-by-cnrm and to change its value to true for the topic resource.
  • BUse kubectl to delete the topic resource. (correct answer)
  • CUse gcloud CLI to delete the topic.
  • DUse gcloud CLI to update the topic label managed-by-cnrm to false.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use kubectl to delete the topic resource.

Topic 1 Β· Question 223

Your company is using Google Workspace to manage employee accounts. Anticipated growth will increase the number of personnel from 100 employees to 1,000 employees within 2 years. Most employees will need access to your company’s Google Cloud account. The systems and processes will need to support 10x growth without performance degradation, unnecessary complexity, or security issues. What should you do?

  • AMigrate the users to Active Directory. Connect the Human Resources system to Active Directory. Turn on Google Cloud Directory Sync (GCDS) for Cloud Identity. Turn on Identity Federation from Cloud Identity to Active Directory.
  • BOrganize the users in Cloud Identity into groups. Enforce multi-factor authentication in Cloud Identity. (correct answer)
  • CTurn on identity federation between Cloud Identity and Google Workspace. Enforce multi-factor authentication for domain wide delegation.
  • DUse a third-party identity provider service through federation. Synchronize the users from Google Workplace to the third-party provider in real time.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Organize the users in Cloud Identity into groups. Enforce multi-factor authentication in Cloud Identity.

Explanation

Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 Β· Question 224

You want to host your video encoding software on Compute Engine. Your user base is growing rapidly, and users need to be able to encode their videos at any time without interruption or CPU limitations. You must ensure that your encoding solution is highly available, and you want to follow Google-recommended practices to automate operations. What should you do?

  • ADeploy your solution on multiple standalone Compute Engine instances, and increase the number of existing instances when CPU utilization on Cloud Monitoring reaches a certain threshold.
  • BDeploy your solution on multiple standalone Compute Engine instances, and replace existing instances with high-CPU instances when CPU utilization on Cloud Monitoring reaches a certain threshold.
  • CDeploy your solution to an instance group, and increase the number of available instances whenever you see high CPU utilization in Cloud Monitoring.
  • DDeploy your solution to an instance group, and set the autoscaling based on CPU utilization. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Deploy your solution to an instance group, and set the autoscaling based on CPU utilization. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 225

Your managed instance group raised an alert stating that new instance creation has failed to create new instances. You need to solve the instance creation problem. What should you do?

  • ACreate an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names. (correct answer)
  • BCreate an instance template that contains valid syntax that will be used by the instance group. Verify that the instance name and persistent disk name values are not the same in the template.
  • CVerify that the instance template being used by the instance group contains valid syntax. Delete any persistent disks with the same name as instance names. Set the disks.autoDelete property to true in the instance template.
  • DDelete the current instance template and replace it with a new instance template. Verify that the instance name and persistent disk name values are not the same in the template. Set the disks.autoDelete property to true in the instance template.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs.

Topic 1 Β· Question 226

You have created an application that is packaged into a Docker image. You want to deploy the Docker image as a workload on Google Kubernetes Engine. What should you do?

  • AUpload the image to Cloud Storage and create a Kubernetes Service referencing the image.
  • BUpload the image to Cloud Storage and create a Kubernetes Deployment referencing the image.
  • CUpload the image to Artifact Registry and create a Kubernetes Service referencing the image.
  • DUpload the image to Artifact Registry and create a Kubernetes Deployment referencing the image. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Upload the image to Artifact Registry and create a Kubernetes Deployment referencing the image.

Explanation

Artifact Registry stores and manages container images and language packages.

Topic 1 Β· Question 227

You are using Looker Studio to visualize a table from your data warehouse that is built on top of BigQuery. Data is appended to the data warehouse during the day. At night, the daily summary is recalculated by overwriting the table. You just noticed that the charts in Looker Studio are broken, and you want to analyze the problem. What should you do?

  • AIn Cloud Logging, create a filter for your Looker Studio report.
  • BUse the open source CLI tool, Snapshot Debugger, to find out why the data was not refreshed correctly.
  • CReview the Error Reporting page in the Google Cloud console to find any errors.
  • DUse the BigQuery interface to review the nightly job and look for any errors. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the BigQuery interface to review the nightly job and look for any errors.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 228

You have a batch workload that runs every night and uses a large number of virtual machines (VMs). It is fault-tolerant and can tolerate some of the VMs being terminated. The current cost of VMs is too high. What should you do?

  • ARun a test using simulated maintenance events. If the test is successful, use Spot N2 Standard VMs when running future jobs. (correct answer)
  • BRun a test using simulated maintenance events. If the test is successful, use N2 Standard VMs when running future jobs.
  • CRun a test using a managed instance group. If the test is successful, use N2 Standard VMs in the managed instance group when running future jobs.
  • DRun a test using N1 standard VMs instead of N2. If the test is successful, use N1 Standard VMs when running future jobs.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Run a test using simulated maintenance events. If the test is successful, use Spot N2 Standard VMs when running future jobs. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 229

You created several resources in multiple Google Cloud projects. All projects are linked to different billing accounts. To better estimate future charges, you want to have a single visual representation of all costs incurred. You want to include new cost data as soon as possible. What should you do?

  • AFill all resources in the Pricing Calculator to get an estimate of the monthly cost.
  • BUse the Reports view in the Cloud Billing Console to view the desired cost information.
  • CVisit the Cost Table page to get a CSV export and visualize it using Looker Studio.
  • DConfigure Billing Data Export to BigQuery and visualize the data in Looker Studio. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure Billing Data Export to BigQuery and visualize the data in Looker Studio.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Looker provides governed business intelligence, dashboards, and data modeling.

Topic 1 Β· Question 230

Your company has a large quantity of unstructured data in different file formats. You want to perform ETL transformations on the data. You need to make the data accessible on Google Cloud so it can be processed by a Dataflow job. What should you do?

  • AUpload the data to BigQuery using the bq command line tool.
  • BUpload the data to Cloud Storage using the gcloud storage command. (correct answer)
  • CUpload the data into Cloud SQL using the import function in the Google Cloud console.
  • DUpload the data into Cloud Spanner using the import function in the Google Cloud console.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Upload the data to Cloud Storage using the gcloud storage command.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 231

You have deployed an application on a single Compute Engine instance. The application writes logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What should you do?

  • ANavigate to Cloud Logging and view the application logs.
  • BConfigure a health check on the instance and set a β€œconsecutive successes” Healthy threshold value of 1.
  • CConnect to the instance’s serial console and read the application logs.
  • DInstall and configure the Ops agent and view the logs from Cloud Logging. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Install and configure the Ops agent and view the logs from Cloud Logging.

Explanation

Cloud Logging centralizes, stores, and analyzes logs across services.

Topic 1 Β· Question 232

You recently received a new Google Cloud project with an attached billing account where you will work. You need to create instances, set firewalls, and store data in Cloud Storage. You want to follow Google-recommended practices. What should you do?

  • AUse the gcloud CLI services enable cloudresourcemanager.googleapis.com command to enable all resources.
  • BUse the gcloud services enable compute.googleapis.com command to enable Compute Engine and the gcloud services enable storage-api.googleapis.com command to enable the Cloud Storage APIs. (correct answer)
  • COpen the Google Cloud console and enable all Google Cloud APIs from the API dashboard.
  • DOpen the Google Cloud console and run gcloud init --project in a Cloud Shell.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the gcloud services enable compute.googleapis.com command to enable Compute Engine and the gcloud services enable storage-api.googleapis.com command to enable the Cloud Storage APIs.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS. Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 233

Your application development team has created Docker images for an application that will be deployed on Google Cloud. Your team does not want to manage the infrastructure associated with this application. You need to ensure that the application can scale automatically as it gains popularity. What should you do?

  • ACreate an instance template with the container image, and deploy a Managed Instance Group with Autoscaling.
  • BUpload Docker images to Artifact Registry, and deploy the application on Google Kubernetes Engine using Standard mode.
  • CUpload Docker images to the Cloud Storage, and deploy the application on Google Kubernetes Engine using Standard mode.
  • DUpload Docker images to Artifact Registry, and deploy the application on Cloud Run. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Upload Docker images to Artifact Registry, and deploy the application on Cloud Run.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Artifact Registry stores and manages container images and language packages.

Topic 1 Β· Question 234

You are migrating a business critical application from your local data center into Google Cloud. As part of your high-availability strategy, you want to ensure that any data used by the application will be immediately available if a zonal failure occurs. What should you do?

  • AStore the application data on a zonal persistent disk. Create a snapshot schedule for the disk. If an outage occurs, create a new disk from the most recent snapshot and attach it to a new VM in another zone.
  • BStore the application data on a zonal persistent disk. If an outage occurs, create an instance in another zone with this disk attached.
  • CStore the application data on a regional persistent disk. Create a snapshot schedule for the disk. If an outage occurs, create a new disk from the most recent snapshot and attach it to a new VM in another zone.
  • DStore the application data on a regional persistent disk. If an outage occurs, create an instance in another zone with this disk attached. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Store the application data on a regional persistent disk. If an outage occurs, create an instance in another zone with this disk attached.

Explanation

Persistent Disk provides durable block storage attached to Compute Engine VMs.

Topic 1 Β· Question 235

The DevOps group in your organization needs full control of Compute Engine resources in your development project. However, they should not have permission to create or update any other resources in the project. You want to follow Google’s recommendations for setting permissions for the DevOps group. What should you do?

  • AGrant the basic role roles/viewer and the predefined role roles/compute.admin to the DevOps group. (correct answer)
  • BCreate an IAM policy and grant all compute.instanceAdmin.* permissions to the policy. Attach the policy to the DevOps group.
  • CCreate a custom role at the folder level and grant all compute.instanceAdmin.* permissions to the role. Grant the custom role to the DevOps group.
  • DGrant the basic role roles/editor to the DevOps group.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Grant the basic role roles/viewer and the predefined role roles/compute.admin to the DevOps group.

Topic 1 Β· Question 236

Your team is running an on-premises ecommerce application. The application contains a complex set of microservices written in Python, and each microservice is running on Docker containers. Configurations are injected by using environment variables. You need to deploy your current application to a serverless Google Cloud cloud solution. What should you do?

  • AUse your existing CI/CD pipeline. Use the generated Docker images and deploy them to Cloud Run. Update the configurations and the required endpoints. (correct answer)
  • BUse your existing continuous integration and delivery (CI/CD) pipeline. Use the generated Docker images and deploy them to Cloud Function. Use the same configuration as on-premises.
  • CUse the existing codebase and deploy each service as a separate Cloud Function. Update the configurations and the required endpoints.
  • DUse your existing codebase and deploy each service as a separate Cloud Run. Use the same configurations as on-premises.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use your existing CI/CD pipeline. Use the generated Docker images and deploy them to Cloud Run. Update the configurations and the required endpoints.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead.

Topic 1 Β· Question 237

You are running multiple microservices in a Kubernetes Engine cluster. One microservice is rendering images. The microservice responsible for the image rendering requires a large amount of CPU time compared to the memory it requires. The other microservices are workloads that are optimized for n2-standard machine types. You need to optimize your cluster so that all workloads are using resources as efficiently as possible. What should you do?

  • AAssign the pods of the image rendering microservice a higher pod priority than the other microservices.
  • BCreate a node pool with compute-optimized machine type nodes for the image rendering microservice. Use the node pool with general-purpose machine type nodes for the other microservices. (correct answer)
  • CUse the node pool with general-purpose machine type nodes for the image rendering microservice. Create a node pool with compute-optimized machine type nodes for the other microservices.
  • DConfigure the required amount of CPU and memory in the resource requests specification of the image rendering microservice deployment. Keep the resource requests for the other microservices at the default.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a node pool with compute-optimized machine type nodes for the image rendering microservice. Use the node pool with general-purpose machine type nodes for the other microservices.

Topic 1 Β· Question 238

You are working in a team that has developed a new application that needs to be deployed on Kubernetes. The production application is business critical and should be optimized for reliability. You need to provision a Kubernetes cluster and want to follow Google-recommended practices. What should you do?

  • ACreate a GKE Autopilot cluster. Enroll the cluster in the rapid release channel.
  • BCreate a GKE Autopilot cluster. Enroll the cluster in the stable release channel. (correct answer)
  • CCreate a zonal GKE standard cluster. Enroll the cluster in the stable release channel.
  • DCreate a regional GKE standard cluster. Enroll the cluster in the rapid release channel.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a GKE Autopilot cluster. Enroll the cluster in the stable release channel.

Explanation

GKE Autopilot runs Kubernetes with Google managing nodes, reducing operational overhead. Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads.

Topic 1 Β· Question 239

You are responsible for a web application on Compute Engine. You want your support team to be notified automatically if users experience high latency for at least 5 minutes. You need a Google-recommended solution with no development cost. What should you do?

  • AExport Cloud Monitoring metrics to BigQuery and use a Looker Studio dashboard to monitor your web application’s latency.
  • BCreate an alert policy to send a notification when the HTTP response latency exceeds the specified threshold. (correct answer)
  • CImplement an App Engine service which invokes the Cloud Monitoring API and sends a notification in case of anomalies.
  • DUse the Cloud Monitoring dashboard to observe latency and take the necessary actions when the response latency exceeds the specified threshold.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an alert policy to send a notification when the HTTP response latency exceeds the specified threshold.

Topic 1 Β· Question 240

You have an on-premises data analytics set of binaries that processes data files in memory for about 45 minutes every midnight. The sizes of those data files range from 1 gigabyte to 16 gigabytes. You want to migrate this application to Google Cloud with minimal effort and cost. What should you do?

  • ACreate a container for the set of binaries. Use Cloud Scheduler to start a Cloud Run job for the container.
  • BCreate a container for the set of binaries. Deploy the container to Google Kubernetes Engine (GKE) and use the Kubernetes scheduler to start the application.
  • CUpload the code to Cloud Functions. Use Cloud Scheduler to start the application.
  • DLift and shift to a VM on Compute Engine. Use an instance schedule to start and stop the instance. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Lift and shift to a VM on Compute Engine. Use an instance schedule to start and stop the instance.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS.

Showing questions 221–240 of 334 Β· Page 12 of 17