You are on page 1of 2

Q1: The handler invoked by Kubelet to check if a container’s IP address is open or not is??

The correct Answer is: None

b HTTPGetAction

c TCPSocketAction

d None of the above

e ExecAction

The correct Answer is: None

Q2: How to kill a container??

a None

b docker terminated <container_id>

c $ docker --kill <container_id>

d None

e None

f docker kill <container_id>

Q3: What will be the output of the following query INSERT INTO students (student name)
VALUE ('James Lenon');?

a the above query will generate an error message.

b None

c a student record with the name James Lenon will be added into the students table

d None

e None

f None

Q4: How to dump pod logs, with label name=myLabel (stdout) in Kubernetes?
a kubectl logs -l name=myLabel

b None

c kubectl log name=myLabel

d None

e kubectl pod -l name=myLabel

f kubectl logs -l .name[*]=myLabel

Q5: How to delete all pods in Kubernetes matching the awk pattern1 or pattern2??

a kubectl get pods -n myns --no-headers=true | awk '/pattern1|pattern2/{print $1}'


| xargs kubectl delete -n myns pod

b None

c kubectl get nodes -n myns --no-headers=true | awk '/pattern1|pattern2/{print


$1}' | xargs kubectl delete -n myns pod

d None

e kubectl print pods -n myns --no-headers=true | awk '/pattern1/2|pattern2/{print


$1}' | xargs kubectl delete -n myns pod

f kubectl print pods -n myns --no-headers=true | awk '/pattern1/2|pattern2/{print


$1}' | xargs kubectl remove -n myns pod

Q6: What used to be called a minion in Kubernetes cluster??

The correct Answer is: None

b A component of the master node.

c Docker container service.

d A monitoring engine used widely in Kubernetes.

The correct Answer is: None

f A worker node.

You might also like