πŸ”

ACE β€” questions

Page 9 of 17 Β· 334 total questions.

Topic 1 Β· Question 161

You are performing a monthly security check of your Google Cloud environment and want to know who has access to view data stored in your Google Cloud Project. What should you do?

  • AEnable Audit Logs for all APIs that are related to data storage.
  • BReview the IAM permissions for any role that allows for data access. (correct answer)
  • CReview the Identity-Aware Proxy settings for each resource.
  • DCreate a Data Loss Prevention job.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Review the IAM permissions for any role that allows for data access.

Explanation

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

Topic 1 Β· Question 162

Your company has embraced a hybrid cloud strategy where some of the applications are deployed on Google Cloud. A Virtual Private Network (VPN) tunnel connects your Virtual Private Cloud (VPC) in Google Cloud with your company's on-premises network. Multiple applications in Google Cloud need to connect to an on-premises database server, and you want to avoid having to change the IP configuration in all of your applications when the IP of the database changes. What should you do?

  • AConfigure Cloud NAT for all subnets of your VPC to be used when egressing from the VM instances.
  • BCreate a private zone on Cloud DNS, and configure the applications with the DNS name. (correct answer)
  • CConfigure the IP of the database as custom metadata for each instance, and query the metadata server.
  • DQuery the Compute Engine internal DNS from the applications to retrieve the IP of the database.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a private zone on Cloud DNS, and configure the applications with the DNS name.

Explanation

Cloud DNS provides scalable, authoritative DNS with health checks and routing policies.

Topic 1 Β· Question 163

You have developed a containerized web application that will serve internal colleagues during business hours. You want to ensure that no costs are incurred outside of the hours the application is used. You have just created a new Google Cloud project and want to deploy the application. What should you do?

  • ADeploy the container on Cloud Run for Anthos, and set the minimum number of instances to zero.
  • BDeploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero. (correct answer)
  • CDeploy the container on App Engine flexible environment with autoscaling, and set the value min_instances to zero in the app.yaml.
  • DDeploy the container on App Engine flexible environment with manual scaling, and set the value instances to zero in the app.yaml.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.

Explanation

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

Topic 1 Β· Question 164

You have experimented with Google Cloud using your own credit card and expensed the costs to your company. Your company wants to streamline the billing process and charge the costs of your projects to their monthly invoice. What should you do?

  • AGrant the financial team the IAM role of "Billing Account User" on the billing account linked to your credit card.
  • BSet up BigQuery billing export and grant your financial department IAM access to query the data.
  • CCreate a ticket with Google Billing Support to ask them to send the invoice to your company.
  • DChange the billing account of your projects to the billing account of your company. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Change the billing account of your projects to the billing account of your company.

Topic 1 Β· Question 165

You are running a data warehouse on BigQuery. A partner company is offering a recommendation engine based on the data in your data warehouse. The partner company is also running their application on Google Cloud. They manage the resources in their own project, but they need access to the BigQuery dataset in your project. You want to provide the partner company with access to the dataset. What should you do?

  • ACreate a Service Account in your own project, and grant this Service Account access to BigQuery in your project.
  • BCreate a Service Account in your own project, and ask the partner to grant this Service Account access to BigQuery in their project.
  • CAsk the partner to create a Service Account in their project, and have them give the Service Account access to BigQuery in their project.
  • DAsk the partner to create a Service Account in their project, and grant their Service Account access to the BigQuery dataset in your project. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Ask the partner to create a Service Account in their project, and grant their Service Account access to the BigQuery dataset in your project.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 166

Your web application has been running successfully on Cloud Run for Anthos. You want to evaluate an updated version of the application with a specific percentage of your production users (canary deployment). What should you do?

  • ACreate a new service with the new version of the application. Split traffic between this version and the version that is currently running.
  • BCreate a new revision with the new version of the application. Split traffic between this version and the version that is currently running. (correct answer)
  • CCreate a new service with the new version of the application. Add an HTTP Load Balancer in front of both services.
  • DCreate a new revision with the new version of the application. Add an HTTP Load Balancer in front of both revisions.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a new revision with the new version of the application. Split traffic between this version and the version that is currently running.

Topic 1 Β· Question 167

Your company developed a mobile game that is deployed on Google Cloud. Gamers are connecting to the game with their personal phones over the Internet. The game sends UDP packets to update the servers about the gamers' actions while they are playing in multiplayer mode. Your game backend can scale over multiple virtual machines (VMs), and you want to expose the VMs over a single IP address. What should you do?

  • AConfigure an SSL Proxy load balancer in front of the application servers.
  • BConfigure an Internal UDP load balancer in front of the application servers.
  • CConfigure an External HTTP(s) load balancer in front of the application servers.
  • DConfigure an External Network load balancer in front of the application servers. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure an External Network load balancer in front of the application servers.

