[GCP] Google Cloud Certified - Associate Cloud Engineer

Ace Your Associate Cloud Engineer with Practice Exams.

Google Cloud Certified – Associate Cloud Engineer Practice Exam (Q 79)


QUESTION 1

You need to host an application on a Google Compute Engine instance in a project shared with other teams.
You want to prevent the other teams from accidentally causing downtime on that application.
Which feature should you use?

  • A. Use a Shielded VM.
  • B. Use a Preemptible VM.
  • C. Use a sole-tenant node.
  • D. Enable deletion protection on the instance.

Correct Answer: D

Reference contents:
Preventing Accidental VM Deletion | Compute Engine Documentation | Google Cloud


QUESTION 2

Your organization needs to grant users access to query datasets in BigQuery but prevent them from accidentally deleting the datasets.
You want a solution that follows Google-recommended practices.
What should you do?

  • A. Add users to roles/bigquery user role only, instead of roles/bigquery dataOwner.
  • B. Add users to roles/bigquery dataEditor role only, instead of roles/bigquery dataOwner.
  • C. Create a custom role by removing delete permissions, and add users to that role only.
  • D. Create a custom role by removing delete permissions. Add users to the group, and then add the group to the custom role.

Correct Answer: D

Reference contents:
#BigQuery custom roles – Access control with IAM | BigQuery | Google Cloud


QUESTION 3

You have a developer laptop with the Cloud SDK installed on Ubuntu.
The Cloud SDK was installed from the Google Cloud Ubuntu package repository. You want to test your application locally on your laptop with Google Cloud Datastore.
What should you do?

  • A. Export Google Cloud Datastore data using gcloud datastore export.
  • B. Create a Google Cloud Datastore index using gcloud datastore indexes create.
  • C. Install the google-cloud-sdk-datastore-emulator component using the apt get install command.
  • D. Install the cloud-datastore-emulator component using the gcloud components install command.

Correct Answer: C

Reference contents:
Installing the gcloud CLI


QUESTION 4

Your company set up a complex organizational structure on Google Cloud.
The structure includes hundreds of folders and projects. Only a few team members should be able to view the hierarchical structure. You need to assign minimum permissions to these team members, and you want to follow Google-recommended practices.
What should you do?

  • A. Add the users to roles/browser role.
  • B. Add the users to roles/iam.roleViewer role.
  • C. Add the users to a group, and add this group to roles/browser.
  • D. Add the users to a group, and add this group to roles/iam.roleViewer role.

Correct Answer: C

Reference contents:
Understanding roles | IAM Documentation | Google Cloud


QUESTION 5

Your company has a single sign-on (SSO) identity provider that supports Security Assertion Markup Language (SAML) integration with service providers.
Your company has users in Cloud Identity. You would like users to authenticate using your company’s SSO provider.
What should you do?

  • A. In Cloud Identity, set up SSO with Google as an identity provider to access custom SAML apps.
  • B. In Cloud Identity, set up SSO with a third-party identity provider with Google as a service provider.
  • C. Obtain OAuth 2.0 credentials, configure the user consent screen, and set up OAuth 2.0 for Mobile & Desktop Apps.
  • D. Obtain OAuth 2.0 credentials, configure the user consent screen, and set up OAuth 2.0 for Web Server Applications.

Correct Answer: B

Reference contents:
Partner-operated SAML single sign-on (SSO) service – Cloud Identity Help
Single sign-on | Identity and access management | Google Cloud


QUESTION 6

Your organization has a dedicated person who creates and manages all service accounts for Google Cloud projects.
You need to assign this person the minimum role for projects.
What should you do?

  • A. Add the user to roles/iam.roleAdmin role.
  • B. Add the user to roles/iam.securityAdmin role.
  • C. Add the user to roles/iam.serviceAccountUser role.
  • D. Add the user to roles/iam.serviceAccountAdmin role.

Correct Answer: D

Reference contents:
#Required permissions – Creating and managing service accounts | IAM Documentation | Google Cloud


QUESTION 7

You are building an archival solution for your data warehouse and have selected Google Cloud Storage to archive your data.
Your users need to be able to access this archived data once a quarter for some regulatory requirements. You want to select a cost-efficient option.
Which storage option should you use?

  • A. Cold Storage
  • B. Nearline Storage
  • C. Regional Storage
  • D. Multi-Regional Storage

Correct Answer: B

Reference contents:
Storage classes | Google Cloud


QUESTION 8

A team of data scientists infrequently needs to use a Google Kubernetes Engine (GKE) cluster that you manage.
They require GPUs for some long-running, non- restartable jobs. You want to minimize cost.
What should you do?

  • A. Enable node auto-provisioning on the GKE cluster.
  • B. Create a VerticalPodAutscaler for those workloads.
  • C. Create a node pool with preemptible VMs and GPUs attached to those VMs.
  • D. Create a node pool of instances with GPUs, and enable autoscaling on this node pool with a minimum size of 1.

Correct Answer: D

Reference contents:
#Creating an autoscaling GPU node pool – Running GPUs | Kubernetes Engine Documentation | Google Cloud


QUESTION 9

Your organization has user identities in Active Directory.
Your organization wants to use Active Directory as their source of truth for identities. Your organization wants to have full control over the Google accounts used by employees for all Google services, including your Google Cloud Platform (GCP) organization.
What should you do?

  • A. Use Google Cloud Directory Sync (GCDS) to synchronize users into Cloud Identity.
  • B. Use the cloud Identity APIs and write a script to synchronize users to Cloud Identity.
  • C. Export users from Active Directory as a CSV and import them to Cloud Identity via the Admin Console.
  • D. Ask each employee to create a Google account using self signup. Require that each employee use their company email address and password.

Correct Answer: A

Reference contents:
Federating Google Cloud with Active Directory | Identity and access management
Google Cloud Directory Sync


QUESTION 10

You have successfully created a development environment in a project for an application.
This application uses Google Compute Engine and Google Cloud SQL. Now you need to create a production environment for this application. The security team has forbidden the existence of network routes between these 2 environments and has asked you to follow Google-recommended practices.
What should you do?

  • A. Create a new project, enable the Google Compute Engine and Google Cloud SQL APIs in that project, and replicate the setup you have created in the development environment.
  • B. Create a new production subnet in the existing VPC and a new production Google Cloud SQL instance in your existing project, and deploy your application using those resources.
  • C. Create a new project, modify your existing VPC to be a Shared VPC, share that VPC with your new project, and replicate the setup you have in the development environment in that new project in the Shared VPC.
  • D. Ask the security team to grant you the Project Editor role in an existing production project used by another division of your company. Once they grant you that role, replicate the setup you have in the development environment in that project.

Correct Answer: A

Reference contents:
#Specify your project structure – Best practices for enterprise organizations | Documentation | Google Cloud


