πŸ”

ACE β€” questions

Page 10 of 17 Β· 334 total questions.

Topic 1 Β· Question 181

You have created a new project in Google Cloud through the gcloud command line interface (CLI) and linked a billing account. You need to create a new Compute Engine instance using the CLI. You need to perform the prerequisite steps. What should you do?

  • ACreate a Cloud Monitoring Workspace.
  • BCreate a VPC network in the project.
  • CEnable the compute googleapis.com API. (correct answer)
  • DGrant yourself the IAM role of Computer Admin.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Enable the compute googleapis.com API.

Topic 1 Β· Question 182

Your company has developed a new application that consists of multiple microservices. You want to deploy the application to Google Kubernetes Engine (GKE), and you want to ensure that the cluster can scale as more applications are deployed in the future. You want to avoid manual intervention when each new application is deployed. What should you do?

  • ADeploy the application on GKE, and add a HorizontalPodAutoscaler to the deployment. (correct answer)
  • BDeploy the application on GKE, and add a VerticalPodAutoscaler to the deployment.
  • CCreate a GKE cluster with autoscaling enabled on the node pool. Set a minimum and maximum for the size of the node pool.
  • DCreate a separate node pool for each application, and deploy each application to its dedicated node pool.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deploy the application on GKE, and add a HorizontalPodAutoscaler to the deployment.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads.

Topic 1 Β· Question 183

You need to manage a third-party application that will run on a Compute Engine instance. Other Compute Engine instances are already running with default configuration. Application installation files are hosted on Cloud Storage. You need to access these files from the new instance without allowing other virtual machines (VMs) to access these files. What should you do?

  • ACreate the instance with the default Compute Engine service account. Grant the service account permissions on Cloud Storage.
  • BCreate the instance with the default Compute Engine service account. Add metadata to the objects on Cloud Storage that matches the metadata on the new instance.
  • CCreate a new service account and assign this service account to the new instance. Grant the service account permissions on Cloud Storage. (correct answer)
  • DCreate a new service account and assign this service account to the new instance. Add metadata to the objects on Cloud Storage that matches the metadata on the new instance.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a new service account and assign this service account to the new instance. Grant the service account permissions on Cloud Storage.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 184

You need to configure optimal data storage for files stored in Cloud Storage for minimal cost. The files are used in a mission-critical analytics pipeline that is used continually. The users are in Boston, MA (United States). What should you do?

  • AConfigure regional storage for the region closest to the users. Configure a Nearline storage class.
  • BConfigure regional storage for the region closest to the users. Configure a Standard storage class. (correct answer)
  • CConfigure dual-regional storage for the dual region closest to the users. Configure a Nearline storage class.
  • DConfigure dual-regional storage for the dual region closest to the users. Configure a Standard storage class.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure regional storage for the region closest to the users. Configure a Standard storage class.

Topic 1 Β· Question 185

You are developing a new web application that will be deployed on Google Cloud Platform. As part of your release cycle, you want to test updates to your application on a small portion of real user traffic. The majority of the users should still be directed towards a stable version of your application. What should you do?

  • ADeploy the application on App Engine. For each update, create a new version of the same service. Configure traffic splitting to send a small percentage of traffic to the new version. (correct answer)
  • BDeploy the application on App Engine. For each update, create a new service. Configure traffic splitting to send a small percentage of traffic to the new service.
  • CDeploy the application on Kubernetes Engine. For a new release, update the deployment to use the new version.
  • DDeploy the application on Kubernetes Engine. For a new release, create a new deployment for the new version. Update the service to use the new deployment.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deploy the application on App Engine. For each update, create a new version of the same service. Configure traffic splitting to send a small percentage of traffic to the new version.

Explanation

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

Topic 1 Β· Question 186

You need to add a group of new users to Cloud Identity. Some of the users already have existing Google accounts. You want to follow one of Google's recommended practices and avoid conflicting accounts. What should you do?

  • AInvite the user to transfer their existing account. (correct answer)
  • BInvite the user to use an email alias to resolve the conflict.
  • CTell the user that they must delete their existing account.
  • DTell the user to remove all personal email from the existing account.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Invite the user to transfer their existing account.

Topic 1 Β· Question 187