Explanation

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

Topic 1 Β· Question 168

You are working for a hospital that stores its medical images in an on-premises data room. The hospital wants to use Cloud Storage for archival storage of these images. The hospital wants an automated process to upload any new medical images to Cloud Storage. You need to design and implement a solution. What should you do?

  • ACreate a Pub/Sub topic, and enable a Cloud Storage trigger for the Pub/Sub topic. Create an application that sends all medical images to the Pub/Sub topic.
  • BDeploy a Dataflow job from the batch template, "Datastore to Cloud Storage." Schedule the batch job on the desired interval.
  • CCreate a script that uses the gsutil command line interface to synchronize the on-premises storage with Cloud Storage. Schedule the script as a cron job. (correct answer)
  • DIn the Cloud Console, go to Cloud Storage. Upload the relevant images to the appropriate bucket.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a script that uses the gsutil command line interface to synchronize the on-premises storage with Cloud Storage. Schedule the script as a cron job.

Explanation

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

Topic 1 Β· Question 169

Your auditor wants to view your organization's use of data in Google Cloud. The auditor is most interested in auditing who accessed data in Cloud Storage buckets. You need to help the auditor access the data they need. What should you do?

  • ATurn on Data Access Logs for the buckets they want to audit, and then build a query in the log viewer that filters on Cloud Storage. (correct answer)
  • BAssign the appropriate permissions, and then create a Data Studio report on Admin Activity Audit Logs.
  • CAssign the appropriate permissions, and then use Cloud Monitoring to review metrics.
  • DUse the export logs API to provide the Admin Activity Audit Logs in the format they want.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Turn on Data Access Logs for the buckets they want to audit, and then build a query in the log viewer that filters on Cloud Storage.

Explanation

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

Topic 1 Β· Question 170

You received a JSON file that contained a private key of a Service Account in order to get access to several resources in a Google Cloud project. You downloaded and installed the Cloud SDK and want to use this private key for authentication and authorization when performing gcloud commands. What should you do?

  • AUse the command gcloud auth login and point it to the private key.
  • BUse the command gcloud auth activate-service-account and point it to the private key. (correct answer)
  • CPlace the private key file in the installation directory of the Cloud SDK and rename it to "credentials.json".
  • DPlace the private key file in your home directory and rename it to "GOOGLE_APPLICATION_CREDENTIALS".
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the command gcloud auth activate-service-account and point it to the private key.

Topic 1 Β· Question 171

You are working with a Cloud SQL MySQL database at your company. You need to retain a month-end copy of the database for three years for audit purposes. What should you do?

  • ASet up an export job for the first of the month. Write the export file to an Archive class Cloud Storage bucket. (correct answer)
  • BSave the automatic first-of-the-month backup for three years. Store the backup file in an Archive class Cloud Storage bucket.
  • CSet up an on-demand backup for the first of the month. Write the backup to an Archive class Cloud Storage bucket.
  • DConvert the automatic first-of-the-month backup to an export file. Write the export file to a Coldline class Cloud Storage bucket.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Set up an export job for the first of the month. Write the export file to an Archive class Cloud Storage bucket.

Explanation

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

Topic 1 Β· Question 172

You are monitoring an application and receive user feedback that a specific error is spiking. You notice that the error is caused by a Service Account having insufficient permissions. You are able to solve the problem but want to be notified if the problem recurs. What should you do?

  • AIn the Log Viewer, filter the logs on severity 'Error' and the name of the Service Account.
  • BCreate a sink to BigQuery to export all the logs. Create a Data Studio dashboard on the exported logs.
  • CCreate a custom log-based metric for the specific error to be used in an Alerting Policy. (correct answer)
  • DGrant Project Owner access to the Service Account.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a custom log-based metric for the specific error to be used in an Alerting Policy.

Topic 1 Β· Question 173

You are developing a financial trading application that will be used globally. Data is stored and queried using a relational structure, and clients from all over the world should get the exact identical state of the data. The application will be deployed in multiple regions to provide the lowest latency to end users. You need to select a storage option for the application data while minimizing latency. What should you do?

  • AUse Cloud Bigtable for data storage.
  • BUse Cloud SQL for data storage.
  • CUse Cloud Spanner for data storage. (correct answer)
  • DUse Firestore for data storage.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Cloud Spanner for data storage.

Explanation

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

Topic 1 Β· Question 174