QUESTION 11

Your management has asked an external auditor to review all the resources in a specific project.
The security team has enabled the Organization Policy called Domain Restricted Sharing on the organization node by specifying only your Cloud Identity domain. You want the auditor to only be able to view, but not modify, the resources in that project.
What should you do?

  • A. Ask the auditor for their Google account, and give them the Viewer role on the project.
  • B. Ask the auditor for their Google account, and give them the Security Reviewer role on the project.
  • C. Create a temporary account for the auditor in Cloud Identity, and give that account the Viewer role on the project.
  • D. Create a temporary account for the auditor in Cloud Identity, and give that account the Security Reviewer role on the project.

Correct Answer: C

Reference contents:
#Scenario: External auditors – IAM roles for auditing-related job functions | IAM Documentation | Google Cloud


QUESTION 12

You have a workload running on Google Compute Engine that is critical to your business.
You want to ensure that the data on the boot disk of this workload is backed up regularly. You need to be able to restore a backup as quickly as possible in case of disaster. You also want older backups to be cleaned automatically to save on cost. You want to follow Google-recommended practices.
What should you do?

  • A. Create a Google Cloud Functions to create an instance template.
  • B. Create a snapshot schedule for the disk using the desired interval.
  • C. Create a cron job to create a new disk from the disk using gcloud.
  • D. Create a Cloud Task to create an image and export it to Google Cloud Storage.

Correct Answer: B


QUESTION 13

You need to assign a Cloud Identity and Access Management (Cloud IAM) role to an external auditor.
The auditor needs to have permissions to review your Google Cloud Platform (GCP) Audit Logs and also to review your Data Access logs.
What should you do?

  • A. Assign the auditor the IAM role roles/logging.privateLogViewer. Perform the export of logs to Google Cloud Storage.
  • B. Assign the auditor the IAM role roles/logging.privateLogViewer. Direct the auditor to also review the logs for changes to Cloud IAM policy.
  • C. Assign the auditors IAM user to a custom role that has logging.privateLogEntries.list permission. Perform the export of logs to Google Cloud Storage.
  • D. Assign the auditors IAM user to a custom role that has logging.privateLogEntries.list permission. Direct the auditor to also review the logs for changes to Cloud IAM policy.

Correct Answer: B

Reference contents:
#Cloud Console permissions – Access control with IAM | Cloud Logging


QUESTION 14

You are managing several Google Cloud Platform (GCP) projects and need access to all logs for the past 60 days.
You want to be able to explore and quickly analyze the log contents. You want to follow Google-recommended practices to obtain the combined logs for all projects.
What should you do?

  • A. Navigate to Stackdriver Logging and select resource.labels.project_id=”*”
  • B. Create a Stackdriver Logging Export with a Sink destination to a BigQuery dataset. Configure the table expiration to 60 days.
  • C. Create a Stackdriver Logging Export with a Sink destination to Google Cloud Storage. Create a lifecycle rule to delete objects after 60 days.
  • D. Configure a Google Cloud Scheduler job to read from Stackdriver and store the logs in BigQuery. Configure the table expiration to 60 days.

Correct Answer: B

Reference contents:
Best practices for working with Google Cloud Audit Logs


QUESTION 15

You need to reduce GCP service costs for a division of your company using the fewest possible steps.
You need to turn off all configured services in an existing GCP project.
What should you do?

  • A.
    • 1. Verify that you are assigned the Project Owners IAM role for this project.
    • 2. Locate the project in the Google Cloud Console, click Shut down and then enter the project ID.
  • B.
    • 1. Verify that you are assigned the Project Owners IAM role for this project.
    • 2. Switch to the project in the Google Cloud Console, locate the resources and delete them.
  • C.
    • 1. Verify that you are assigned the Organizational Administrator IAM role for this project.
    • 2. Locate the project in the Google Cloud Console, enter the project ID and then click Shut down.
  • D.
    • 1. Verify that you are assigned the Organizational Administrators IAM role for this project.
    • 2. Switch to the project in the Google Cloud Console, locate the resources and delete them.

Correct Answer: A

Reference contents:
Creating and managing projects | Resource Manager Documentation | Google Cloud


QUESTION 16

You are configuring service accounts for an application that spans multiple projects.
Virtual machines (VMs) running in the web-applications project need access to BigQuery datasets in crm-databases-proj. You want to follow Google-recommended practices to give access to the service account in the web-applications project.
What should you do?

  • A. Give project owner for web-applications appropriate roles to crm-databases-project.
  • B. Give project owner role to crm-databases-project and the web-applications project.
  • C. Give project owner role to crm-databases-project and bigquery.dataViewer role to web-applications.
  • D. Give bigquery.dataViewer role to crm-databases-project and appropriate roles to web-applications.

Correct Answer: D

Reference contents:
#Read access to data in a different project – Access control examples | BigQuery | Google Cloud


QUESTION 17

An employee was terminated, but their access to Google Cloud Platform (GCP) was not removed until 2 weeks later.
You need to find out this employee accessed any sensitive customer information after their termination.
What should you do?

  • A. View System Event Logs in Stackdriver. Search for the users email as the principal.
  • B. View System Event Logs in Stackdriver. Search for the service account associated with the user.
  • C. View Data Access audit logs in Stackdriver. Search for the users email as the principal.
  • D. View the Admin Activity log in Stackdriver. Search for the service account associated with the user.

Correct Answer: C

Reference contents:
Cloud Audit Logs overview


QUESTION 18

You need to create a custom IAM role for use with a GCP service.
All permissions in the role must be suitable for production use. You also want to clearly share with your organization the status of the custom role. This will be the first version of the custom role.
What should you do?

  • A. Use permissions in your role that use the supported support level for role permissions. Set the role stage to ALPHA while testing the role permissions.
  • B. Use permissions in your role that use the supported support level for role permissions. Set the role stage to BETA while testing the role permissions.
  • C. Use permissions in your role that use the testing support level for role permissions. Set the role stage to ALPHA while testing the role permissions.
  • D. Use permissions in your role that use the testing support level for role permissions. Set the role stage to BETA while testing the role permissions.

Correct Answer: A

Reference contents:
Support levels for permissions in custom roles | IAM Documentation | Google Cloud


QUESTION 19

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?

  • A. Upload the data to BigQuery using the bq command line tool.
  • B. Upload the data to Google Cloud Storage using the gsutil command line tool.
  • C. Upload the data into Google Cloud SQL using the import function in the console.
  • D. Upload the data into Google Cloud Spanner using the import function in the console.

Correct Answer: B

Reference contents:
Performing ETL from a relational database into BigQuery using Dataflow | Cloud Architecture Center | Google Cloud


QUESTION 20

You need to manage multiple Google Cloud projects in the fewest steps possible.

