0% found this document useful (0 votes)
4K views8 pages

Google Cloud Sample MCQs

The document contains 36 multiple choice questions about Google Cloud services and tools. It tests knowledge in areas like Kubernetes configuration, IAM roles, Compute Engine creation methods, Cloud SDK commands, networking concepts, and specific services like BigQuery, Cloud SQL, Cloud Spanner, and Kubernetes Engine.

Uploaded by

Ranjeet Parya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4K views8 pages

Google Cloud Sample MCQs

The document contains 36 multiple choice questions about Google Cloud services and tools. It tests knowledge in areas like Kubernetes configuration, IAM roles, Compute Engine creation methods, Cloud SDK commands, networking concepts, and specific services like BigQuery, Cloud SQL, Cloud Spanner, and Kubernetes Engine.

Uploaded by

Ranjeet Parya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

GOOGLE CLOUD (Prac.ce MCQ Ques.

ons)

1) You are trying to get Google Kubernetes server configuration of a project by


running the command gcloud container get-server-config, when you hit enter, you
get an error message: “There was a problem refreshing your current auth tokens:
invalid_grant: Bad Request”. What would you do to successfully run this
command and get the server configuration from Kubernetes?
a) gcloud auth login
b) gcloud config set account [ACCOUNT]
c) gcloud config set project [PROJECT_ID]
d) gcloud components update

2) Your project manager wants to create a user for Aston Smith who is the new cloud
SQL administrator in your organization. Which of the following role would give
him the ability to manage specific instances but no ability to import or restore data
from backups?
a) Cloud SQL Editor
b) Cloud SQL Admin
c) Cloud SQL Viewer
d) Cloud SQL Client

3) Offers quick access to the platform's services and also outlines its offerings.
a) Compute
b) Networking
c) Cloud Operations
d) Navigation menu

4) Through which of the following ways can you create a VM instance in Compute
Engine (Compute Engine)?
a) The Cloud Console
b) The gcloud command line tool
c) only a
d) both a and b

5) In order to receive completion credit for a lab that has tracking, you must
complete the required hands-on lab activities
a) False
b) True

6) Provides all viewer permissions, plus permissions for actions that modify state,
such as changing existing resources.
a) Viewer role
b) Owner role
c) Editor role
d) Google cloud project

7) Which of the following is a command line tool that is part of the Cloud SDK
a) Git
b) Gsutil
c) BASH
d) SSH

8) Which of the following two services can take advantage of containers to run your
applications?
a) Google Kubernetes engine
b) App engine
c) Compute engine
d) Cloud Function
9) Each bucket has a default storage class, which you can specify when you create
your bucket
a) True
b) False
10) Which of the following api management systems can be used on legacy systems?
a) AIPGEE EDGE
b) CLOUD END POINT
c) CLOUD GATEWAY
d) REST
11) When you start a lab in Qwiklabs, you need to enable APIs in your project to start
working with Google Cloud.
a) True
b) False
12) Which of these fields identify the location of the backend?
a) Client IP
b) Server Hostname
c) Server Location
d) none
13) What field is NOT found in the left pane?
a) Project ID
b) System admin
c) Open Google Console
d) Password
14) What command would you use to set up the default configuration of the Cloud
SDK?
a) Gcloud init
b) Gcloud compute
c) Bq run
d) Gsutil mb
15) Which of the following best describes a major advantage Google Cloud has over
other cloud providers?
a) Google uses satellite links as a way of interconnecting Regions, Zones, and
POPS.
b) Google leverages traditional networking gear from commercial vendors.
c) Google leases fibre from multiple vendors. In the event of a vendor’s fiber
failing, another vendor's network can be used as a backup.
d) Google owns one of the largest networks in the world. All regions and zones are
connected on the same network.
16) You have changed the name of your project. You want to change the name of the
project ID as well, but are not able to do so. Why is this?
a) The name of the project has been changed.
b) The project ID and project number are fixed.
c) The relevant Cloud Identity and Access Management (Cloud IAM) privileges
are not assigned to you.
d) The relevant Cloud Identity and Access Management (Cloud IAM) policies are
not assigned to you.

17) Hadoop Ecosystem is a part of


