πŸ”

ACE β€” questions

Page 3 of 17 Β· 334 total questions.

Topic 1 Β· Question 41

You have 32 GB of data in a single file that you need to upload to a Nearline Storage bucket. The WAN connection you are using is rated at 1 Gbps, and you are the only one on the connection. You want to use as much of the rated 1 Gbps as possible to transfer the file rapidly. How should you upload the file?

  • AUse the GCP Console to transfer the file instead of gsutil.
  • BEnable parallel composite uploads using gsutil on the file transfer. (correct answer)
  • CDecrease the TCP window size on the machine initiating the transfer.
  • DChange the storage class of the bucket from Nearline to Multi-Regional.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Enable parallel composite uploads using gsutil on the file transfer.

Topic 1 Β· Question 42

You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the YAML file specified below: You need to refactor this configuration so that the database password is not stored in plain text. You want to follow Google-recommended practices. What should you do?

  • AStore the database password inside the Docker image of the container, not in the YAML file.
  • BStore the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret. (correct answer)
  • CStore the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
  • DStore the database password in a file inside a Kubernetes persistent volume, and use a persistent volume claim to mount the volume to the container.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Store the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.

Topic 1 Β· Question 43

You are running an application on multiple virtual machines within a managed instance group and have autoscaling enabled. The autoscaling policy is configured so that additional instances are added to the group if the CPU utilization of instances goes above 80%. VMs are added until the instance group reaches its maximum limit of five VMs or until CPU utilization of instances lowers to 80%. The initial delay for HTTP health checks against the instances is set to 30 seconds. The virtual machine instances take around three minutes to become available for users. You observe that when the instance group autoscales, it adds more instances then necessary to support the levels of end-user traffic. You want to properly maintain instance group sizes when autoscaling. What should you do?

  • ASet the maximum number of instances to 1.
  • BDecrease the maximum number of instances to 3.
  • CUse a TCP health check instead of an HTTP health check.
  • DIncrease the initial delay of the HTTP health check to 200 seconds. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Increase the initial delay of the HTTP health check to 200 seconds.

Topic 1 Β· Question 44

You need to select and configure compute resources for a set of batch processing jobs. These jobs take around 2 hours to complete and are run nightly. You want to minimize service costs. What should you do?

  • ASelect Google Kubernetes Engine. Use a single-node cluster with a small instance type.
  • BSelect Google Kubernetes Engine. Use a three-node cluster with micro instance types.
  • CSelect Compute Engine. Use preemptible VM instances of the appropriate standard machine type. (correct answer)
  • DSelect Compute Engine. Use VM instance types that support micro bursting.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Select Compute Engine. Use preemptible VM instances of the appropriate standard machine type.

Explanation

Preemptible/Spot VMs use spare capacity at a large discount for fault-tolerant, interruptible work. Compute Engine provides configurable virtual machines when you need full control of the OS.

Topic 1 Β· Question 45

You recently deployed a new version of an application to App Engine and then discovered a bug in the release. You need to immediately revert to the prior version of the application. What should you do?

  • ARun gcloud app restore.
  • BOn the App Engine page of the GCP Console, select the application that needs to be reverted and click Revert.
  • COn the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version. (correct answer)
  • DDeploy the original version as a separate application. Then go to App Engine settings and split traffic between applications so that the original version serves 100% of the requests.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: On the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort.

Topic 1 Β· Question 46

You deployed an App Engine application using gcloud app deploy, but it did not deploy to the intended project. You want to find out why this happened and where the application deployed. What should you do?

  • ACheck the app.yaml file for your application and check project settings.
  • BCheck the web-application.xml file for your application and check project settings.
  • CGo to Deployment Manager and review settings for deployment of applications.
  • DGo to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Go to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment.

Topic 1 Β· Question 47