You want to configure the Google Cloud SDK command line interface (CLI) so that you can easily manage multiple projects.
What should you do?

  • A.
    • 1. Create a configuration for each project you need to manage.
    • 2. Activate the appropriate configuration when you work with each of your assigned Google Cloud projects.
  • B.
    • 1. Create a configuration for each project you need to manage.
    • 2. Use gcloud init to update the configuration values when you need to work with a non-default project.
  • C.
    • 1. Use the default configuration for one project you need to manage.
    • 2. Activate the appropriate configuration when you work with each of your assigned Google Cloud projects.
  • D.
    • 1. Use the default configuration for one project you need to manage.
    • 2. Use gcloud init to update the configuration values when you need to work with a non-default project.

Correct Answer: A

Reference contents:
gcloud config set | Google Cloud CLI Documentation
Managing gcloud CLI configurations | Google Cloud CLI Documentation


QUESTION 21

Your managed instance group raised an alert stating that new instance creation has failed to create new instances.
You need to maintain the number of running instances specified by the template to be able to process expected application traffic.
What should you do?

  • 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.
  • B. Create 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.
  • C. Verify 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.
  • D. Delete 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.

Correct Answer: C

Reference contents:
Basic scenarios for creating managed instance groups (MIGs) | Compute Engine Documentation | Google Cloud
#How to update instance templates – Instance templates | Compute Engine Documentation | Google Cloud


QUESTION 22

Your company is moving from an on-premises environment to Google Cloud.
You have multiple development teams that use Cassandra environments as backend databases. They all need a development environment that is isolated from other Cassandra instances. You want to move to Google Cloud quickly and with minimal support effort.
What should you do?

  • A.
    • 1. Build an instruction guide to install Cassandra on Google Cloud.
    • 2. Make the instruction guide accessible to your developers.
  • B.
    • 1. Advise your developers to go to Google Cloud Marketplace.
    • 2. Ask the developers to launch a Cassandra image for their development work.
  • C.
    • 1. Build a Cassandra Google Compute Engine instance and take a snapshot of it.
    • 2. Use the snapshot to create instances for your developers.
  • D.
    • 1. Build a Cassandra Google Compute Engine instance and take a snapshot of it.
    • 2. Upload the snapshot to Google Cloud Storage and make it accessible to your developers.
    • 3. Build instructions to create a Google Compute Engine instance from the snapshot so that developers can do it themselves.

Correct Answer: B

Reference contents:
How to deploy Cassandra and connect on Google Cloud Platform with a few clicks | by Billy Jacobson | Google Cloud – Community | Medium


QUESTION 23

You have a Google Compute Engine instance hosting a production application.
You want to receive an email if the instance consumes more than 90% of its CPU resources for more than 15 minutes. You want to use Google services.
What should you do?

  • A.
    • 1. Create a consumer Gmail account.
    • 2. Write a script that monitors the CPU usage.
    • 3. When the CPU usage exceeds the threshold, have that script send an email using the Gmail account and smtp.gmail.com on port 25 as SMTP server.
  • B.
    • 1. Create a Stackdriver Workspace, and associate your Google Cloud Platform (GCP) project with it.
    • 2. Create an Alerting Policy in Stackdriver that uses the threshold as a trigger condition.
    • 3. Configure your email address in the notification channel.
  • C.
    • 1. Create a Stackdriver Workspace, and associate your GCP project with it.
    • 2. Write a script that monitors the CPU usage and sends it as a custom metric to Stackdriver.
    • 3. Create an uptime check for the instance in Stackdriver.
  • D.
    • 1. In Stackdriver Logging, create a logs-based metric to extract the CPU usage by using this regular expression: CPU Usage: ([0-9] {1,3})%
    • 2. In Stackdriver Monitoring, create an Alerting Policy based on this metric.
    • 3. Configure your email address in the notification channel.

Correct Answer: B

Reference contents:
Specifying conditions for alerting policies | Cloud Monitoring


QUESTION 24

You have an application that uses Google Cloud Spanner as a backend database.
The application has a very predictable traffic pattern. You want to automatically scale up or down the number of Spanner nodes depending on traffic.
What should you do?

  • A. Create a cron job that runs on a scheduled basis to review Google Cloud Monitoring metrics, and then resize the Spanner instance accordingly.
  • B. Create a Google Cloud Monitoring alerting policy to send an alert to oncall SRE emails when Google Cloud Spanner CPU exceeds the threshold. SREs would scale resources up or down accordingly.
  • C. Create a Google Cloud Monitoring alerting policy to send an alert to Google Cloud Support email when Google Cloud Spanner CPU exceeds your threshold. Google support would scale resources up or down accordingly.
  • D. Create a Google Cloud Monitoring alerting policy to send an alert to webhook when Google Cloud Spanner CPU is over or under your threshold. Create a Google Cloud Functions that listens to HTTP and resizes Spanner resources accordingly.

Correct Answer: D

Reference contents:
Autoscaling Cloud Spanner | Cloud Architecture Center
Method: projects.instances.patch | Cloud Spanner


QUESTION 25

Your company publishes large files on an Apache web server that runs on a Google Compute Engine instance.
The Apache web server is not the only application running in the project. You want to receive an email when the egress network costs for the server exceed 100 dollars for the current month as measured by Google Cloud.
What should you do?

  • A. Set up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of email.
  • B. Set up a budget alert on the billing account with an amount of 100 dollars, a threshold of 100%, and notification type of email.
  • C. Export the billing data to BigQuery. Create a Google Cloud Functions that uses BigQuery to sum the egress network costs of the exported billing data for the Apache web server for the current month and sends an email if it is over 100 dollars. Schedule the Google Cloud Functions using Google Cloud Scheduler to run hourly.
  • D. Use the Google Cloud Logging Agent to export the Apache web server logs to Google Cloud Logging. Create a Google Cloud Functions that uses BigQuery to parse the HTTP response log data in Google Cloud Logging for the current month and sends an email if the size of all HTTP responses, multiplied by current Google Cloud egress prices, totals over 100 dollars. Schedule the Google Cloud Functions using Google Cloud Scheduler to run hourly.

Correct Answer: C


QUESTION 26

You have designed a solution on Google Cloud that uses multiple Google Cloud products.
Your company has asked you to estimate the costs of the solution. You need to provide estimates for the monthly total cost.
What should you do?

  • A. For each Google Cloud product in the solution, review the pricing details on the products pricing page. Use the pricing calculator to total the monthly costs for each Google Cloud product.
  • B. For each Google Cloud product in the solution, review the pricing details on the products pricing page. Create a Google Sheet that summarizes the expected monthly costs for each product.
  • C. Provision the solution on Google Cloud. Leave the solution provisioned for 1 week. Navigate to the Billing Report page in the Google Cloud Console. Multiply the 1 week cost to determine the monthly costs.
  • D. Provision the solution on Google Cloud. Leave the solution provisioned for 1 week. Use Google Cloud Monitoring to determine the provisioned and used resource amounts. Multiply the 1 week cost to determine the monthly costs.

