DevOps(Document Repository)
Photo
Ansible_1743273179.pdf
4.1 MB
#Ansible
#Book
➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖
Group:
©️ https://news.1rj.ru/str/DevopsDocGP
Channel:
©️ https://news.1rj.ru/str/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
4%
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'
8%
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'
13%
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
56%
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
31%
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
27%
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'
8%
Use 'killproc -id PID'
❤3👍2
Which OpenShift command allows you to view the logs of a specific pod?
Anonymous Quiz
34%
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'
13%
Type 'benchmarkdisk /dev/sdX'
7%
Use 'diskcheck -speed'
🙏3👌3