You need to manage a Cloud Spanner instance for best query performance. Your instance in production runs in a single Google Cloud region. You need to improve performance in the shortest amount of time. You want to follow Google best practices for service configuration. What should you do?

  • ACreate an alert in Cloud Monitoring to alert when the percentage of high priority CPU utilization reaches 45%. If you exceed this threshold, add nodes to your instance.
  • BCreate an alert in Cloud Monitoring to alert when the percentage of high priority CPU utilization reaches 45%. Use database query statistics to identify queries that result in high CPU usage, and then rewrite those queries to optimize their resource usage.
  • CCreate an alert in Cloud Monitoring to alert when the percentage of high priority CPU utilization reaches 65%. If you exceed this threshold, add nodes to your instance. (correct answer)
  • DCreate an alert in Cloud Monitoring to alert when the percentage of high priority CPU utilization reaches 65%. Use database query statistics to identify queries that result in high CPU usage, and then rewrite those queries to optimize their resource usage.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create an alert in Cloud Monitoring to alert when the percentage of high priority CPU utilization reaches 65%. If you exceed this threshold, add nodes to your instance.

Explanation

Cloud Monitoring collects metrics, dashboards, and alerts to observe system health.

Topic 1 Β· Question 188

Your company has an internal application for managing transactional orders. The application is used exclusively by employees in a single physical location. The application requires strong consistency, fast queries, and ACID guarantees for multi-table transactional updates. The first version of the application is implemented in PostgreSQL, and you want to deploy it to the cloud with minimal code changes. Which database is most appropriate for this application?

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

The correct answer is B. Option B: Cloud SQL

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover. This option needs the least custom development effort.

Topic 1 Β· Question 189

You are assigned to maintain a Google Kubernetes Engine (GKE) cluster named 'dev' that was deployed on Google Cloud. You want to manage the GKE configuration using the command line interface (CLI). You have just downloaded and installed the Cloud SDK. You want to ensure that future CLI commands by default address this specific cluster What should you do?

  • AUse the command gcloud config set container/cluster dev. (correct answer)
  • BUse the command gcloud container clusters update dev.
  • CCreate a file called gke.default in the ~/.gcloud folder that contains the cluster name.
  • DCreate a file called defaults.json in the ~/.gcloud folder that contains the cluster name.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the command gcloud config set container/cluster dev.

Topic 1 Β· Question 190

The sales team has a project named Sales Data Digest that has the ID acme-data-digest. You need to set up similar Google Cloud resources for the marketing team but their resources must be organized independently of the sales team. What should you do?

  • AGrant the Project Editor role to the Marketing team for acme-data-digest.
  • BCreate a Project Lien on acme-data-digest and then grant the Project Editor role to the Marketing team.
  • CCreate another project with the ID acme-marketing-data-digest for the Marketing team and deploy the resources there. (correct answer)
  • DCreate a new project named Marketing Data Digest and use the ID acme-data-digest. Grant the Project Editor role to the Marketing team.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create another project with the ID acme-marketing-data-digest for the Marketing team and deploy the resources there.

Topic 1 Β· Question 191

You have deployed multiple Linux instances on Compute Engine. You plan on adding more instances in the coming weeks. You want to be able to access all of these instances through your SSH client over the internet without having to configure specific access on the existing and new instances. You do not want the Compute Engine instances to have a public IP. What should you do?

  • AConfigure Cloud Identity-Aware Proxy for HTTPS resources.
  • BConfigure Cloud Identity-Aware Proxy for SSH and TCP resources (correct answer)
  • CCreate an SSH keypair and store the public key as a project-wide SSH Key.
  • DCreate an SSH keypair and store the private key as a project-wide SSH Key.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure Cloud Identity-Aware Proxy for SSH and TCP resources

Explanation

Cloud Identity manages users, groups, and device policies as a managed identity platform. Identity-Aware Proxy enforces per-request access control to apps without a VPN.

Topic 1 Β· Question 192

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 Container Registry and create a Kubernetes Service referencing the image.
  • DUpload the image to Container 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 Container Registry and create a Kubernetes Deployment referencing the image.

Topic 1 Β· Question 193

