GCP Questions
GCP Questions
GCP Questions
Your
operational team needs to manage a large number of instances on
Compute Engine. Each member of this team needs only
administrative access to the servers. Your security team wants to
ensure that the deployment of credentials is operationally ef cient
and must be able to determine who accessed a given instance.
What should you do?
Ans -> C
• A. 0.0.0.0/0
• B. 10.0.0.0/8
• C. 172.16.0.0/12
• D. 192.168.0.0/16
Ans -> B
fi
fi
fi
fi
You want to select and con gure a cost-effective solution for
relational data on Google Cloud Platform. You are working with a
small set of operational data in one geographic location. You need
to support point-in-time recovery. What should you do?
Ans -> A
You want to con gure autohealing for network load balancing for a
group of Compute Engine instances that run in multiple zones,
using the fewest possible steps.
You need to con gure re-creation of VMs if they are unresponsive
after 3 attempts of 10 seconds each. What should you do?
Ans -> C
fi
fi
fi
fi
fi
fi
You are using multiple con gurations for gcloud. You want to review
the con gured Kubernetes Engine cluster of an inactive
con guration using the fewest possible steps. What should you do?
Ans -> D
• A. Multi-Regional Storage
• B. Regional Storage
• C. Nearline Storage
• D. Coldline Storage
Ans -> D
You have an application that looks for its licensing server on the IP
10.0.3.21. You need to deploy the licensing server on Compute
Engine. You do not want to change the con guration of the
application and want the application to be able to reach the
licensing server. What should you do?
Ans -> A
fi
You are deploying an application to App Engine. You want the
number of instances to scale based on request rate. You need at
least 3 unoccupied instances at all times. Which scaling type should
you use?
Ans -> D
Ans -> A
fi
You need a dynamic way of provisioning VMs on Compute Engine.
The exact speci cations will be in a dedicated con guration le. You
want to follow Google's recommended practices. Which method
should you use?
• A. Deployment Manager
• B. Cloud Composer
• C. Managed Instance Group
• D. Unmanaged Instance Group
Ans -> A
Ans -> C
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
Your development team needs a new Jenkins server for their
project. You need to deploy the server using the fewest steps
possible. What should you do?
Ans -> D
Ans -> B
fi
fi
fi
fi
fi
fi
fi
fi
You need to run an important query in BigQuery but expect it to
return a lot of records. You want to nd out how much it will cost to
run the query. You are using on-demand pricing. What should you
do?
You have a single binary application that you want to run on Google
Cloud Platform. You decided to automatically scale the application
based on underlying infrastructure CPU usage. Your organizational
policies require you to use virtual machines directly. You need to
ensure that the application scaling is operationally ef cient and
completed as quickly as possible. What should you do?
Ans -> D
Ans -> B
fi
fi
You have a Linux VM that must connect to Cloud SQL. You created
a service account with the appropriate access rights. You want to
make sure that the VM uses this service account instead of the
default Compute Engine service account. What should you do?
Ans -> A
Ans -> B
fi
fi
fi
You have one GCP account running in your default region and zone
and another account running in a non-default region and zone. You
want to start a new
Compute Engine instance in these two Google Cloud Platform
accounts using the command line interface. What should you do?
Ans -> A
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
You signi cantly changed a complex Deployment Manager template
and want to con rm that the dependencies of all de ned resources
are properly met before committing it to the project. You want the
most rapid feedback on your changes. What should you do?
Ans -> D
fi
fi
fi
fi
You are building a pipeline to process time-series data. Which
Google Cloud Platform services should you put in boxes 1,2,3, and
4?
Ans -> D
fl
fl
You have a project for your App Engine application that serves a
development environment. The required testing has succeeded and
you want to create a new project to serve as your production
environment. What should you do?
Ans -> A
You need to con gure IAM access audit logging in BigQuery for
external auditors. You want to follow Google-recommended
practices. What should you do?
Ans -> A
fi
fi
fi
fi
fi
You need to set up permissions for a set of Compute Engine
instances to enable them to write data into a particular Cloud
Storage bucket. You want to follow
Google-recommended practices. What should you do?
Ans -> C
You have sensitive data stored in three Cloud Storage buckets and
have enabled data access logging. You want to verify activities for a
particular user for these buckets, using the fewest possible steps.
You need to verify the addition of metadata labels and which les
have been viewed from those buckets. What should you do?
Ans -> A
fi
fi
fi
You are the project owner of a GCP project and want to delegate
control to colleagues to manage buckets and les in Cloud Storage.
You want to follow Google- recommended practices. Which IAM
roles should you grant your colleagues?
• A. Project Editor
• B. Storage Admin
• C. Storage Object Admin
• D. Storage Object Creator
Ans -> B
Ans -> A
fi
fi
fi
fi
You are creating a Google Kubernetes Engine (GKE) cluster with a
cluster autoscaler feature enabled. You need to make sure that
each node of the cluster will run a monitoring pod that sends
container metrics to a third-party monitoring solution. What should
you do?
Ans -> B
Ans -> A
fi
You need to monitor resources that are distributed over different
projects in Google Cloud Platform. You want to consolidate
reporting under the same Stackdriver
Monitoring dashboard. What should you do?
Ans -> C
Ans -> C
You have one project called proj-sa where you manage all your
service accounts. You want to be able to use a service account from
this project to take snapshots of VMs running in another project
called proj-vm. What should you do?
Ans -> C
You need to create a new billing account and then link it with an
existing Google Cloud Platform project. What should you do?
• A. Verify that you are Project Billing Manager for the GCP
project. Update the existing project to link it to the existing
billing account.
• B. Verify that you are Project Billing Manager for the GCP
project. Create a new billing account and link the new billing
account to the existing project.
• C. Verify that you are Billing Administrator for the billing
account. Create a new project and link the new project to the
existing billing account.
• D. Verify that you are Billing Administrator for the billing
account. Update the existing project to link it to the existing
billing account.
Ans -> B
Ans -> D
fi
You need to grant access for three users so that they can view and
edit table data on a Cloud Spanner instance. What should you do?
Ans -> B
Ans -> B
You have an instance group that you want to load balance. You
want the load balancer to terminate the client SSL session. The
instance group is used to serve a public web application over
HTTPS. You want to follow Google-recommended practices. What
should you do?
Ans -> A
Ans -> B
fi
fi
fi
fi
fi
fi
fi
fi
fi
You've deployed a microservice called myapp1 to a Google
Kubernetes Engine cluster using the YAML le speci ed below:
You need to refactor this con guration so that the database
password is not stored in plain text. You want to follow Google-
recommended practices. What should you do?
Ans -> B
fi
fi
fi
fi
fi
fi
fi
fi
fi
You are running an application on multiple virtual machines within a
managed instance group and have autoscaling enabled. The
autoscaling policy is con gured so that additional instances are
added to the group if the CPU utilization of instances goes above
80%. VMs are added until the instance group reaches its maximum
limit of ve VMs or until CPU utilization of instances lowers to 80%.
The initial delay for HTTP health checks against the instances is set
to 30 seconds.
The virtual machine instances take around three minutes to become
available for users. You observe that when the instance group
autoscales, it adds more instances then necessary to support the
levels of end-user traf c. You want to properly maintain instance
group sizes when autoscaling. What should you do?
You need to select and con gure compute resources for a set of
batch processing jobs. These jobs take around 2 hours to complete
and are run nightly. You want to minimize service costs. What
should you do?
Ans -> C
Ans -> D
fi
fi
fi
fi
fi
fi
fi
You want to con gure 10 Compute Engine instances for availability
when maintenance occurs. Your requirements state that these
instances should attempt to automatically restart if they crash. Also,
the instances should be highly available including during system
maintenance. What should you do?
Ans -> A
Ans -> D
You have production and test workloads that you want to deploy on
Compute Engine. Production VMs need to be in a different subnet
than the test VMs. All the
VMs must be able to reach each other over Internal IP without
creating additional routes. You need to set up VPC and the 2
subnets. Which con guration meets these requirements?
Ans -> A
fi
fi
You need to create an autoscaling managed instance group for an
HTTPS web application. You want to make sure that unhealthy VMs
are recreated. What should you do?
Ans -> A
Ans -> C
Each tier has a service account that is associated with all instances
within it. You need to enable communication on TCP port 8080
between tiers as follows:
ג€¢ Instances in tier #1 must communicate with tier #2.
ג€¢ Instances in tier #2 must communicate with tier #3.
What should you do?
Ans -> B
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
You are given a project with a single Virtual Private Cloud (VPC)
and a single subnetwork in the us-central1 region. There is a
Compute Engine instance hosting an application in this subnetwork.
You need to deploy a new instance in the same project in the
europe-west1 region. This new instance needs access to the
application. You want to follow Google-recommended practices.
What should you do?
Ans -> A
fi
fi
fi
Your projects incurred more costs than you expected last month.
Your research reveals that a development GKE container emitted a
huge number of logs, which resulted in higher costs. You want to
disable the logs quickly using the minimum number of steps. What
should you do?
Ans -> A
You have a website hosted on App Engine standard environment.
You want 1% of your users to see a new test version of the website.
You want to minimize complexity. What should you do?
Ans -> B
fi
fi
You have a web application deployed as a managed instance
group. You have a new version of the application to gradually
deploy. Your web application is currently receiving live web traf c.
You want to ensure that the available capacity does not decrease
during the deployment. What should you do?
Ans -> B
• A. Cloud SQL
• B. Cloud Spanner
• C. Cloud Firestore
• D. Cloud Datastore
Ans -> B
fi
fi
You are the organization and billing administrator for your company.
The engineering team has the Project Creator role on the
organization. You do not want the engineering team to be able to
link projects to the billing account. Only the nance team should be
able to link a project to a billing account, but they should not be able
to make any other changes to projects. What should you do?
Ans -> A
fi
fi
fi
You have an application running in Google Kubernetes Engine
(GKE) with cluster autoscaling enabled. The application exposes a
TCP endpoint. There are several replicas of this application. You
have a Compute Engine instance in the same region, but in another
Virtual Private Cloud (VPC), called gce-network, that has no
overlapping IP ranges with the rst VPC. This instance needs to
connect to the application on GKE. You want to minimize effort.
What should you do?
Ans -> B
You want to run a single caching HTTP reverse proxy on GCP for a
latency-sensitive website. This speci c reverse proxy consumes
almost no CPU. You want to have a 30-GB in-memory cache, and
need an additional 2 GB of memory for the rest of the processes.
You want to minimize cost. How should you run this reverse proxy?
Ans -> A
fi
fi
fl
fi
fi
You are hosting an application on bare-metal servers in your own
data center. The application needs access to Cloud Storage.
However, security policies prevent the servers hosting the
application from having public IP addresses or access to the
internet. You want to follow Google-recommended practices to
provide the application with access to Cloud Storage. What should
you do?
Ans -> D
fi
fi
fi
fi
You want to deploy an application on Cloud Run that processes
messages from a Cloud Pub/Sub topic. You want to follow Google-
recommended practices. What should you do?
Ans -> C
Ans -> A
Your company has an existing GCP organization with hundreds of
projects and a billing account. Your company recently acquired
another company that also has hundreds of projects and its own
billing account. You would like to consolidate all GCP costs of both
GCP organizations onto a single invoice. You would like to
consolidate all costs as of tomorrow. What should you do?
Ans -> A
fi
You built an application on Google Cloud that uses Cloud Spanner.
Your support team needs to monitor the environment but should not
have access to table data.
You need a streamlined solution to grant the correct permissions to
your support team, and you want to follow Google-recommended
practices. What should you do?
Ans -> A
For analysis purposes, you need to send all the logs from all of your
Compute Engine instances to a BigQuery dataset called platform-
logs. You have already installed the Cloud Logging agent on all the
instances. You want to minimize cost. What should you do?
Ans -> C
fi
fi
fi
You are using Deployment Manager to create a Google Kubernetes
Engine cluster. Using the same Deployment Manager deployment,
you also want to create a
DaemonSet in the kube-system namespace of the cluster. You want
a solution that uses the fewest possible services. What should you
do?
Ans -> A
fi
fi
fi
fi
You are building an application that will run in your data center. The
application will use Google Cloud Platform (GCP) services like
AutoML. You created a service account that has appropriate access
to AutoML. You need to enable authentication to the APIs from your
on-premises environment. What should you do?
• A. In the project where the images are stored, grant the
Storage Object Viewer IAM role to the service account used by
the Kubernetes nodes.
• B. When you create the GKE cluster, choose the Allow
full access to all Cloud APIs option under 'Access scopes'.
• C. Create a service account, and give it access to Cloud
Storage. Create a P12 key for this service account and use it
as an imagePullSecrets in Kubernetes.
• D. Con gure the ACLs on each image in Cloud Storage
to give read-only access to the default Compute Engine
service account.
Ans -> A
fi
fi
You deployed a new application inside your Google Kubernetes
Engine cluster using the YAML le speci ed below.
You check the status of the deployed pods and notice that one of
them is still in PENDING status:
You want to nd out why the pod is stuck in pending status. What
should you do?
Ans -> C
fi
fi
fi
You are setting up a Windows VM on Compute Engine and want to
make sure you can log in to the VM via RDP. What should you do?
Ans -> B
fi
You want to con gure an SSH connection to a single Compute
Engine instance for users in the dev1 group. This instance is the
only resource in this particular
Google Cloud Platform project that the dev1 users should be able to
connect to. What should you do?
Ans -> A
• A. Run gcloud projects list to get the project ID, and then run
gcloud services list --project <project ID>.
• B. Run gcloud init to set the current project to my-project, and
then run gcloud services list --available.
• C. Run gcloud info to view the account value, and then run
gcloud services list --account <Account>.
• D. Run gcloud projects describe <project ID> to verify the
project value, and then run gcloud services list —available.
Ans -> A
fi
You are building a new version of an application hosted in an App
Engine environment. You want to test the new version with 1% of
users before you completely switch your application over to the new
version. What should you do?
Ans -> D
Ans -> A
fi
fi
fi
fi
fi
You need to enable traf c between multiple groups of Compute
Engine instances that are currently running two different GCP
projects. Each group of Compute
Engine instances is running in its own VPC. What should you do?
Ans -> B
Ans -> C
fi
fi
You are operating a Google Kubernetes Engine (GKE) cluster for
your company where different teams can run non-production
workloads. Your Machine Learning
(ML) team needs access to Nvidia Tesla P100 GPUs to train their
models. You want to minimize effort and cost. What should you do?
Ans -> D
Ans -> A
fi
fi
Your organization uses G Suite for communication and
collaboration. All users in your organization have a G Suite account.
You want to grant some G Suite users access to your Cloud
Platform project. What should you do?
Ans-> B
Ans -> C
Ans -> A
fi
fi
fi
fi
fi
fi
fi
fi
You deployed an LDAP server on Compute Engine that is reachable
via TLS through port 636 using UDP. You want to make sure it is
reachable by clients over that port. What should you do?
Ans -> C
Ans -> A
fi
fi
You are migrating a production-critical on-premises application that
requires 96 vCPUs to perform its task. You want to make sure the
application runs in a similar environment on GCP. What should you
do?
Ans -> A
Ans -> B
fi
Your company's infrastructure is on-premises, but all machines are
running at maximum capacity. You want to burst to Google Cloud.
The workloads on Google
Cloud must be able to directly communicate to the workloads on-
premises using a private IP range. What should you do?
Ans -> D
You want to select and con gure a solution for storing and archiving
data on Google Cloud Platform. You need to support compliance
objectives for data from one geographic location. This data is
archived after 30 days and needs to be accessed annually. What
should you do?
Ans -> D
fi
fi
fi
fi
Your company uses BigQuery for data warehousing. Over time,
many different business units in your company have created 1000+
datasets across hundreds of projects. Your CIO wants you to
examine all datasets to nd tables that contain an employee_ssn
column. You want to minimize effort in performing this task.
What should you do?
Ans -> A
fi
fl
fi
fi
You create a Deployment with 2 replicas in a Google Kubernetes
Engine cluster that has a single preemptible node pool. After a few
minutes, you use kubectl to examine the status of your Pod and
observe that one of them is still in Pending status:
What is the most likely cause?
Ans -> B
fi
fi
fi
You want to nd out when users were added to Cloud Spanner
Identity Access Management (IAM) roles on your Google Cloud
Platform (GCP) project. What should you do in the GCP Console?
Ans -> D
Ans -> C
fi
fi
fi
Your customer has implemented a solution that uses Cloud
Spanner and notices some read latency-related performance issues
on one table. This table is accessed only by their users using a
primary key. The table schema is shown below.
You want to resolve the issue. What should you do?
(DDL):
Ans -> C
fi
fi
fi
Your nance team wants to view the billing report for your projects.
You want to make sure that the nance team does not get additional
permissions to the project. What should you do?
Ans -> C
Ans -> D
fi
fi
fi
fi
fi
fi
You need to host an application on a 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?
Ans -> D
Ans -> D
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 Cloud Datastore. What should you do?
Ans -> C
Ans -> C
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?
Ans -> B
Ans -> D
fi
fi
You are building an archival solution for your data warehouse and
have selected 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-ef cient option.
Which storage option should you use?
• A. Cold Storage
• B. Nearline Storage
• C. Regional Storage
• D. Multi-Regional Storage
Ans -> D
fi
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?
Ans -> A
You have successfully created a development environment in a
project for an application. This application uses Compute Engine
and 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?
Ans -> A
Your management has asked an external auditor to review all the
resources in a speci c 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?
Ans -> C
Ans -> B
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?
Ans -> B
fi
fi
fi
You need to reduce GCP service costs for a division of your
company using the fewest possible steps. You need to turn off all
con gured 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 GCP 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 GCP
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 GCP 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 GCP console, locate the resources and delete them.
Ans -> A
You are con guring 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?
Ans -> C
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 rst version of the custom role. What
should you do?
Ans -> A
fi
fi
Your company has a large quantity of unstructured data in different
le 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 Data ow job. What should you do?
Ans -> B
Ans -> A
fi
fl
fi
fi
fi
fi
fi
fi
fi
fi
fi
You need to manage multiple Google Cloud projects in the fewest
steps possible. You want to con gure the Google Cloud SDK
command line interface (CLI) so that you can easily manage
multiple projects. What should you do?
Ans -> A
fi
fi
fi
fi
fi
fi
fi
fi
fi
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 speci ed by the template
to be able to process expected application traf c. What should you
do?
Ans -> C
fi
fi
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?
Ans -> B
You have a 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?
Ans -> B
fi
fi
fi
fi
You have an application that uses Cloud Spanner as a backend
database. The application has a very predictable traf c pattern. You
want to automatically scale up or down the number of Spanner
nodes depending on traf c. What should you do?
Ans -> D
fi
fi
Your company publishes large les on an Apache web server that
runs on a 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?
Ans -> C
fi
fi
fi
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?
Ans -> A
You have an application that receives SSL-encrypted TCP traf c 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?
Ans -> C
Ans -> C
fi
fi
fi
fi
Your 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?
Ans -> A
fi
fi
You manage an App Engine Service that aggregates and visualizes
data from BigQuery. The application is deployed with the default
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?
Ans -> B
Ans -> B
fi
You have deployed an application on a single 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?
Ans -> D
Ans -> B
fi
fi
fi
fi
You built an application on your development laptop that uses
Google Cloud services. Your application uses Application Default
Credentials for authentication and works ne on your development
laptop. You want to migrate this application to a Compute Engine
virtual machine (VM) and set up authentication using Google-
recommended practices and minimal changes. What should you
do?
Ans -> B
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
You need to create a Compute Engine instance in a new project
that doesn't exist yet. What should you do?
Ans -> A
Ans -> C
fl
fl
fl
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?
Ans -> A
Ans -> A
fi
fi
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?
Ans -> D
Ans -> D
fi
fi
fi
fi
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?
Ans -> A
Ans -> A
fi
fi
fi
fi
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?
Ans -> B
You have a 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?
Ans -> B
fi
fi
Your existing application running in Google Kubernetes Engine
(GKE) consists of multiple pods running on four GKE
n1ג€"standard2"€ גnodes. You need to deploy additional pods
requiring n2ג€"highmem16"€ גnodes without any downtime. What
should you do?
Ans -> B
You have an application that uses Cloud Spanner as a database
backend to keep current state information about users. Cloud
Bigtable logs all events triggered by users. You export Cloud
Spanner data to Cloud Storage during daily backups. One of your
analysts asks you to join data from Cloud Spanner and Cloud
Bigtable for speci c users. You want to complete this ad hoc
request as ef ciently as possible. What should you do?
Ans -> D
fi
fi
fi
fi
fl
fl
fi
fi
fi
You are hosting an application from Compute Engine virtual
machines (VMs) in usג€"central1ג€"a. You want to adjust your
design to support the failure of a single
Compute Engine zone, eliminate downtime, and minimize cost.
What should you do?
Ans -> A
Ans -> D
fi
fi
fi
fi
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?
Ans -> D
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?
Ans -> A
You are working with a user to set up an application in a new VPC
behind a rewall. The user is concerned about data egress. You
want to con gure the fewest open egress ports. What should you
do?
Ans -> A
Ans -> A
fi
fi
fi
fi
You have created a code snippet that should be triggered whenever
a new le is uploaded to a Cloud Storage bucket. You want to
deploy this code snippet. What should you do?
Ans -> B
Ans -> B
fi
fl
fi
fi
fi
fi
You are storing sensitive information in a 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?
Ans -> D
Ans -> C
fi
fi
fi
You are deploying a production application on Compute Engine.
You want to prevent anyone from accidentally destroying the
instance by clicking the wrong button. What should you do?
Ans -> B
Ans -> C
fl
fi
You are building an application that processes data les 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.)
Ans -> A
• 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 Data Loss Prevention job.
Ans -> B
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
con guration in all of your applications when the IP of the database
changes.
What should you do?
Ans -> B
fi
fi
fi
fi
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?
Ans -> B
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?
Ans -> D
fi
fl
fl
fi
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?
Ans -> D
Your web application has been running successfully on Cloud Run
for Anthos. You want to evaluate an updated version of the
application with a speci c percentage of your production users
(canary deployment). What should you do?
Ans -> B
Ans -> D
fi
fi
fi
fi
fi
fi
fi
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?
Ans -> C
Ans -> A
fl
fi
You received a JSON le 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?
Ans -> B
• A. Set up an export job for the rst of the month. Write the
export le to an Archive class Cloud Storage bucket.
• B. Save the automatic rst-of-the-month backup for three
years. Store the backup le in an Archive class Cloud Storage
bucket.
• C. Set up an on-demand backup for the rst of the month.
Write the backup to an Archive class Cloud Storage bucket.
• D. Convert the automatic rst-of-the-month backup to an
export le. Write the export le to a Coldline class Cloud
Storage bucket.
Ans -> A
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
You are monitoring an application and receive user feedback that a
speci c error is spiking. You notice that the error is caused by a
Service Account having insuf cient permissions. You are able to
solve the problem but want to be noti ed if the problem recurs.
What should you do?
• A. In the Log Viewer, lter 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 Data Studio dashboard on the exported logs.
• C. Create a custom log-based metric for the speci c error
to be used in an Alerting Policy.
• D. Grant Project Owner access to the Service Account.
Ans -> C
Ans -> C
fi
fi
fi
fi
fi
fi
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 con gure the most
appropriate resources on Google Cloud for this application. What
should you do?
Ans -> D
Ans -> D
fi
fi
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?
Ans -> A
Ans -> B
fi
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?
Ans -> D
fl
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 speci c 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 rewall rules to open up
relevant traf c between the DMZ and the LAN subnets, and
another rewall rule to allow public ingress traf c for the DMZ.
• B. 1. Create a single VPC with a subnet for the DMZ and
a subnet for the LAN. 2. Set up rewall rules to open up
relevant traf c between the DMZ and the LAN subnets, and
another rewall rule to allow public egress traf c 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 rewall rules
to open up relevant traf c between the DMZ and the LAN
subnets, and another rewall rule to allow public ingress traf c
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 rewall rules
to open up relevant traf c between the DMZ and the LAN
subnets, and another rewall rule to allow public egress traf c
for the DMZ.
Ans -> A
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
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 rst step in preparation of creating the instance. What
should you do?
Ans -> A
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
stops. What should you do?
Ans -> C
fi
fi
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 con guration. Application installation
les are hosted on Cloud Storage. You need to access these les
from the new instance without allowing other virtual machines
(VMs) to access these les. What should you do?
Ans -> C
fi
fi
fi
fi
You need to con gure optimal data storage for les stored in Cloud
Storage for minimal cost. The les are used in a mission-critical
analytics pipeline that is used continually The users are in Boston,
MA (United States). What should you do?
Ans -> B
Ans -> A
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
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 con icting
accounts. What should you do?
Ans -> A
fl
fl
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
con guration. What should you do?
Ans -> C
fi
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 rst version of the application is
implemented in PostgreSQL, and you want to display it to the cloud
with minimal code changes. Which database is most appropriate for
this application?
• A. BigQuery
• B. Cloud SQL
• C. Cloud Spanner
• D. Cloud Datastore
Ans -> B
Ans -> A
fi
fi
fi
fi
fi
fi
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?
Ans -> C
Ans -> C
fi
fi
fi
fi
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?
Ans -> D