You want to configure 10 Compute Engine instances for availability when maintenance occurs. Your requirements state that these instances should attempt to automatically restart if they crash. Also, the instances should be highly available including during system maintenance. What should you do?

  • ACreate an instance template for the instances. Set the 'Automatic Restart' to on. Set the 'On-host maintenance' to Migrate VM instance. Add the instance template to an instance group. (correct answer)
  • BCreate an instance template for the instances. Set 'Automatic Restart' to off. Set 'On-host maintenance' to Terminate VM instances. Add the instance template to an instance group.
  • CCreate an instance group for the instances. Set the 'Autohealing' health check to healthy (HTTP).
  • DCreate an instance group for the instance. Verify that the 'Advanced creation options' setting for 'do not retry machine creation' is set to off.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an instance template for the instances. Set the 'Automatic Restart' to on. Set the 'On-host maintenance' to Migrate VM instance. Add the instance template to an instance group. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 48

You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site. Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally. What should you do?

  • AEnable Cloud CDN on the website frontend.
  • BEnable 'Share publicly' on the PDF file objects.
  • CSet Content-Type metadata to application/pdf on the PDF file objects. (correct answer)
  • DAdd a label to the storage bucket with a key of Content-Type and value of application/pdf.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Set Content-Type metadata to application/pdf on the PDF file objects.

Topic 1 Β· Question 49

You have a virtual machine that is currently configured with 2 vCPUs and 4 GB of memory. It is running out of memory. You want to upgrade the virtual machine to have 8 GB of memory. What should you do?

  • ARely on live migration to move the workload to a machine with more memory.
  • BUse gcloud to add metadata to the VM. Set the key to required-memory-size and the value to 8 GB.
  • CStop the VM, change the machine type to n1-standard-8, and start the VM.
  • DStop the VM, increase the memory to 8 GB, and start the VM. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Stop the VM, increase the memory to 8 GB, and start the VM.

Topic 1 Β· Question 50

You have production and test workloads that you want to deploy on Compute Engine. Production VMs need to be in a different subnet than the test VMs. All the VMs must be able to reach each other over Internal IP without creating additional routes. You need to set up VPC and the 2 subnets. Which configuration meets these requirements?

  • ACreate a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range. (correct answer)
  • BCreate a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range.
  • CCreate 2 custom VPCs, each with a single subnet. Create each subnet in a different region and with a different CIDR range.
  • DCreate 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 51

You need to create an autoscaling managed instance group for an HTTPS web application. You want to make sure that unhealthy VMs are recreated. What should you do?

  • ACreate a health check on port 443 and use that when creating the Managed Instance Group. (correct answer)
  • BSelect Multi-Zone instead of Single-Zone when creating the Managed Instance Group.
  • CIn the Instance Template, add the label 'health-check'.
  • DIn the Instance Template, add a startup script that sends a heartbeat to the metadata server.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a health check on port 443 and use that when creating the Managed Instance Group.

Explanation

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

Topic 1 Β· Question 52

Your company has a Google Cloud Platform project that uses BigQuery for data warehousing. Your data science team changes frequently and has few members. You need to allow members of this team to perform queries. You want to follow Google-recommended practices. What should you do?

  • A1. Create an IAM entry for each data scientist's user account. 2. Assign the BigQuery jobUser role to the group.
  • B1. Create an IAM entry for each data scientist's user account. 2. Assign the BigQuery dataViewer user role to the group.
  • C1. Create a dedicated Google group in Cloud Identity. 2. Add each data scientist's user account to the group. 3. Assign the BigQuery jobUser role to the group. (correct answer)
  • D1. Create a dedicated Google group in Cloud Identity. 2. Add each data scientist's user account to the group. 3. Assign the BigQuery dataViewer user role to the group.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Create a dedicated Google group in Cloud Identity. 2. Add each data scientist's user account to the group. 3. Assign the BigQuery jobUser role to the group.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 Β· Question 53

