A systems administrator is preparing a Linux system for application setup. The administrator needs to create an environment variable with a persistent value in one of the user accounts. Which of the following commands should the administrator use for this task?
Answer(s): D
Adding export VAR=value to ~/.bashrc ensures the environment variable is set persistently for the user. The variable will load automatically in every new shell session.
Which of the following is a reason multiple password changes on the same day are not allowed?
Answer(s): C
Restricting multiple password changes in one day prevents users from cycling through password changes just to reuse an old password, thereby enforcing stronger security practices.
Which of the following commands should an administrator use to convert a KVM disk file to a different format?
The qemu-img command is used to create, convert, and manage disk image files for KVM/QEMU. It allows conversion between formats such as qcow2, raw, and vmdk.
Users cannot access a server after it has been restarted. At the server console, the administrator runs the following commands:Which of the following is the cause of the issue?
Answer(s): B
The server is running and responding to pings, and DNS resolves correctly (dig server1 192.168.0.2). The ss -lnt output shows SSH (port 22) is listening, but the firewall (firewall-cmd --list-all) does not list SSH among the allowed services. Therefore, external users cannot connect because the firewall is blocking SSH.
A Linux software developer wants to use AI to optimize source code used in a commercial product. Which ofthe following steps should the developer take first?
Before using AI on commercial source code, the developer must first ensure compliance with company policies, legal requirements, and security standards. This prevents potential intellectual property, licensing, or confidentiality issues.
A DevOps engineer made some changes to files on a local repository. The engineer realizes that the changes broke the application and the changes need to be reverted back. Which of the following commands is the best way to accomplish this task?
The git reset command reverts changes in the local repository to a previous commit, effectively discarding the problematic modifications and restoring the application to a working state.
An administrator needs to remove the directory /home/user1/data and all of its contents. Which of the following commands should the administrator use?
The rm -r command recursively removes a directory and all of its contents (files and subdirectories), which is required for deleting /home/user1/data.
Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should the administrator use?
The docker ps command lists all running containers, allowing the administrator to verify whether the application's containers are active.
Post your Comments and Discuss CompTIA XK0-006 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the XK0-006 content, but please register or login to continue.