Correct Answer: A


QUESTION 27

You have an application that receives SSL-encrypted TCP traffic on port 443.
Clients for this application are located all over the world. You want to minimize latency for the clients.
Which load balancing option should you use?

  • A. HTTPS Load Balancer
  • B. Network Load Balancer
  • C. SSL Proxy Load Balancer
  • D. Internal TCP/UDP Load Balancer. Add a firewall rule allowing ingress traffic from 0.0.0.0/0 on the target instances.

Correct Answer: C

Reference contents:
SSL Proxy Load Balancing overview | Google Cloud


QUESTION 28

You have an application on a general-purpose Google Compute Engine instance that is experiencing excessive disk read throttling on its Zonal SSD Persistent Disk.
The application primarily reads large files from disk. The disk size is currently 350 GB. You want to provide the maximum amount of throughput while minimizing costs.
What should you do?

  • A. Increase the size of the disk to 1 TB.
  • B. Increase the allocated CPU to the instance.
  • C. Migrate to use a Local SSD on the instance.
  • D. Migrate to use a Regional SSD on the instance.

Correct Answer: A


QUESTION 29

Your Google Cloud Dataproc cluster runs in a single Virtual Private Cloud (VPC) network in a single subnet with range 172.16.20.128/25.
There are no private IP addresses available in the VPC network. You want to add new VMs to communicate with your cluster using the minimum number of steps.
What should you do?

  • A. Modify the existing subnet range to 172.16.20.0/24.
  • B. Create a new Secondary IP Range in the VPC and configure the VMs to use that range.
  • C. Create a new VPC network for the VMs. Enable VPC Peering between the VMs VPC network and the Google Cloud Dataproc cluster VPC network.
  • D. Create a new VPC network for the VMs with a subnet of 172.32.0.0/16. Enable VPC network Peering between the Google Cloud Dataproc VPC network and the VMs VPC network. Configure a custom Route exchange.

Correct Answer: A


QUESTION 30

You manage a Google App Engine Service that aggregates and visualizes data from BigQuery.
The application is deployed with the default Google App Engine Service account. The data that needs to be visualized resides in a different project managed by another team. You do not have access to this project, but you want your application to be able to read data from the BigQuery dataset.
What should you do?

  • A. Ask the other team to grant your default Google App Engine Service account the role of BigQuery Job User.
  • B. Ask the other team to grant your default Google App Engine Service account the role of BigQuery Data Viewer.
  • C. In Cloud IAM of your project, ensure that the default Google App Engine service account has the role of BigQuery Data Viewer.
  • D. In Cloud IAM of your project, grant a newly created service account from the other team the role of BigQuery Job User in your project.

Correct Answer: B

Reference contents:
Access control with IAM | BigQuery | Google Cloud


QUESTION 31

You need to create a copy of a custom Google Compute Engine virtual machine (VM) to facilitate an expected increase in application traffic due to a business acquisition.
What should you do?

  • A. Create a Google Compute Engine snapshot of your base VM. Create your images from that snapshot.
  • B. Create a Google Compute Engine snapshot of your base VM. Create your instances from that snapshot.
  • C. Create a custom Google Compute Engine image from a snapshot. Create your images from that image.
  • D. Create a custom Google Compute Engine image from a snapshot. Create your instances from that image.

Correct Answer: B


QUESTION 32

You have deployed an application on a single Google 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?

  • A. Navigate to Google Cloud Logging and view the application logs.
  • B. Connect to the instance’s serial console and read the application logs.
  • C. Configure a Health Check on the instance and set a Low Healthy Threshold value.
  • D. Install and configure the Google Cloud Logging Agent and view the logs from Google Cloud Logging.

Correct Answer: D


QUESTION 33

An application generates daily reports in a Google Compute Engine virtual machine (VM).
The VM is in the project corp-iot-insights. Your team operates only in the project corp-aggregate-reports and needs a copy of the daily exports in the bucket corp-aggregate-reports-storage. You want to configure access so that the daily reports from the VM are available in the bucket corp-aggregate-reports-storage and use as few steps as possible while following Google-recommended practices.
What should you do?

  • A. Move both projects under the same folder.
  • B. Grant the VM Service Account the role Storage Object Creator on corp-aggregate-reports-storage.
  • C. Create a Shared VPC network between both projects. Grant the VM Service Account the role Storage Object Creator on corp-iot-insights.
  • D. Make corp-aggregate-reports-storage public and create a folder with a pseudo-randomized suffix name. Share the folder with the IoT team.

Correct Answer: B
Reference contents:
#Predefined roles – IAM roles for Cloud Storage


QUESTION 34

You built an application on your development laptop that uses Google Cloud services.
Your application uses Application Default Credentials for authentication and works fine on your development laptop. You want to migrate this application to a Google Compute Engine virtual machine (VM) and set up authentication using Google- recommended practices and minimal changes.
What should you do?

  • A. Assign appropriate access for Google services to the service account used by the Google Compute Engine VM.
  • B. Create a service account with appropriate access for Google services, and configure the application to use this account.
  • C. Store credentials for service accounts with appropriate access for Google services in a config file, and deploy this config file with your application.
  • D. Store credentials for your user account with appropriate access for Google services in a config file, and deploy this config file with your application.

Correct Answer: B

Reference contents:
#Best practices – Creating and enabling service accounts for instances | Compute Engine Documentation | Google Cloud


QUESTION 35

You need to create a Google Compute Engine instance in a new project that doesn’t exist yet.
What should you do?

  • A. Using the Cloud SDK, create a new project, enable the Google Compute Engine API in that project, and then create the instance specifying your new project.
  • B. Enable the Google Compute Engine API in the Google Cloud Console, use the Cloud SDK to create the instance, and then use the –project flag to specify a new project.
  • C. Using the Cloud SDK, create the new instance, and use the –project flag to specify the new project. Answer yes when prompted by Cloud SDK to enable the Google Compute Engine API.
  • D. Enable the Google Compute Engine API in the Google Cloud Console. Go to the Google Compute Engine section of the Console to create a new instance, and look for the Create In A New Project option in the creation form.

Correct Answer: A

Reference contents:
#Before you begin – Quickstart: Create a Deep Learning VM instance by using the gcloud CLI
gcloud projects create | Google Cloud CLI Documentation


QUESTION 36

