ExamMini
πŸ”

ACE β€” all questions

334 practice questions with answers and explanations.

Topic 1 Β· Question 1

Every employee of your company has a Google account. Your operational team needs to manage a large number of instances on Compute Engine. Each member of this team needs only administrative access to the servers. Your security team wants to ensure that the deployment of credentials is operationally efficient and must be able to determine who accessed a given instance. What should you do?

  • AGenerate a new SSH key pair. Give the private key to each member of your team. Configure the public key in the metadata of each instance.
  • BAsk each member of the team to generate a new SSH key pair and to send you their public key. Use a configuration management tool to deploy those keys on each instance.
  • CAsk each member of the team to generate a new SSH key pair and to add the public key to their Google account. Grant the "compute.osAdminLogin" role to the Google group corresponding to this team. (correct answer)
  • DGenerate a new SSH key pair. Give the private key to each member of your team. Configure the public key as a project-wide public SSH key in your Cloud Platform project and allow project-wide public SSH keys on each instance.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Ask each member of the team to generate a new SSH key pair and to add the public key to their Google account. Grant the "compute.osAdminLogin" role to the Google group corresponding to this team.

Topic 1 Β· Question 2

You need to create a custom VPC with a single subnet. The subnet's range must be as large as possible. Which range should you use?

  • A0.0.0.0/0
  • B10.0.0.0/8 (correct answer)
  • C172.16.0.0/12
  • D192.168.0.0/16
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 10.0.0.0/8.

Topic 1 Β· Question 3

You want to select and configure a cost-effective solution for relational data on Google Cloud Platform. You are working with a small set of operational data in one geographic location. You need to support point-in-time recovery. What should you do?

  • ASelect Cloud SQL (MySQL). Verify that the enable binary logging option is selected. (correct answer)
  • BSelect Cloud SQL (MySQL). Select the create failover replicas option.
  • CSelect Cloud Spanner. Set up your instance with 2 nodes.
  • DSelect Cloud Spanner. Set up your instance as multi-regional.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Select Cloud SQL (MySQL). Verify that the enable binary logging option is selected.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 4

You want to configure autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps. You need to configure re-creation of VMs if they are unresponsive after 3 attempts of 10 seconds each. What should you do?

  • ACreate an HTTP load balancer with a backend configuration that references an existing instance group. Set the health check to healthy (HTTP)
  • BCreate an HTTP load balancer with a backend configuration that references an existing instance group. Define a balancing mode and set the maximum RPS to 10.
  • CCreate a managed instance group. Set the Autohealing health check to healthy (HTTP) (correct answer)
  • DCreate a managed instance group. Verify that the autoscaling setting is on.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a managed instance group. Set the Autohealing health check to healthy (HTTP)

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs.

Topic 1 Β· Question 5

You are using multiple configurations for gcloud. You want to review the configured Kubernetes Engine cluster of an inactive configuration using the fewest possible steps. What should you do?

  • AUse gcloud config configurations describe to review the output. (correct answer)
  • BUse gcloud config configurations activate and gcloud config list to review the output.
  • CUse kubectl config get-contexts to review the output.
  • DUse kubectl config use-context and kubectl config view to review the output.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use gcloud config configurations describe to review the output.

Topic 1 Β· Question 6

