DevOps(Document Repository)
Photo
Ansible_1743273179.pdf
4.1 MB
#Ansible
#Book
โ โ โ โ โ โ โ โ โ โ โ โ
Group:
ยฉ๏ธ https://t.me/DevopsDocGP
Channel:
ยฉ๏ธ https://t.me/DevopsDoc
#Book
Group:
Channel:
Please open Telegram to view this post
VIEW IN TELEGRAM
โค4๐4
Is it better to directly remove the container using the rm command or stop the container followed by remove container?
Anonymous Quiz
31%
No. Its not always better to stop the container and then remove it using the remove command.
69%
Its always better to stop the container and then remove it using the remove command.
โค3๐3๐2๐1
500_Essential_DevOps_Commands_1744502457.pdf
337.3 KB
Group:
Channel:
Please open Telegram to view this post
VIEW IN TELEGRAM
โค7๐2
Which command is used to create a new user in Ubuntu?
Anonymous Quiz
70%
Use 'sudo adduser username'
3%
Run 'newuser create'
24%
Type 'useradd username'
3%
Use 'create-user username'
๐4โค2๐1
How do you forcefully stop a running service in Ubuntu?
Anonymous Quiz
83%
Use 'sudo systemctl stop service_name'
6%
Run 'service stop force'
1%
Type 'stop-service'
9%
Use 'sysctl force-stop'
โค5๐1
What are the Namespaces in Docker?
Anonymous Quiz
74%
Namespaces in Docker are a technology for the facility of containers in Docker.
26%
Namespaces in Docker are a technology for the facility of images in Docker.
โค3๐1
What command is used to count the total number of lines, words, and characters contained in a file?
Anonymous Quiz
17%
count p
66%
wc
14%
wcount
3%
countw
โค4๐2๐1
How do you change the swappiness value in Ubuntu to optimize memory usage?
Anonymous Quiz
78%
Use 'sudo sysctl vm.swappiness=10' and add 'vm.swappiness=10' to '/etc/sysctl.conf' for persistence
12%
Run 'set-swapiness 10'
3%
Type 'change-memory-behavior'
7%
Use 'swap-optimize 10'
๐3๐2โค1
Which command is used to display the current disk usage in Ubuntu?
Anonymous Quiz
87%
Use 'df -h'
3%
Run 'diskusage'
9%
Type 'du -all'
2%
Use 'disk-info'
โค3
Which command is used to change a user's password in Ubuntu?
Anonymous Quiz
79%
Use 'passwd username'
12%
Run 'changepwd username'
2%
Type 'resetpass username'
6%
Use 'setpass username'
โค3๐1
You are troubleshooting a Docker container that is failing to start due to a port conflict. What steps can you take to resolve this issue?
Anonymous Quiz
57%
Check if another container is using the same port
26%
Change the port mapping in the Dockerfile
14%
Use a different host port for the container
3%
Stop and remove the conflicting container
๐4โค2
What does 'become: yes' mean in Ansible playbooks?
Anonymous Quiz
29%
It means that the command must be retried until it succeeds
16%
It means that the service needs to be started once installed
8%
It means that the worker node should become a manager node
47%
It means that we would run all commands as root
โค5๐2๐1
Which tool does OpenShift use for container orchestration?
Anonymous Quiz
29%
Docker Swarm
54%
Kubernetes
8%
Mesos
9%
Nomad
๐3โค2
Which environment variable defines the endpoints for an etcd client in OpenShift?
Anonymous Quiz
30%
ETCDCTL_API
52%
ETCDCTL_ENDPOINTS
9%
ETCD_DATA_DIR
9%
ETCD_CLIENT_URLS
๐คฉ3๐3โค2
๐4โค3๐2๐พ1
What is the primary purpose of the OpenShift Service Catalog?
Anonymous Quiz
30%
To manage project-specific ConfigMaps
54%
To provide a catalog of external and internal services that users can provision
6%
To handle API security
9%
To schedule deployment configurations
๐3โค2๐2๐1๐พ1
Which OpenShift command enables you to deploy a template with parameter overrides?
Anonymous Quiz
26%
oc deploy
38%
oc process --param-file
14%
oc template apply
22%
oc apply --template
๐5๐1
If you see a directory with the following permissions `drwxrwxrxt`, would you be able to remove it?
Anonymous Quiz
33%
Only the owner of the folder can remove this folder
37%
Yes, we can remove it from any user
13%
We can remove it with the root user
8%
We can remove it only using the root user
8%
No, this folder can't be remove.
๐พ4๐3๐ณ3
How do you kill a process using its PID in Ubuntu?
Anonymous Quiz
87%
Use 'sudo kill PID'
4%
Run 'terminate PID'
1%
Type 'endprocess PID'
9%
Use 'killproc -id PID'
โค3๐2
Which OpenShift command allows you to view the logs of a specific pod?
Anonymous Quiz
35%
oc get logs
20%
oc view pod-logs
45%
oc logs <pod-name>
1%
oc log access
๐3โค2
Which command allows you to perform a disk benchmark in Ubuntu?
Anonymous Quiz
61%
Use 'sudo hdparm -tT /dev/sdX'
20%
Run 'diskbench -d sdX'
12%
Type 'benchmarkdisk /dev/sdX'
7%
Use 'diskcheck -speed'
๐3๐3