a) Cloud
b) Database
c) Datamining
d) Big Data
18) Microsoft Azure is
a) Datawarehouse
b) Data Collection Centre
c) Cloud
d) Data Base
19) GCRP stands for
a) Google Cloud Ready Program
b) Google Cloud Readiness Program
c) Google Carrier Readiness Program
d) Google Certified Remote Program
20) While doing networking in cloud which internet protocol version is used?
a) IPV6
b) IPV4
c) IPV2
d) IPV8
21) What is the meaning of protocols?
a) Codes
b) Rules
c) Programs
d) Instructions
22) You need to implement a big data analytics platform in the cloud. Into which phase
of the common big data processing model would you place Pub/Sub?
a) Store
b) Ingest
c) Process
d) Analyse
23) Which of the following virtual disk types is ephemeral?
a) Cloud Storage
b) HD Persistent Disk
c) Local SSD
d) SSD Persistent Disk

24) You are a project owner and need your co-worker to deploy a new version of your
application to App Engine. You want to follow Google’s recommended practices.
Which IAM roles should you grant your co-worker?
a) Project Editor
b) App Engine Service Admin
c) App Engine Deployer
d) App Engine Code Viewer

25) You want to find out who in your organization has Owner access to a project called
"my-project". What should you do?
a) In the Google Cloud Platform Console, go to the IAM page for your
organization and apply the filter "Role:Owner".
b) In the Google Cloud Platform Console, go to the IAM page for your project
and apply the filter "Role:Owner".
c) Use "gcloud iam list-grantable-role --project my-project" from your Terminal.
d) Use "gcloud iam list-grantable-role" from Cloud Shell on the project page.

26) You need to verify the assigned permissions in a custom IAM role. What should you
do?
a) Use the GCP Console, IAM section to view the information.
b) Use the "gcloud init" command to view the information.
c) Use the GCP Console, Security section to view the information.
d) Use the GCP Console, API section to view the information.

27) Your project has all its Compute Engine resources in the europe-west1 region. You
want to set europe-west1 as the default region for gcloud commands.
What should you do?
a) Use Cloud Shell instead of the command line interface of your device. Launch
Cloud Shell after you navigate to a resource in the europe-west1 region. The
europe-west1 region will automatically become the default region.
b) Use "gcloud config set compute/region europe-west1" to set the default region
for future gcloud commands.
c) Use "gcloud config set compute/zone europe-west1" to set the default region
for future gcloud commands.
d) Create a VPN from on-premises to a subnet in europe-west1, and use that
connection when executing gcloud commands.

28) What is the gcloud command to set default zone for compute engine server using
gcloud cli?
a) gcloud config set compute/zone us-east-1
b) gcloud config configurations set compute/zone us-east-1a
c) gcloud config set compute/zone us-east1-a
d) gcloud defaults set compute/zone us-east-1

29) Which of the following role provide granular access for a specific service and is
managed by GCP?
a) Custom
b) Predefined
c) Admin
d) Primitive

30) You have been asked to list the name of active account using gcloud CLI. Which of
the following command will you use?
a) Gcloud config list
b) Gcloud auth list
c) Gcloud account list
d) Gcloud project list

31) You want your application hosted on a VM to fetch metadata of that instance.
Which command will help you to fetch it?
a) curl metadata.google.internal/compute-metadata/v1/
b) curl <instance-private-ip>/metadata/v1/
c) curl metadata.google.internal/compute Metadata/v1/
d) curl internal.googleapi.com/compute Metadata/v1/

32) You have 100TB of non-relational data and want to run analytics on it to see
previous year net sales. Which tool suits best to your requirement?
a) BigQuery
b) BigTable
c) Datastore
d) GCS

33) A client of yours want you to migrate its on-premise MySQL data to Google Cloud
without any downtime. Which service will you use for migrating SQL data to Cloud?
a) Cloud Migration
b) Anthos
c) CloudSQL
d) Cloud Run

34) You are starting to work on a client’s project who is looking for a database service
within Google Cloud which is horizontally scalable, supports gigabyte size of relational
data and even supports ACID for reliable storage of data. Which service will you
recommend?
a) Datastore
b) BigQuery
c) CloudSQL
d) Cloud Spanner

35) Your company has received a new project where it needs to migrate on-premise
servers and data to Google Cloud gradually but until then you need to setup a VPN
tunnel between on-premise and Google Cloud. Which service will you use in
conjunction with Cloud VPN for a smooth setup?
a) Cloud CDN
b) Cloud NAT
c) Cloud Run
d) Cloud Router