Your company uses Cloud Storage to store application backup files for disaster recovery purposes. You want to follow Google's recommended practices. Which storage option should you use?

  • AMulti-Regional Storage
  • BRegional Storage
  • CNearline Storage
  • DColdline Storage (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Coldline Storage By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 7

Several employees at your company have been creating projects with Cloud Platform and paying for it with their personal credit cards, which the company reimburses. The company wants to centralize all these projects under a single, new billing account. What should you do?

  • AContact [email protected] with your bank account details and request a corporate billing account for your company.
  • BCreate a ticket with Google Support and wait for their call to share your credit card details over the phone.
  • CIn the Google Platform Console, go to the Resource Manage and move all projects to the root Organizarion.
  • DIn the Google Cloud Platform Console, create a new billing account and set up a payment method. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: In the Google Cloud Platform Console, create a new billing account and set up a payment method.

Topic 1 Β· Question 8

You have an application that looks for its licensing server on the IP 10.0.3.21. You need to deploy the licensing server on Compute Engine. You do not want to change the configuration of the application and want the application to be able to reach the licensing server. What should you do?

  • AReserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server. (correct answer)
  • BReserve the IP 10.0.3.21 as a static public IP address using gcloud and assign it to the licensing server.
  • CUse the IP 10.0.3.21 as a custom ephemeral IP address and assign it to the licensing server.
  • DStart the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server.

Topic 1 Β· Question 9

You are deploying an application to App Engine. You want the number of instances to scale based on request rate. You need at least 3 unoccupied instances at all times. Which scaling type should you use?

  • AManual Scaling with 3 instances.
  • BBasic Scaling with min_instances set to 3.
  • CBasic Scaling with max_instances set to 3.
  • DAutomatic Scaling with min_idle_instances set to 3. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Automatic Scaling with min_idle_instances set to 3.

Topic 1 Β· Question 10

You have a development project with appropriate IAM roles defined. You are creating a production project and want to have the same IAM roles on the new project, using the fewest possible steps. What should you do?

  • AUse gcloud iam roles copy and specify the production project as the destination project. (correct answer)
  • BUse gcloud iam roles copy and specify your organization as the destination organization.
  • CIn the Google Cloud Platform Console, use the 'create role from role' functionality.
  • DIn the Google Cloud Platform Console, use the 'create role' functionality and select all applicable permissions.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use gcloud iam roles copy and specify the production project as the destination project.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 11

You need a dynamic way of provisioning VMs on Compute Engine. The exact specifications will be in a dedicated configuration file. You want to follow Google's recommended practices. Which method should you use?

  • ADeployment Manager (correct answer)
  • BCloud Composer
  • CManaged Instance Group
  • DUnmanaged Instance Group
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deployment Manager

Explanation

Deployment Manager provisions Google Cloud infrastructure as code.

Topic 1 Β· Question 12

You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?

  • AUse kubectl app deploy .
  • BUse gcloud app deploy .
  • CCreate a docker image from the Dockerfile and upload it to Container Registry. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file. (correct answer)
  • DCreate a docker image from the Dockerfile and upload it to Cloud Storage. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a docker image from the Dockerfile and upload it to Container Registry. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.

Topic 1 Β· Question 13

Your development team needs a new Jenkins server for their project. You need to deploy the server using the fewest steps possible. What should you do?

  • ADownload and deploy the Jenkins Java WAR to App Engine Standard.
  • BCreate a new Compute Engine instance and install Jenkins through the command line interface.
  • CCreate a Kubernetes cluster on Compute Engine and create a deployment with the Jenkins Docker image.
  • DUse GCP Marketplace to launch the Jenkins solution. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use GCP Marketplace to launch the Jenkins solution.

Topic 1 Β· Question 14

You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use?

  • Agcloud deployment-manager deployments create --config
  • Bgcloud deployment-manager deployments update --config (correct answer)
  • Cgcloud deployment-manager resources create --config
  • Dgcloud deployment-manager resources update --config
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: gcloud deployment-manager deployments update --config

Explanation

Cloud Deploy manages continuous delivery to GKE and other runtimes with promotion and rollback.

Topic 1 Β· Question 15

You need to run an important query in BigQuery but expect it to return a lot of records. You want to find out how much it will cost to run the query. You are using on-demand pricing. What should you do?

  • AArrange to switch to Flat-Rate pricing for this query, then move back to on-demand.
  • BUse the command line to run a dry run query to estimate the number of bytes read. Then convert that bytes estimate to dollars using the Pricing Calculator. (correct answer)
  • CUse the command line to run a dry run query to estimate the number of bytes returned. Then convert that bytes estimate to dollars using the Pricing Calculator.
  • DRun a select count (*) to get an idea of how many records your query will look through. Then convert that number of rows to dollars using the Pricing Calculator.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the command line to run a dry run query to estimate the number of bytes read. Then convert that bytes estimate to dollars using the Pricing Calculator.

Topic 1 Β· Question 16

You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?

  • ACreate a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.
  • BCreate an instance template, and use the template in a managed instance group with autoscaling configured. (correct answer)
  • CCreate an instance template, and use the template in a managed instance group that scales up and down based on the time of day.
  • DUse a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an instance template, and use the template in a managed instance group with autoscaling configured.

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs.

Topic 1 Β· Question 17

You are analyzing Google Cloud Platform service costs from three separate projects. You want to use this information to create service cost estimates by service type, daily and monthly, for the next six months using standard query syntax. What should you do?

  • AExport your bill to a Cloud Storage bucket, and then import into Cloud Bigtable for analysis.
  • BExport your bill to a Cloud Storage bucket, and then import into Google Sheets for analysis.
  • CExport your transactions to a local file, and perform analysis with a desktop tool.
  • DExport your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Export your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis.

Explanation

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

Topic 1 Β· Question 18

You need to set up a policy so that videos stored in a specific Cloud Storage Regional bucket are moved to Coldline after 90 days, and then deleted after one year from their creation. How should you set up the policy?

  • AUse Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 275 days (365 "" 90)
  • BUse Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days. (correct answer)
  • CUse gsutil rewrite and set the Delete action to 275 days (365-90).
  • DUse gsutil rewrite and set the Delete action to 365 days.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.

Explanation

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

Topic 1 Β· Question 19

You have a Linux VM that must connect to Cloud SQL. You created a service account with the appropriate access rights. You want to make sure that the VM uses this service account instead of the default Compute Engine service account. What should you do?

  • AWhen creating the VM via the web console, specify the service account under the 'Identity and API Access' section. (correct answer)
  • BDownload a JSON Private Key for the service account. On the Project Metadata, add that JSON as the value for the key compute-engine-service- account.
  • CDownload a JSON Private Key for the service account. On the Custom Metadata of the VM, add that JSON as the value for the key compute-engine- service-account.
  • DDownload a JSON Private Key for the service account. After creating the VM, ssh into the VM and save the JSON under ~/.gcloud/compute-engine-service- account.json.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: When creating the VM via the web console, specify the service account under the 'Identity and API Access' section.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 20

You created an instance of SQL Server 2017 on Compute Engine to test features in the new version. You want to connect to this instance using the fewest number of steps. What should you do?

  • AInstall a RDP client on your desktop. Verify that a firewall rule for port 3389 exists.
  • BInstall a RDP client in your desktop. Set a Windows username and password in the GCP Console. Use the credentials to log in to the instance.
  • CSet a Windows password in the GCP Console. Verify that a firewall rule for port 22 exists. Click the RDP button in the GCP Console and supply the credentials to log in.
  • DSet a Windows username and password in the GCP Console. Verify that a firewall rule for port 3389 exists. Click the RDP button in the GCP Console, and supply the credentials to log in. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Set a Windows username and password in the GCP Console. Verify that a firewall rule for port 3389 exists. Click the RDP button in the GCP Console, and supply the credentials to log in.

Showing questions 1–20 of 334 Β· Page 1 of 17