Your company runs one batch process in an on-premises server that takes around 30 hours to complete.
The task runs monthly, can be performed offline, and must be restarted if interrupted. You want to migrate this workload to the cloud while minimizing cost.
What should you do?

  • A. Migrate the workload to a Google Compute Engine Preemptible VM.
  • B. Migrate the workload to a Google Kubernetes Engine cluster with Preemptible nodes.
  • C. Migrate the workload to a Google Compute Engine VM. Start and stop the instance as needed.
  • D. Create an Instance Template with Preemptible VMs On. Create a Managed Instance Group from the template and adjust Target CPU Utilization. Migrate the workload.

Correct Answer: C

Reference contents:
Preemptible VM instances | Compute Engine Documentation | Google Cloud


QUESTION 37

You are developing a new application and are looking for a Jenkins installation to build and deploy your source code.
You want to automate the installation as quickly and easily as possible.
What should you do?

  • A. Deploy Jenkins through the Google Cloud Marketplace.
  • B. Create a new Google Compute Engine instance. Run the Jenkins executable.
  • C. Create a new Google Kubernetes Engine cluster. Create a deployment for the Jenkins image.
  • D. Create an instance template with the Jenkins executable. Create a managed instance group with this template.

Correct Answer: A

Reference contents:
#Installing Jenkins – Using Jenkins for distributed builds on Compute Engine | Cloud Architecture Center


QUESTION 38

You have downloaded and installed the gcloud command line interface (CLI) and have authenticated with your Google Account.
Most of your Google Compute Engine instances in your project run in the europe-west1-d zone. You want to avoid having to specify this zone with each CLI command when managing these instances.
What should you do?

  • A. Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
  • B. In the Settings page for Google Compute Engine under Default location, set the zone to europewest1-d.
  • C. In the CLI installation directory, create a file called default.conf containing zone=europe-west1-d.
  • D. Create a Metadata entry on the Google Compute Engine page with key compute/zone and value europe-west1-d.

Correct Answer: A

Reference contents:
#Set default region and zone in the metadata server – gcloud compute | Compute Engine Documentation


QUESTION 39

The core business of your company is to rent out construction equipment at large scale.
All the equipment that is being rented out has been equipped with multiple sensors that send event information every few seconds. These signals can vary from engine status, distance traveled, fuel level, and more. Customers are billed based on the consumption monitored by these sensors. You expect high throughput `” up to thousands of events per hour per device `” and need to retrieve consistent data based on the time of the event. Storing and retrieving individual signals should be atomic.
What should you do?

  • A. Create a file in Google Cloud Storage per device and append new data to that file.
  • B. Create a file in Cloud Filestore per device and append new data to that file.
  • C. Ingest the data into Datastore. Store data in an entity group based on the device.
  • D. Ingest the data into Google Cloud Bigtable. Create a row key based on the event timestamp.

Correct Answer: D

Reference contents:
Comparación de Bases de Datos en Google Cloud: Datastore vs BigTable vs Cloud SQL vs Spanner vs BigQuery | Guillermo Alvarado


QUESTION 40

You are asked to set up application performance monitoring on Google Cloud projects A, B, and C as a single pane of glass.
You want to monitor CPU, memory, and disk.
What should you do?

  • A. Enable API and then share charts from project A, B, and C.
  • B. Enable API and then give the metrics.reader role to projects A, B, and C.
  • C. Enable API and then use default dashboards to view all projects in sequence.
  • D. Enable API, create a workspace under project A, and then add projects B and C.

Correct Answer: D

Reference contents:
Overview of viewing metrics for multiple projects | Cloud Monitoring


QUESTION 41

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?

  • A. Configure Billing Data Export to BigQuery and visualize the data in Google Data Studio.
  • B. Visit the Cost Table page to get a CSV export and visualize it using Google Data Studio.
  • C. Fill all resources in the Pricing Calculator to get an estimate of the monthly cost.
  • D. Use the Reports view in the Google Cloud Billing Console to view the desired cost information.

Correct Answer: A

Reference contents:
Export Cloud Billing data to BigQuery
Visualize spend over time with Google Data Studio | Cloud Billing


QUESTION 42

Your company has workloads running on Google Compute Engine and on-premises.
The Google Cloud Virtual Private Cloud (VPC) is connected to your WAN over a Virtual Private Network (VPN). You need to deploy a new Google Compute Engine instance and ensure that no public Internet traffic can be routed to it.
What should you do?

  • A. Create the instance without a public IP address.
  • B. Create the instance with Private Google Access enabled.
  • C. Create a deny-all egress firewall rule on the VPC network.
  • D. Create a route on the VPC to route all traffic to the instance over the VPN tunnel.

Correct Answer: A


QUESTION 43

Your team maintains the infrastructure for your organization.
The current infrastructure requires changes. You need to share your proposed changes with the rest of the team. You want to follow Google’s recommended best practices.
What should you do?

  • A. Use Google Cloud Deployment Manager templates to describe the proposed changes and store them in a Google Cloud Storage bucket.
  • B. Use Google Cloud Deployment Manager templates to describe the proposed changes and store them in Cloud Source Repositories.
  • C. Apply the changes in a development environment, run gcloud compute instances list, and then save the output in a shared Storage bucket.
  • D. Apply the changes in a development environment, run gcloud compute instances list, and then save the output in Cloud Source Repositories.

Correct Answer: B

Reference contents:
Features | Cloud Source Repositories Documentation


QUESTION 44

You have a Google Compute Engine instance hosting an application used between 9 AM and 6 PM on weekdays.
You want to back up this instance daily for disaster recovery purposes. You want to keep the backups for 30 days. You want the Google-recommended solution with the least management overhead and the least number of services.
What should you do?

  • A.
    • 1. Update your instances metadata to add the following value: snapshot-schedule: 0 1 * * *
    • 2. Update your instances metadata to add the following value: snapshot-retention: 30
  • B.
    • 1. In the Google Cloud Console, go to the Google Compute Engine Disks page and select your instance disk.
    • 2. In the Snapshot Schedule section, select Create Schedule and configure the following parameters: – Schedule frequency: Daily – Start time: 1:00 AM 2:00 AM – Autodelete snapshots after: 30 days.
  • C.
    • 1. Create a Google Cloud Functions that creates a snapshot of your instance disk.
    • 2. Create a Google Cloud Functions that deletes snapshots that are older than 30 days.
    • 3. Use Google Cloud Scheduler to trigger both Google Cloud Functions daily at 1:00 AM.
  • D.
    • 1. Create a bash script in the instance that copies the content of the disk to Google Cloud Storage.
    • 2. Create a bash script in the instance that deletes data older than 30 days in the backup Google Cloud Storage bucket.
    • 3. Configure the instance crontab to execute these scripts daily at 1:00 AM.

Correct Answer: B

Reference contents:
Creating scheduled snapshots for persistent disk | Compute Engine Documentation | Google Cloud


QUESTION 45

