You are on page 1of 3

Q1: In Kubernetes how to create a service for a replicated Nginx, which serves on port 80

and connects to the containers on port 8000??

a None

b None

c kubectl expose rc nginx --port=8080 --target-port=80

d kubectl expose rc nginx --port=80 --target-port=8000

e kubectl expose nginx --port=80 --target-port=8000

f kubectl rc nginx --port=80 --target-port=8000

Q2: Which command would show you the logs of a running pod in Kubernetes??

a kubectl log pod-name

The correct Answer is: None

c kubectl show -l pod-name

d kubectl logs pod-name

The correct Answer is: None

f kubectl print pod-name

Q3: What is the correct HTML for making a text area??

a <textarea>

b None

c <input type="textarea">

d <input type="textbox">

e <textbox>

f None

Q4: Which of the following type of variables have only two possible values either true or
false??
a Doubles

b Booleans

The correct Answer is: None

d Strings

The correct Answer is: None

f Integers

Q5: What is the Ansible setup module used for??

a Setup your SSH keys

b None

c Setup ansible on a master host

d None

e Gathers facts about remote hosts

f Setup Ansible on remote hosts

Q6: What is an internal command??

a None

b Shell built in commands are called as internal commands.

c Every command which has been developed by the new generation of Linux is
considered an internal command.

d None

e Shell commands which are executed on the local machine are called internal
commands.

f Every command which comes with the default installation of Linux is called
internal command with some small exceptions like really old commands.

Q7: What will happen If you run the command "init 1" in your terminal?
The correct Answer is: None

The correct Answer is: None

c Shut down the system

d Reboot the system

e Start the system without a display manager (GUI)

f Enter single user mode

Q8: What is the correct way to open the file "time.txt" as readable??

a open("time.txt","read");

b fopen("time.txt","r");

c None

d None

e fopen("time.txt","r+");

f open("time.txt");

You might also like