You are about to deploy a new Enterprise Resource Planning (ERP) system on Google Cloud. The application holds the full database in-memory for fast data access, and you need to configure the most appropriate resources on Google Cloud for this application. What should you do?

  • AProvision preemptible Compute Engine instances.
  • BProvision Compute Engine instances with GPUs attached.
  • CProvision Compute Engine instances with local SSDs attached.
  • DProvision Compute Engine instances with M1 machine type. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Provision Compute Engine instances with M1 machine type.

Explanation

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

Topic 1 Β· Question 175

You have developed an application that consists of multiple microservices, with each microservice packaged in its own Docker container image. You want to deploy the entire application on Google Kubernetes Engine so that each microservice can be scaled individually. What should you do?

  • ACreate and deploy a Custom Resource Definition per microservice.
  • BCreate and deploy a Docker Compose File.
  • CCreate and deploy a Job per microservice.
  • DCreate and deploy a Deployment per microservice. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create and deploy a Deployment per microservice.

Topic 1 Β· Question 176

You will have several applications running on different Compute Engine instances in the same project. You want to specify at a more granular level the service account each instance uses when calling Google Cloud APIs. What should you do?

  • AWhen creating the instances, specify a Service Account for each instance. (correct answer)
  • BWhen creating the instances, assign the name of each Service Account as instance metadata.
  • CAfter starting the instances, use gcloud compute instances update to specify a Service Account for each instance.
  • DAfter starting the instances, use gcloud compute instances update to assign the name of the relevant Service Account as instance metadata.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: When creating the instances, specify a Service Account for each instance.

Explanation

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

Topic 1 Β· Question 177

You are creating an application that will run on Google Kubernetes Engine. You have identified MongoDB as the most suitable database system for your application and want to deploy a managed MongoDB environment that provides a support SLA. What should you do?

  • ACreate a Cloud Bigtable cluster, and use the HBase API.
  • BDeploy MongoDB Atlas from the Google Cloud Marketplace. (correct answer)
  • CDownload a MongoDB installation package, and run it on Compute Engine instances.
  • DDownload a MongoDB installation package, and run it on a Managed Instance Group.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy MongoDB Atlas from the Google Cloud Marketplace.

Topic 1 Β· Question 178

You are managing a project for the Business Intelligence (BI) department in your company. A data pipeline ingests data into BigQuery via streaming. You want the users in the BI department to be able to run the custom SQL queries against the latest data in BigQuery. What should you do?

  • ACreate a Data Studio dashboard that uses the related BigQuery tables as a source and give the BI team view access to the Data Studio dashboard.
  • BCreate a Service Account for the BI team and distribute a new private key to each member of the BI team.
  • CUse Cloud Scheduler to schedule a batch Dataflow job to copy the data from BigQuery to the BI team's internal data warehouse.
  • DAssign the IAM role of BigQuery User to a Google Group that contains the members of the BI team. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Assign the IAM role of BigQuery User to a Google Group that contains the members of the BI team.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 179

Your company is moving its entire workload to Compute Engine. Some servers should be accessible through the Internet, and other servers should only be accessible over the internal network. All servers need to be able to talk to each other over specific ports and protocols. The current on-premises network relies on a demilitarized zone (DMZ) for the public servers and a Local Area Network (LAN) for the private servers. You need to design the networking infrastructure on Google Cloud to match these requirements. What should you do?

  • A1. Create a single VPC with a subnet for the DMZ and a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public ingress traffic for the DMZ. (correct answer)
  • B1. Create a single VPC with a subnet for the DMZ and a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public egress traffic for the DMZ.
  • C1. Create a VPC with a subnet for the DMZ and another VPC with a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public ingress traffic for the DMZ.
  • D1. Create a VPC with a subnet for the DMZ and another VPC with a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public egress traffic for the DMZ.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Create a single VPC with a subnet for the DMZ and a subnet for the LAN. 2. Set up firewall rules to open up relevant traffic between the DMZ and the LAN subnets, and another firewall rule to allow public ingress tr...

Explanation

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

Topic 1 Β· Question 180

You have just created a new project which will be used to deploy a globally distributed application. You will use Cloud Spanner for data storage. You want to create a Cloud Spanner instance. You want to perform the first step in preparation of creating the instance. What should you do?

  • AEnable the Cloud Spanner API. (correct answer)
  • BConfigure your Cloud Spanner instance to be multi-regional.
  • CCreate a new VPC network with subnetworks in all desired regions.
  • DGrant yourself the IAM role of Cloud Spanner Admin.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Enable the Cloud Spanner API.

Explanation

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

Showing questions 161–180 of 334 Β· Page 9 of 17