Your existing application running in Google Kubernetes Engine (GKE) consists of multiple pods running on four GKE n1-standard-2 nodes.
You need to deploy additional pods requiring n2-highmem-16 nodes without any downtime.
What should you do?

  • A. Use gcloud container clusters upgrade. Deploy the new services.
  • B. Create a new Node Pool and specify machine type n2-highmem-16. Deploy the new pods.
  • C. Create a new cluster with n2-highmem-16 nodes. Redeploy the pods and delete the old cluster.
  • D. Create a new cluster with both n1-standard-2 and n2-highmem-16 nodes. Redeploy the pods and delete the old cluster.

Correct Answer: B

Reference contents:
#Creating a node pool with large machine type – Migrating workloads to different machine types | Kubernetes Engine | Google Cloud


QUESTION 46

You have an application that uses Google Cloud Spanner as a database backend to keep current state information about users.
Google Cloud Bigtable logs all events triggered by users. You export Google Cloud Spanner data to Google Cloud Storage during daily backups. One of your analysts asks you to join data from Google Cloud Spanner and Google Cloud Bigtable for specific users. You want to complete this ad hoc request as efficiently as possible.
What should you do?

  • A. Create a Google Cloud Dataflow job that copies data from Google Cloud Bigtable and Google Cloud Storage for specific users.
  • B. Create a Google Cloud Dataflow job that copies data from Google Cloud Bigtable and Google Cloud Spanner for specific users.
  • C. Create a Google Cloud Dataproc cluster that runs a Spark job to extract data from Google Cloud Bigtable and Google Cloud Storage for specific users.
  • D. Create two separate BigQuery external tables on Google Cloud Storage and Google Cloud Bigtable. Use the BigQuery console to join these tables through user fields, and apply appropriate filters.

Correct Answer: D

Reference contents:
Introduction to external data sources | BigQuery | Google Cloud


QUESTION 47

You are hosting an application from Google Compute Engine virtual machines (VMs) in us-central1-a.
You want to adjust your design to support the failure of a single Google Compute Engine zone, eliminate downtime, and minimize cost.
What should you do?

  • A. Create Google Compute Engine resources in us-central1-b. Balance the load across both us-central1-a and us-central1-b.
  • B. Create a Managed Instance Group and specify us-central1-a as the zone. Configure the Health Check with a short Health Interval.
  • C. Create an HTTP(S) Load Balancer. Create one or more global forwarding rules to direct traffic to your VMs.
  • D. Perform regular backups of your application. Create a Google Cloud Monitoring Alert and be notified if your application becomes unavailable. Restore from backups when notified.

Correct Answer: A

Reference contents:
#Distribute your VMs – Designing resilient systems | Compute Engine Documentation | Google Cloud


QUESTION 48

A colleague handed over a Google Cloud Platform project for you to maintain.
As part of a security checkup, you want to review who has been granted the Project Owner role.
What should you do?

  • A. In the console, validate which SSH keys have been stored as project-wide keys.
  • B. Navigate to Identity-Aware Proxy and check the permissions for these resources.
  • C. Enable Audit Logs on the IAM & admin page for all resources, and validate the results.
  • D. Use the command gcloud projects get”iam”policy to view the current role assignments.

Correct Answer: D

Reference contents:
Filtering and formatting ‘gcloud projects get-iam-policy’


QUESTION 49

You are running multiple VPC-native Google Kubernetes Engine clusters in the same subnet.
The IPs available for the nodes are exhausted, and you want to ensure that the clusters can grow in nodes when needed.
What should you do?

  • A. Create a new subnet in the same region as the subnet being used.
  • B. Add an alias IP range to the subnet used by the GKE clusters.
  • C. Create a new VPC, and set up VPC peering with the existing VPC.
  • D. Expand the CIDR range of the relevant subnet for the cluster.

Correct Answer: D

Reference contents:
gcloud compute networks subnets expand-ip-range | Google Cloud CLI Documentation
Creating a VPC-native cluster | Kubernetes Engine Documentation | Google Cloud


QUESTION 50

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?

  • A. Run a test using simulated maintenance events. If the test is successful, use preemptible N1 Standard VMs when running future jobs.
  • B. Run a test using simulated maintenance events. If the test is successful, use N1 Standard VMs when running future jobs.
  • C. Run a test using a managed instance group. If the test is successful, use N1 Standard VMs in the managed instance group when running future jobs.
  • D. Run a test using N1 standard VMs instead of N2. If the test is successful, use N1 Standard VMs when running future jobs.

Correct Answer: A

Reference contents:
Create and use preemptible VMs | Compute Engine Documentation | Google Cloud


QUESTION 51

You are working with a user to set up an application in a new VPC behind a firewall.
The user is concerned about data egress. You want to configure the fewest open egress ports.
What should you do?

  • A. Set up a low-priority (65534) rule that blocks all egress and a high-priority rule (1000) that allows only the appropriate ports.
  • B. Set up a high-priority (1000) rule that pairs both ingress and egress ports.
  • C. Set up a high-priority (1000) rule that blocks all egress and a low-priority (65534) rule that allows only the appropriate ports.
  • D. Set up a high-priority (1000) rule to allow the appropriate ports.

Correct Answer: A

Reference contents:
#Distribute your VMs – VPC firewall rules overview | Google Cloud


QUESTION 52

Your company runs its Linux workloads on Google Compute Engine instances.
Your company will be working with a new operations partner that does not use Google Accounts. You need to grant access to the instances to your operations partner so they can maintain the installed tooling.
What should you do?

  • A. Enable Cloud IAP for the Google Compute Engine instances, and add the operations partner as a Cloud IAP Tunnel User.
  • B. Tag all the instances with the same network tag. Create a firewall rule in the VPC to grant TCP access on port 22 for traffic from the operations partner to instances with the network tag.
  • C. Set up Cloud VPN between your Google Cloud VPC and the internal network of the operations partner.
  • D. Ask the operations partner to generate SSH key pairs, and add the public keys to the VM instances.

Correct Answer: A

Reference contents:
Overview of TCP forwarding | Identity-Aware Proxy | Google Cloud


QUESTION 53

You have created a code snippet that should be triggered whenever a new file is uploaded to a Google Cloud Storage bucket.
You want to deploy this code snippet.
What should you do?

  • A. Use Google App Engine and configure Google Cloud Scheduler to trigger the application using Google Cloud Pub/Sub.
  • B. Use Google Cloud Functions and configure the bucket as a trigger resource.
  • C. Use Google Kubernetes Engine and configure a CronJob to trigger the application using Google Cloud Pub/Sub.
  • D. Use Dataflow as a batch job, and configure the bucket as a data source.

Correct Answer: B

Reference contents:
#Event types – Google Cloud Storage Triggers | Cloud Functions Documentation


QUESTION 54

