wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GCloud Quiz : The Finale

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Internal Load Balancers are used in which of the following scenarios.

a)

Routing any web traffic to the backend service.

b)

Routing traffic in a private network.

c)

Both a & b

d)

Neither a nor b

2.

Google Chrome wants to release a new update such that the new update is only available to people residing in India and then later to the remaining globe. Which of the following deployment strategies fits the best here?

a)

Canary deployment

b)

Rolling deployment

c)

Blue-green deployment

d)

None of the above.

3.

In the Docker run command docker run -p 4000:80 node-app:0.1, what does 4000:80 indicate?

a)

The container runs on container’s port 4000

b)

The container runs on host’s port 80

c)

The container runs on host’s port 4000

d)

The command doesn’t run

4.

Which of the following Kubernetes objects can be used to handle external traffic to your K8s cluster?

a)

ClusterIP along with Kubernetes proxy

b)

LoadBalancer

c)

Ingress

d)

None :(

5.

What subnet mask will you provide to your firewall if you want to whitelist IP addresses in the range 192.158.4.1 - 192.158.5.254?

a)

255.255.255.0

b)

255.255.254.0

c)

255.255.255.255

d)

0.0.1.255

6.

How can you create a Kubernetes Service using kubectl only, when a Service manifest is absent?

a)

kubectl run

b)

kubectl deploy

c)

kubectl expose

d)

None :(

7.

You need to set up network security in a VPC with multiple subnets and traffic limiting between the subnets. Which network security control would you use to control the flow of traffic between subnets?

a)

Identity Access Management

b)

Router

c)

Firewall

d)

IP address table

8.

​​You have to run a number of services to support an application. Which of the following is a good deployment model?

a)

Run on a large, single VM

b)

Use containers in a managed cluster

c)

Use two large VMs, making one of them read only

d)

Use a small VM for all services and increase the size of the VM when CPU utilisation exceeds 90%

9.

 You have used Helm with Spinnaker and Jenkins for Kubernetes deployments. What is a Helm chart?

a)

Dashboards to monitor Kubernetes deployments

b)

Collection of YAML template files

c)

Package manager for Kubernetes deployments

d)

Charts to visualize the CI/CD pipeline

10.

Your API has millions of customers. You decide to release a new backward incompatible API version. If not all customers can switch to the new version, what deployment strategy will you employ here?

a)

Rolling update

b)

Blue-green deployment

c)

Canary deployment

d)

None :(

11.

You can specify packages to install into a Docker container by including commands in which file?

a)

Docker.cfg

b)

Dockerfile

c)

Config.dck

d)

install.cfg

12.

How much memory of a node does Kubernetes require as overhead?

a)

10GB to 20GB

b)

1.5GB

c)

1GB to 2GB

d)

A scaled amount starting at 25 percent of memory and decreasing to 2 percent of marginal memory as the total amount of memory increases

13.

When you first try to use the kubectl command, you get an error message indicating that the resource cannot be found or you cannot connect to the cluster. What command would you use to try to eliminate the error?

a)

gcloud container clusters access

b)

gcloud container clusters get-credentials

c)

gcloud auth container

d)

gcloud auth container clusters

14.

What are valid methods for splitting traffic?

a)

By IP address only

b)

By HTTP cookie only

c)

Randomly and by IP address only

d)

By IP address, HTTP cookies, and randomly

15.

You view a list of Linux VM instances in the console. All have public IP addresses assigned.You notice that the SSH option is disabled for one of the instances. Why might that be the case?

a)

The instance is preemptible and therefore does not support SSH.

b)

The instance has stopped.

c)

The instance was configured with the No SSH option.

d)

The SSH option is never disabled.

16.

Which command will delete an instance named ch06-instance-3?

a)

gcloud compute instances delete instance=ch06-instance-3

b)

gcloud compute instance stop ch06-instance-3

c)

gcloud compute instances delete ch06-instance-3

d)

gcloud compute delete ch06-instance-3

17.

A colleague has asked for your assistance setting up a test environment in Google Cloud. They have never worked in GCP. You suggest starting with a single VM. Which of the following is the minimal set of information you will need?

a)

A name for the VM and a machine type

b)

A name for the VM, a machine type, a region, and a zone

c)

A name for the VM, a machine type, a region, a zone, and a CIDR block

d)

A name for the VM, a machine type, a region, a zone, and an IP address

18.

You are deploying a high availability application in Kubernetes Engine. You want to maintain availability even if there is a major network outage in a data center. What feature of the Kubernetes Engine would you employ?

a)

Multiple instance groups

b)

Multizone/region cluster

c)

Regional deployments

d)

Load balancing

19.

I have my web application running on a kubernetes node. Which of the following can I remove from the node to make my application inaccessible from the outside world

a)

Kube-proxy

b)

Kubelet

c)

Application docker image

d)

None :(

20.

An Internal Load Balancer does not have ____

a)

DNS name

b)

Private IP address

c)

Public IP address

d)

a & c both