You are using Data 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 Data Studio are broken, and you want to analyze the problem. What should you do?

  • AReview the Error Reporting page in the Cloud Console to find any errors.
  • BUse the BigQuery interface to review the nightly job and look for any errors. (correct answer)
  • CUse Cloud Debugger to find out why the data was not refreshed correctly.
  • DIn Cloud Logging, create a filter for your Data Studio report.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 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 194

You have been asked to set up the billing configuration for a new Google Cloud customer. Your customer wants to group resources that share common IAM policies. What should you do?

  • AUse labels to group resources that share common IAM policies.
  • BUse folders to group resources that share common IAM policies. (correct answer)
  • CSet up a proper billing account structure to group IAM policies.
  • DSet up a proper project naming structure to group IAM policies.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use folders to group resources that share common IAM policies.

Explanation

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

Topic 1 Β· Question 195

You have been asked to create robust Virtual Private Network (VPN) connectivity between a new Virtual Private Cloud (VPC) and a remote site. Key requirements include dynamic routing, a shared address space of 10.19.0.1/22, and no overprovisioning of tunnels during a failover event. You want to follow Google- recommended practices to set up a high availability Cloud VPN. What should you do?

  • AUse a custom mode VPC network, configure static routes, and use active/passive routing.
  • BUse an automatic mode VPC network, configure static routes, and use active/active routing.
  • CUse a custom mode VPC network, use Cloud Router border gateway protocol (BGP) routes, and use active/passive routing. (correct answer)
  • DUse an automatic mode VPC network, use Cloud Router border gateway protocol (BGP) routes, and configure policy-based routing.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use a custom mode VPC network, use Cloud Router border gateway protocol (BGP) routes, and use active/passive routing.

Explanation

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

Topic 1 Β· Question 196

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 n1-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 197

Your organization has three existing Google Cloud projects. You need to bill the Marketing department for only their Google Cloud services for a new initiative within their group. What should you do?

  • A1. Verify that you are assigned the Billing Administrator IAM role for your organization's Google Cloud Project for the Marketing department. 2. Link the new project to a Marketing Billing Account. (correct answer)
  • B1. Verify that you are assigned the Billing Administrator IAM role for your organization's Google Cloud account. 2. Create a new Google Cloud Project for the Marketing department. 3. Set the default key-value project labels to department:marketing for all services in this project.
  • C1. Verify that you are assigned the Organization Administrator IAM role for your organization's Google Cloud account. 2. Create a new Google Cloud Project for the Marketing department. 3. Link the new project to a Marketing Billing Account.
  • D1. Verify that you are assigned the Organization Administrator IAM role for your organization's Google Cloud account. 2. Create a new Google Cloud Project for the Marketing department. 3. Set the default key-value project labels to department:marketing for all services in this project.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Verify that you are assigned the Billing Administrator IAM role for your organization's Google Cloud Project for the Marketing department. 2. Link the new project to a Marketing Billing Account.

Explanation

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

Topic 1 Β· Question 198

You deployed an application on a managed instance group in Compute Engine. The application accepts Transmission Control Protocol (TCP) traffic on port 389 and requires you to preserve the IP address of the client who is making a request. You want to expose the application to the internet by using a load balancer. What should you do?

  • AExpose the application by using an external TCP Network Load Balancer. (correct answer)
  • BExpose the application by using a TCP Proxy Load Balancer.
  • CExpose the application by using an SSL Proxy Load Balancer.
  • DExpose the application by using an internal TCP Network Load Balancer.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Expose the application by using an external TCP Network Load Balancer.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 199

You are building a multi-player gaming application that will store game information in a database. As the popularity of the application increases, you are concerned about delivering consistent performance. You need to ensure an optimal gaming performance for global users, without increasing the management complexity. What should you do?

  • AUse Cloud SQL database with cross-region replication to store game statistics in the EU, US, and APAC regions.
  • BUse Cloud Spanner to store user data mapped to the game statistics. (correct answer)
  • CUse BigQuery to store game statistics with a Redis on Memorystore instance in the front to provide global consistency.
  • DStore game statistics in a Bigtable database partitioned by username.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Cloud Spanner to store user data mapped to the game statistics.

Explanation

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

Topic 1 Β· Question 200

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
  • BFirestore
  • CCloud Spanner (correct answer)
  • DBigtable
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Cloud Spanner

Explanation

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

Showing questions 181–200 of 334 Β· Page 10 of 17