60 TO 125 sexy Flashcards
Jordan's Beast
You have an application running in Google Kubernetes Engine (GKE) with cluster autoscaling enabled. The
application exposes a TCP endpoint. There are several replicas of this application. You have a Compute
Engine instance in the same region, but in another Virtual Private Cloud (VPC), called gce-network, that
has no overlapping IP ranges with the first VPC. This instance needs to connect to the application on GKE.
You want to minimize effort. What should you do?
- In GKE, create a Service of type LoadBalancer that uses the application’s Pods as backend. 2. Add an
annotation to this service: cloud.google.com/load-balancer-type: Internal 3. Peer the two VPCs together. - Configure the Compute Engine instance to use the address of the load balancer that has been
created.
Your organization is a financial company that needs to store audit log files for 3 years. Your organization has
hundreds of Google Cloud projects. You need to implement a cost-effective approach for log file retention.
What should you do?
Create an export to the sink that saves logs from Cloud Audit to a Coldline Storage bucket.
coldline = for longterm infrequent storage
You want to run a single caching HTTP reverse proxy on GCP for a latency-sensitive website. This
specific 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?
latency sensitive: immediate data required ;
reverse proxy = read and verify client requests
Create a Cloud Memorystore for Redis instance with 32-GB capacity.
redis instance: fastest data retrieving instance
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?
bare-metal : single compute server
- Using Cloud VPN or Interconnect, create a tunnel to a VPC in Google Cloud. 2.
Use. 2.Cloud Router to create a custom route advertisement for 199.36.153.4/30.
Announce that network to your on-premises network through the VPN tunnel. 3. In your
on-premises network, configure your DNS server to resolve *.googleapis.com as a
CNAME to restricted.googleapis.com.
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?
cloud run = directly run code on google infra;
pub sub = asynchronous exchange of msg between appln and services
- Create a service account. 2. Give the Cloud Run Invoker role to that service account
for your Cloud Run application. 3. Create a Cloud Pub/Sub subscription that uses that
service account and uses your Cloud Run application as the push endpoint.
You need to deploy an application, which is packaged in a container image, in a new project. The
application exposes an HTTP endpoint and receives very few requests per day. You want to minimize
costs. What should you do?
Deploy the container on Cloud Run.
instance of creating new instance and deploying there = costly
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?
Link the acquired company’s projects to your company’s billing account.
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?
Add the support team group to the roles/monitoring.viewer role
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?
- In Cloud Logging, create a filter to view only Compute Engine logs. 2. Click Create Export. 3.
Choose BigQuery as Sink Service, and the platform-logs dataset as Sink Destination.
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 ofthe cluster. You want a solution that uses the fewest
possible services. What should you do?
Add the cluster’s API as a new Type Provider in Deployment Manager, and use the new type to
create the DaemonSet.
You are building an applicati on 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?
Use gcloud to create a key file for the service account that has appropriate permissions.
You are using Container Registry to centrally store your company’s container images in a separate
project. In another project, you want to create a Google
Kubernetes Engine (GKE) cluster. You want to ensure that Kubernetes can download images from
Container Registry. What should you do?
In the project where the images are stored, grant the Storage Object Viewer IAM role to the
service account used by the Kubernetes nodes.
Question no 73
Review details of myapp-deployment-58ddbbb995-lp86m Pod and check for warning messages
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?
After the VM has been created, use gcloud compute reset-windows-password to retrieve the
login credentials for the VM.
You want to configure 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?
Set metadata to enable-oslogin=true for the instance. Grant the dev1 group the
compute.osLogin role. Direct them to use the Cloud Shell to ssh to that instance.
You need to produce a list ofthe enabled Google Cloud Platform APIs for a GCP project using the
gcloud command line in the Cloud Shell. The project name is my-project. What should you do?
Run gcloud projects list to get the project ID, and then run gcloud services list –project .
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?
Deploy a new version of your application in App Engine. Then go to App Engine settings in GCP
Console and split traffic between the current version and newly deployed versions accordingly.
You need to provide a cost estimate for a Kubernetes cluster using the GCP pricing calculator for
Kubernetes. Your workload requires high IOPs, and you will also be using disk snapshots. You start
by entering the number of nodes, average hours, and average days. What should you do next?
Fill in local SSD. Fill in persistent disk storage and snapshot storage.
You are using Google Kubernetes Engine with autoscaling enabled to host a new application. You
want to expose this new application to the public, using HTTPS on a public IP address. What
should you do?
Create a Kubernetes Service of type NodePort for your application, and a Kubernetes Ingress to
expose this Service via a Cloud Load Balancer.
You need to enable traffic 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?
Verify that both projects are in a GCP Organization. Share the VPC from one project and
request that the Compute Engine instances in the other project use this shared VPC.
You want to add a new auditor to a Google Cloud Platform project. The auditor should be allowed
to read, but not modify, all project items.How should you configure the auditor’s permissions?
Select the built-in IAM project Viewer role. Add the user’s account to this role.
You are operati ng 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?
Add a new, GPU-enabled, node pool to the GKE cluster. Ask your ML team to add the
cloud.google.com/gke -accelerator: nvidia-tesla-p100 nodeSelector to their pod specification.
Your VMs are running in a subnet that has a subnet mask of 255.255.255.240. The current subnet
has no more free IP addresses and you require an additional
10 IP addresses for new VMs. The existing and new VMs should all be able to reach each other
without additional routes. What should you do?
Use gcloud to expand the IP range of the current subnet.
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?
Grant them the required IAM roles using their G Suite email address.
You have a Google Cloud Platform account with access to both production and development
projects. You need to create an automated proces s to list all compute instances in develop ment
and production projects on a daily basis. What should you do?
Create two configurations using gcloud config. Write a script that sets configurations as
active, individually. For each configuration, use gcloud compute instances list to get a list of
compute resources.
You have a large 5-TB AVRO file stored in a Cloud Storage bucket. Your analysts are proficient only
in SQL and need access to the data stored in this file. You want to find a cost-effective way to
complete their request as soon as possible. What should you do?
Create external tables in BigQuery that point to Cloud Storage buckets and run a SQL query on
these external tables to complete your request.