36) Your company is running a high availability deployment “hello-server” in


Kubernetes Engine on port 8080 which needs to be exposed to public internet using a
load balancer on port 80. Which of the following commands will help to accomplish this
deployment?
a) kubectl expose deployment hello-server –type LoadBalancer –port 8080 –
target-port 80
b) kubectl run deployment hello-server –type LoadBalancer –port 80 –target-port
8080
c) kubectl expose deployment hello-server –type LoadBalancer –port 80 –target-
port 8080
d) kubectl run deployment hello-server –type LoadBalancer –port 8080 –target-
port 80
37) Which of the following gcloud command lets you view the details of a custom subnet
you created in a particular region?
a) gcloud compute networks subnets view [SUBNET_NAME] –region us-
central1
b) gcloud compute networks subnets describe [SUBNET_NAME] –region us-
central1
c) gcloud compute networks subnets list [SUBNET_NAME] –region us-central1
d) gcloud compute networks subnets read [SUBNET_NAME] –region us-
central1
38) You were inspecting the containers running on a VM and found out that a pod is
running which is no more required. You try to delete it but every time a new pod is
created. What do you need to delete now for removing that pod?
a) Replica Set
b) VM
c) Container
d) Service

39) Your company was bidding on a big data project form last few months and they
have finally received the project. The project wants you to deploy Apache Spark
clusters on Google Cloud. Which service will you use?
a) Data Flow
b) Data Proc
c) BigTable
d) Cloud Composer

40) One of your team members had accidentally included a service account private
JSON key while pushing code to GitHub. What steps should you immediately perform?
a) Delete the JSON file from GitHub.
b) Delete the project and all its resources.
c) Delete the JSON file from GitHub, remove the key from Google Cloud IAM
and generate a new key for use.
d) None of the above
41) Your project manager wants to create a user for Aston Smith who is the new cloud
SQL administrator in your organization. Which of the following role would give him the
ability to manage specific instances but no ability to import or restore data from
backups?
a) Cloud SQL Editor
b) Cloud SQL Admin
c) Cloud SQL Viewer
d) Cloud SQL Client

42) Your company has uploaded some business-critical documents to Cloud Storage and
your project manager wants you to restrict access to the objects by using ACLs. Which
of the following permission would allow you to update the object ACLs?
a) Storage.objects.update
b) Storage.objects.setIamPolicy
c) Storage.objects.create
d) Storage.objects.getIamPolicy

43) You need to deploy an update to an application in Google App Engine. The update is
risky, but it can only be tested in a live environment. What is the best way to introduce
the update to minimize risk?
a) Deploy a new version of the application but use traffic splitting to only direct
a small number of users to the new version
b) Deploy the application temporarily and be prepared to pull it back if needed
c) Warn users that a new app version may have issues and provide a way to
contact you if there are problems
d) Create a new project with the new app version, then redirect users to the new
version

44) You have created a Kubernetes engine cluster named ‘mycluster’. You’ve realized
that you need to change the machine type for the cluster from n1-standard-1 to n1-
standard-4. What is the command to make this change?
a) You must create a new node pool in the same cluster and migrate the workload
to the new pool
b) gcloud container clusters update mycluster –machine-type n1-standard-4
c) This action is not possible
d) gcloud container clusters resize mycluster –machine-type n1-standard-4

45) There are 15 VMs in your company’s Google Cloud account which have public IP
address but are ephemeral. Your manager asked you to assign static public IP to each
instance. During the process you were able to assign IPs to only 5 of the VMs and were
receiving error of all other instances. What can be the reason?
a) You have reached the hard limit of using static IP addresses
b) Your quota has been exhausted and you can raise a request to increase it
c) Not all OS supports static public IP so check if the OS on VM supports static
IP
d) You need to first remove existing public IP attached to VMs and then attach
static IP to them

46) What is the gcloud command to set default zone for compute engine server using
gcloud cli?
a) gcloud config set compute/zone us-east-1
b) gcloud config configurations set compute/zone us-east-1a
c) gcloud config set compute/zone us-east1-a
d) gcloud defaults set compute/zone us-east-1

47) You have been asked to list the name of active account using gcloud CLI. Which of
the following command will you use?
a) Gcloud config list
b) Gcloud auth list
c) Gcloud account list
d) Gcloud project list

You might also like