Your company has a 3-tier solution running on Compute Engine. The configuration of the current infrastructure is shown below. Each tier has a service account that is associated with all instances within it. You need to enable communication on TCP port 8080 between tiers as follows: * Instances in tier #1 must communicate with tier #2. * Instances in tier #2 must communicate with tier #3. What should you do?

  • A1. Create an ingress firewall rule with the following settings: β€’ Targets: all instances β€’ Source filter: IP ranges (with the range set to 10.0.2.0/24) β€’ Protocols: allow all 2. Create an ingress firewall rule with the following settings: β€’ Targets: all instances β€’ Source filter: IP ranges (with the range set to 10.0.1.0/24) β€’ Protocols: allow all
  • B1. Create an ingress firewall rule with the following settings: β€’ Targets: all instances with tier #2 service account β€’ Source filter: all instances with tier #1 service account β€’ Protocols: allow TCP:8080 2. Create an ingress firewall rule with the following settings: β€’ Targets: all instances with tier #3 service account β€’ Source filter: all instances with tier #2 service account β€’ Protocols: allow TCP: 8080 (correct answer)
  • C1. Create an ingress firewall rule with the following settings: β€’ Targets: all instances with tier #2 service account β€’ Source filter: all instances with tier #1 service account β€’ Protocols: allow all 2. Create an ingress firewall rule with the following settings: β€’ Targets: all instances with tier #3 service account β€’ Source filter: all instances with tier #2 service account β€’ Protocols: allow all
  • D1. Create an egress firewall rule with the following settings: β€’ Targets: all instances β€’ Source filter: IP ranges (with the range set to 10.0.2.0/24) β€’ Protocols: allow TCP: 8080 2. Create an egress firewall rule with the following settings: β€’ Targets: all instances β€’ Source filter: IP ranges (with the range set to 10.0.1.0/24) β€’ Protocols: allow TCP: 8080
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Create an ingress firewall rule with the following settings: β€’ Targets: all instances with tier #2 service account β€’ Source filter: all instances with tier #1 service account β€’ Protocols: allow TCP:8080 2. Cr...

Explanation

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

Topic 1 Β· Question 54

You are given a project with a single Virtual Private Cloud (VPC) and a single subnetwork in the us-central1 region. There is a Compute Engine instance hosting an application in this subnetwork. You need to deploy a new instance in the same project in the europe-west1 region. This new instance needs access to the application. You want to follow Google-recommended practices. What should you do?

  • A1. Create a subnetwork in the same VPC, in europe-west1. 2. Create the new instance in the new subnetwork and use the first instance's private address as the endpoint. (correct answer)
  • B1. Create a VPC and a subnetwork in europe-west1. 2. Expose the application with an internal load balancer. 3. Create the new instance in the new subnetwork and use the load balancer's address as the endpoint.
  • C1. Create a subnetwork in the same VPC, in europe-west1. 2. Use Cloud VPN to connect the two subnetworks. 3. Create the new instance in the new subnetwork and use the first instance's private address as the endpoint.
  • D1. Create a VPC and a subnetwork in europe-west1. 2. Peer the 2 VPCs. 3. Create the new instance in the new subnetwork and use the first instance's private address as the endpoint.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Create a subnetwork in the same VPC, in europe-west1. 2. Create the new instance in the new subnetwork and use the first instance's private address as the endpoint.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 55

Your projects incurred more costs than you expected last month. Your research reveals that a development GKE container emitted a huge number of logs, which resulted in higher costs. You want to disable the logs quickly using the minimum number of steps. What should you do?

  • A1. Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE container resource. (correct answer)
  • B1. Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE Cluster Operations resource.
  • C1. Go to the GKE console, and delete existing clusters. 2. Recreate a new cluster. 3. Clear the option to enable legacy Stackdriver Logging.
  • D1. Go to the GKE console, and delete existing clusters. 2. Recreate a new cluster. 3. Clear the option to enable legacy Stackdriver Monitoring.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE container resource.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads. Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 56