You have been asked to set up Object Lifecycle Management for objects stored in storage buckets.
The objects are written once and accessed frequently for 30 days. After 30 days, the objects are not read again unless there is a special need. The objects should be kept for three years, and you need to minimize cost.
What should you do?

  • A. Set up a policy that uses Nearline storage for 30 days and then moves to Archive storage for three years.
  • B. Set up a policy that uses Standard storage for 30 days and then moves to Archive storage for three years.
  • C. Set up a policy that uses Nearline storage for 30 days, then moves the Coldline for one year, and then moves to Archive storage for two years.
  • D. Set up a policy that uses Standard storage for 30 days, then moves to Coldline for one year, and then moves to Archive storage for two years.

Correct Answer: B

Reference contents:
#Standard Storage – Storage classes | Google Cloud


QUESTION 55

You are storing sensitive information in a Google Cloud Storage bucket.
For legal reasons, you need to be able to record all requests that read any of the stored data. You want to make sure you comply with these requirements.
What should you do?

  • A. Enable the Identity Aware Proxy API on the project.
  • B. Scan the bucket using the Cloud Data Loss Prevention API.
  • C. Allow only a single Service Account access to read the data.
  • D. Enable Data Access audit logs for the Google Cloud Storage API.

Correct Answer: D

Reference contents:
Cloud Audit Logs with Cloud Storage | Google Cloud


QUESTION 56

You are the team lead of a group of 10 developers.
You provided each developer with an individual Google Cloud Project that they can use as their personal sandbox to experiment with different Google Cloud solutions. You want to be notified if any of the developers are spending above $500 per month on their sandbox environment.
What should you do?

  • A. Create a single budget for all projects and configure budget alerts on this budget.
  • B. Create a separate billing account per sandbox project and enable BigQuery billing exports. Create a Google Data Studio dashboard to plot the spending per billing account.
  • C. Create a budget per project and configure budget alerts on all of these budgets.
  • D. Create a single billing account for all sandbox projects and enable BigQuery billing exports. Create a Google Data Studio dashboard to plot the spending per project.

Correct Answer: C

Reference contents:
#2. Set budget scope – Create, edit, or delete budgets and budget alerts | Cloud Billing | Google Cloud


QUESTION 57

You are deploying a production application on Google Compute Engine.
You want to prevent anyone from accidentally destroying the instance by clicking the wrong button.
What should you do?

  • A. Disable the flag Delete boot disk when instance is deleted.
  • B. Enable delete protection on the instance.
  • C. Disable Automatic restart on the instance.
  • D. Enable Preemptibility on the instance.

Correct Answer: B

Reference contents:
Preventing Accidental VM Deletion | Compute Engine Documentation | Google Cloud


QUESTION 58

Your company uses a large number of Google Cloud services centralized in a single project.
All teams have specific projects for testing and development. The DevOps team needs access to all of the production services in order to perform their job. You want to prevent Google Cloud product changes from broadening their permissions in the future. You want to follow Google-recommended practices.
What should you do?

  • A. Grant all members of the DevOps team the role of Project Editor on the organization level.
  • B. Grant all members of the DevOps team the role of Project Editor on the production project.
  • C. Create a custom role that combines the required permissions. Grant the DevOps team the custom role on the production project.
  • D. Create a custom role that combines the required permissions. Grant the DevOps team the custom role on the organization level.

Correct Answer: C

Reference contents:
#Basic concepts – Understanding IAM custom roles | IAM Documentation | Google Cloud


QUESTION 59

You are building an application that processes data files uploaded from thousands of suppliers.
Your primary goals for the application are data security and the expiration of aged data. You need to design the application to:
– Restrict access so that suppliers can access only their own data.
– Give suppliers write access to data only for 30 minutes.
– Delete data that is over 45 days old.
You have a very short development cycle, and you need to make sure that the application requires minimal maintenance.
Which two strategies should you use? (Choose two.)

  • A. Build a lifecycle policy to delete Google Cloud Storage objects after 45 days.
  • B. Use signed URLs to allow suppliers limited time access to store their objects.
  • C. Set up an SFTP server for your application, and create a separate user for each supplier.
  • D. Build a Google Cloud Functions that triggers a timer of 45 days to delete objects that have expired.
  • E. Develop a script that loops through all Google Cloud Storage buckets and deletes any buckets that are older than 45 days.

Correct Answer: A, B

Reference contents:
#Delete – Object Lifecycle Management | Cloud Storage
Signed URLs | Cloud Storage


QUESTION 60

Your company wants to standardize the creation and management of multiple Google Cloud resources using Infrastructure as Code.
You want to minimize the amount of repetitive code needed to manage the environment.
What should you do?

  • A. Develop templates for the environment using Cloud Google Cloud Deployment Manager.
  • B. Use curl in a terminal to send a REST request to the relevant Google API for each individual resource.
  • C. Use the Google Cloud Console interface to provision and manage all related resources.
  • D. Create a bash script that contains all requirement steps as gcloud commands.

Correct Answer: A

Reference contents:
Deployment Manager Fundamentals
Quickstart: Manage Google Cloud resources as a deployment | Cloud Deployment Manager Documentation


QUESTION 61

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?

  • A. Enable Audit Logs for all APIs that are related to data storage.
  • B. Review the IAM permissions for any role that allows for data access.
  • C. Review the Identity-Aware Proxy settings for each resource.
  • D. Create a Cloud Data Loss Prevention job.

Correct Answer: B

Reference contents:
Access control overview | Compute Engine Documentation | Google Cloud


QUESTION 62

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?

  • A. Configure Cloud NAT for all subnets of your VPC to be used when egressing from the VM instances.
  • B. Create a private zone on Google Cloud DNS, and configure the applications with the DNS name.
  • C. Configure the IP of the database as custom metadata for each instance, and query the metadata server.
  • D. Query the Google Compute Engine internal DNS from the applications to retrieve the IP of the database.

Correct Answer: B


QUESTION 63

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?

  • A. Deploy the container on Google Cloud Run for Anthos, and set the minimum number of instances to zero.
  • B. Deploy the container on Google Cloud Run (fully managed), and set the minimum number of instances to zero.
  • C. Deploy the container on Google App Engine flexible environment with autoscaling, and set the value min_instances to zero in the app.yaml.
  • D. Deploy the container on Google App Engine flexible environment with manual scaling, and set the value instances to zero in the app.yaml.

Correct Answer: B

Reference contents:
#Compare high-level features – Choose an App Engine environment


QUESTION 64

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?

  • A. Grant the financial team the IAM role of Billing Account User on the billing account linked to your credit card.
  • B. Set up BigQuery billing export and grant your financial department IAM access to query the data.
  • C. Create a ticket with Google Billing Support to ask them to send the invoice to your company.
  • D. Change the billing account of your projects to the billing account of your company.

Correct Answer: D


QUESTION 65

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?

  • A. Create a Service Account in your own project, and grant this Service Account access to BigQuery in your project.
  • B. Create a Service Account in your own project, and ask the partner to grant this Service Account access to BigQuery in their project.
  • C. Ask the partner to create a Service Account in their project, and have them give the Service Account access to BigQuery in their project.
  • 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.

Correct Answer: D


QUESTION 66

Your web application has been running successfully on Google 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?

  • A. Create a new service with the new version of the application. Split traffic between this version and the version that is currently running.
  • B. Create a new revision with the new version of the application. Split traffic between this version and the version that is currently running.
  • C. Create a new service with the new version of the application. Add HTTP Load Balancer in front of both services.
  • D. Create a new revision with the new version of the application. Add HTTP Load Balancer in front of both revisions.

Correct Answer: B

Reference contents:
Rollbacks, gradual rollouts, and traffic migration | Cloud Run Documentation


QUESTION 67

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?

  • A. Configure an SSL Proxy load balancer in front of the application servers.
  • B. Configure an Internal UDP load balancer in front of the application servers.
  • C. Configure an External HTTP(s) load balancer in front of the application servers.
  • D. Configure an External Network load balancer in front of the application servers.

Correct Answer: D

Reference contents:
External TCP/UDP Network Load Balancing overview | Google Cloud
Choosing a load balancer


QUESTION 68

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

  • A. Create a Google Cloud Pub/Sub topic, and enable a Google Cloud Storage trigger for the Google Cloud Pub/Sub topic. Create an application that sends all medical images to the Google Cloud Pub/Sub topic.
  • B. Deploy a Google Cloud Dataflow job from the batch template, Google Cloud Datastore to Google Cloud Storage. Schedule the batch job on the desired interval.
  • C. Create a script that uses the gsutil command line interface to synchronize the on-premises storage with Google Cloud Storage. Schedule the script as a cron job.
  • D. In the Google Cloud Console, go to Google Cloud Storage. Upload the relevant images to the appropriate bucket.

Correct Answer: C


QUESTION 69

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 Google Cloud Storage buckets. You need to help the auditor access the data they need.
What should you do?

  • 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 Google Cloud Storage.
  • B. Assign the appropriate permissions, and then create a Google Data Studio report on Admin Activity Audit Logs.
  • C. Assign the appropriate permissions, and the use Google Cloud Monitoring to review metrics.
  • D. Use the export logs API to provide the Admin Activity Audit Logs in the format they want.

Correct Answer: D

Reference contents:
Cloud Audit Logs with Cloud Storage | Google Cloud


QUESTION 70

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?

  • A. Use the command gcloud auth login and point it to the private key.
  • B. Use the command gcloud auth activate-service-account and point it to the private key.
  • C. Place the private key file in the installation directory of the Cloud SDK and rename it to credentials.json.
  • D. Place the private key file in your home directory and rename it to GOOGLE_APPLICATION_CREDENTIALS.

Correct Answer: B

Reference contents:
#Authorizing with a service account – Authorizing the gcloud CLI | Google Cloud CLI Documentation


QUESTION 71

You are working with a Google 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?

  • A. Set up an export job for the first of the month. Write the export file to an Archive class Google Cloud Storage bucket.
  • B. Save the automatic first-of-the-month backup for three years. Store the backup file in an Archive class Google Cloud Storage bucket.
  • C. Set up an on-demand backup for the first of the month. Write the backup to an Archive class Google Cloud Storage bucket.
  • D. Convert the automatic first-of-the-month backup to an export file. Write the export file to a Coldline class Google Cloud Storage bucket.

Correct Answer: A

Reference contents:
Best practices for importing and exporting data | Cloud SQL for MySQL


QUESTION 72

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?

  • A. In the Log Viewer, filter the logs on severity Error and the name of the Service Account.
  • B. Create a sink to BigQuery to export all the logs. Create a Google Data Studio dashboard on the exported logs.
  • C. Create a custom log-based metric for the specific error to be used in an Alerting Policy.
  • D. Grant Project Owner access to the Service Account.

Correct Answer: C


QUESTION 73

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?

  • A. Use Google Cloud Bigtable for data storage.
  • B. Use Google Cloud SQL for data storage.
  • C. Use Google Cloud Spanner for data storage.
  • D. Use Firestore for data storage.

Correct Answer: C

Reference contents:
Best practices for Compute Engine regions selection | Solutions | Google Cloud


QUESTION 74

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?

  • A. Provision preemptible Google Compute Engine instances.
  • B. Provision Google Compute Engine instances with GPUs attached.
  • C. Provision Google Compute Engine instances with local SSDs attached.
  • D. Provision Google Compute Engine instances with M1 machine type.

Correct Answer: D

Reference contents:
About machine families | Compute Engine Documentation | Google Cloud


QUESTION 75

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?

  • A. Create and deploy a Custom Resource Definition per microservice.
  • B. Create and deploy a Docker Compose File.
  • C. Create and deploy a Job per microservice.
  • D. Create and deploy a Deployment per microservice.

Correct Answer: D


QUESTION 76

You will have several applications running on different Google 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?

  • A. When creating the instances, specify a Service Account for each instance.
  • B. When creating the instances, assign the name of each Service Account as instance metadata.
  • C. After starting the instances, use gcloud compute instances update to specify a Service Account for each instance.
  • D. After starting the instances, use gcloud compute instances update to assign the name of the relevant Service Account as instance metadata.

Correct Answer: A

Reference contents:
#Setting up a new instance to run as a service account – Creating and enabling service accounts for instances | Compute Engine Documentation | Google Cloud


QUESTION 77

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?

  • A. Create a Google Cloud Bigtable cluster, and use the HBase API.
  • B. Deploy MongoDB Atlas from the Google Cloud Marketplace.
  • C. Download a MongoDB installation package, and run it on Google Compute Engine instances.
  • D. Download a MongoDB installation package, and run it on a Managed Instance Group.

Correct Answer: B

Reference contents:
https://console.cloud.google.com/marketplace/details/gc-launcher-for-mongodb-atlas/mongodb-atlas


QUESTION 78

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?

  • A. Create a Google Data Studio dashboard that uses the related BigQuery tables as a source and give the BI team view access to the Google Data Studio dashboard.
  • B. Create a Service Account for the BI team and distribute a new private key to each member of the BI team.
  • C. Use Google Cloud Scheduler to schedule a batch Google Cloud Dataflow job to copy the data from BigQuery to the BI team’s internal data warehouse.
  • D. Assign the IAM role of BigQuery User to a Google Group that contains the members of the BI team.

Correct Answer: D


QUESTION 79

Your company is moving its entire workload to Google 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?

  • 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 traffic for the DMZ.
  • B.
    • 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 egress traffic for the DMZ.
  • C.
    • 1. 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.
  • D.
    • 1. 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.

Correct Answer: A

Comments are closed