You have a website hosted on App Engine standard environment. You want 1% of your users to see a new test version of the website. You want to minimize complexity. What should you do?

  • ADeploy the new version in the same application and use the --migrate option.
  • BDeploy the new version in the same application and use the --splits option to give a weight of 99 to the current version and a weight of 1 to the new version. (correct answer)
  • CCreate a new App Engine application in the same project. Deploy the new version in that application. Use the App Engine library to proxy 1% of the requests to the new version.
  • DCreate a new App Engine application in the same project. Deploy the new version in that application. Configure your network load balancer to send 1% of the traffic to that new application.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy the new version in the same application and use the --splits option to give a weight of 99 to the current version and a weight of 1 to the new version.

Topic 1 Β· Question 57

You have a web application deployed as a managed instance group. You have a new version of the application to gradually deploy. Your web application is currently receiving live web traffic. You want to ensure that the available capacity does not decrease during the deployment. What should you do?

  • APerform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1.
  • BPerform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0. (correct answer)
  • CCreate a new managed instance group with an updated instance template. Add the group to the backend service for the load balancer. When all instances in the new managed instance group are healthy, delete the old managed instance group.
  • DCreate a new instance template with the new application version. Update the existing managed instance group with the new instance template. Delete the instances in the managed instance group to allow the managed instance group to recreate the instance using the new instance template.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0.

Topic 1 Β· Question 58

You are building an application that stores relational data from users. Users across the globe will use this application. Your CTO is concerned about the scaling requirements because the size of the user base is unknown. You need to implement a database solution that can scale with your user growth with minimum configuration changes. Which storage solution should you use?

  • ACloud SQL
  • BCloud Spanner (correct answer)
  • CCloud Firestore
  • DCloud Datastore
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Cloud Spanner

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach.

Topic 1 Β· Question 59

You are the organization and billing administrator for your company. The engineering team has the Project Creator role on the organization. You do not want the engineering team to be able to link projects to the billing account. Only the finance team should be able to link a project to a billing account, but they should not be able to make any other changes to projects. What should you do?

  • AAssign the finance team only the Billing Account User role on the billing account.
  • BAssign the engineering team only the Billing Account User role on the billing account.
  • CAssign the finance team the Billing Account User role on the billing account and the Project Billing Manager role on the organization. (correct answer)
  • DAssign the engineering team the Billing Account User role on the billing account and the Project Billing Manager role on the organization.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Assign the finance team the Billing Account User role on the billing account and the Project Billing Manager role on the organization.

Topic 1 Β· Question 60

You have an application running in Google Kubernetes Engine (GKE) with cluster autoscaling enabled. The application exposes a TCP endpoint. There are several replicas of this application. You have a Compute Engine instance in the same region, but in another Virtual Private Cloud (VPC), called gce-network, that has no overlapping IP ranges with the first VPC. This instance needs to connect to the application on GKE. You want to minimize effort. What should you do?

  • A1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Set the service's externalTrafficPolicy to Cluster. 3. Configure the Compute Engine instance to use the address of the load balancer that has been created.
  • B1. In GKE, create a Service of type NodePort that uses the application's Pods as backend. 2. Create a Compute Engine instance called proxy with 2 network interfaces, one in each VPC. 3. Use iptables on this instance to forward traffic from gce-network to the GKE nodes. 4. Configure the Compute Engine instance to use the address of proxy in gce-network as endpoint.
  • C1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Add an annotation to this service: cloud.google.com/load-balancer-type: Internal 3. Peer the two VPCs together. 4. Configure the Compute Engine instance to use the address of the load balancer that has been created. (correct answer)
  • D1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Add a Cloud Armor Security Policy to the load balancer that whitelists the internal IPs of the MIG's instances. 3. Configure the Compute Engine instance to use the address of the load balancer that has been created.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. In GKE, create a Service of type LoadBalancer that uses the application's Pods as backend. 2. Add an annotation to this service: cloud.google.com/load-balancer-type: Internal 3. Peer the two VPCs together. 4. Confi...

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads. Compute Engine provides configurable virtual machines when you need full control of the OS. A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Showing questions 41–60 of 334 Β· Page 3 of 17