
Ultimate Guide to Prepare 305-300 with Accurate PDF Questions [May 23, 2024]
Pass Lpi With Exam4Tests Exam Dumps
Certification Topics of LPI 305-300 Exam
Container Virtualization
Full Virtualization
VM Deployment and Provisioning
NEW QUESTION # 37
FILL BLANK
What command is used to run a process in a new Linux namespace? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
unshare
Explanation
The unshare command is used to run a process in a new Linux namespace12. It takes one or more flags to specify which namespaces to create or unshare from the parent process1. For example, to run a shell in a new mount, network, and PID namespace, one can use:
unshare -mnp /bin/bash
References:
* 1: unshare(1) - Linux manual page - man7.org
* 2: A gentle introduction to namespaces in Linux - Packagecloud
NEW QUESTION # 38
Which statement is true regarding the Linux kernel module that must be loaded in order to use QEMU with hardware virtualization extensions?
- A. It must be loaded into the kernel of the first virtual machine as it interacts with the QEMU bare metal hypervisor and is required to trigger the start of additional virtual machines
- B. It must be loaded into the kernel of the host system only if the console of a virtual machine will be connected to a physical console of the host system
- C. It must be loaded into the kernel of each virtual machine to provide Para virtualization which is required by QEMU.
- D. It must be loaded into the Kernel of the host system in order to use the visualization extensions of the host system's CPU
- E. It must be loaded into the kernel of each virtual machine that will access files and directories from the host system's file system.
Answer: D
NEW QUESTION # 39
Which of the following statements is true regarding networking with libvirt?
- A. Libvirt assiqns the same MAC address to all virtual machines and isolates their network interfaces at the link layer.
- B. Libvirt supports exactly one virtual network and connects all virtual machines to it.
- C. Libvirt networks appear, by default, as standard Linux bridges in the host system.
- D. Libvirt's network functionality is limited to connecting virtual machines to a physical network interface of the host system.
- E. Libvirt requires a dedicated network interface that may not be used by the host system.
Answer: C
Explanation:
Explanation
Libvirt supports creating and managing various types of virtual networks that can be used to connect virtual machines to each other or to the external network. One of the common types of virtual networks is the NAT-based network, which uses network address translation (NAT) to allow virtual machines to access the outside world through the host's network interface. By default, libvirt creates a NAT-based network called
'default' when it is installed and started. This network appears as a standard Linux bridge device on the host system, named virbr0. The bridge device has an IP address of 192.168.122.1/24 and acts as a gateway and a DHCP server for the virtual machines connected to it. The bridge device also has iptables rules to forward and masquerade the traffic from and to the virtual machines. The virtual machines connected to the 'default' network have their own IP addresses in the 192.168.122.0/24 range and their own MAC addresses generated by libvirt. The virtual machines can communicate with each other, with the host, and with the external network through the bridge device and the NAT mechanism12.
The other statements in the question are false regarding networking with libvirt. Libvirt's network functionality is not limited to connecting virtual machines to a physical network interface of the host system. Libvirt can also create isolated networks that do not have any connection to the outside world, or routed networks that use static routes to connect virtual machines to the external network without NAT3.
Libvirt does not assign the same MAC address to all virtual machines and isolate their network interfaces at the link layer. Libvirt assigns a unique MAC address to each virtual machine and allows them to communicate with each other at the network layer4. Libvirt does not require a dedicated network interface that may not be used by the host system. Libvirt can share the host's network interface with the virtual machines using NAT or bridging, or it can pass a physical network interface to a virtual machine exclusively using PCI passthrough5.
Libvirt does not support exactly one virtual network and connect all virtual machines to it. Libvirt supports creating and managing multiple virtual networks with different names and configurations, and connecting virtual machines to different networks according to their needs6. References:
* libvirt: Virtual Networking
* libvirt: NAT forwarding (aka "virtual networks")
* libvirt: Routed network
* libvirt: MAC address
* libvirt: PCI passthrough of host network devices
* [libvirt: Network XML format]
NEW QUESTION # 40
FILL BLANK
What is the default path to the Docker daemon configuration file on Linux? (Specify the full name of the file,Including path.)
Answer:
Explanation:
/etc/docker/daemon.json
Explanation
The default path to the Docker daemon configuration file on Linux is /etc/docker/daemon.json. This file is a JSON file that contains the settings and options for the Docker daemon, which is the service that runs on the host operating system and manages the containers, images, networks, and other Docker resources. The
/etc/docker/daemon.json file does not exist by default, but it can be created by the user to customize the Docker daemon behavior. The file can also be specified by using the --config-file flag when starting the Docker daemon. The file must be a valid JSON object and follow the syntax and structure of the dockerd reference docs12. References:
* Docker daemon configuration file - Medium3
* Docker daemon configuration overview | Docker Docs4
* docker daemon | Docker Docs5
NEW QUESTION # 41
Which CPU flag indicates the hardware virtualization capability on an AMD CPU?
- A. VMX
- B. PVM
- C. HVM
- D. SVM
- E. VIRT
Answer: D
NEW QUESTION # 42
Which of the following statements are true regarding a Pod in Kubernetes? (Choose two.)
- A. systemd is used to manage individual Pods on the Kubernetes nodes.
- B. When a Pod fails, Kubernetes restarts the Pod on another node by default.
- C. Pods are always created automatically and cannot be explicitly configured.
- D. A Pod is the smallest unit of workload Kubernetes can run.
- E. All containers of a Pod run on the same node.
Answer: D,E
Explanation:
Explanation
A Pod in Kubernetes is a collection of one or more containers that share the same network and storage resources, and a specification for how to run the containers. A Pod is the smallest unit of workload Kubernetes can run, meaning that it cannot be divided into smaller units. Therefore, option C is correct. All containers of a Pod run on the same node, which is the smallest unit of computing hardware in Kubernetes. A node is a physical or virtual machine that hosts one or more Pods. Therefore, option A is also correct. Pods are not always created automatically and cannot be explicitly configured. Pods can be created manually using YAML or JSON files, or using commands like kubectl run or kubectl create. Pods can also be created automatically by higher-level controllers, such as Deployment, ReplicaSet, or StatefulSet. Therefore, option B is incorrect.
When a Pod fails, Kubernetes does not restart the Pod on another node by default. Pods are ephemeral by nature, meaning that they can be terminated or deleted at any time. If a Pod is managed by a controller, the controller will create a new Pod to replace the failed one, but it may not be on the same node. Therefore, option D is incorrect. systemd is not used to manage individual Pods on the Kubernetes nodes. systemd is a system and service manager for Linux operating systems that can start and stop services, such as docker or kubelet. However, systemd does not interact with Podsdirectly. Pods are managed by the kubelet service, which is an agent that runs on each node and communicates with the Kubernetes control plane. Therefore, option E is incorrect. References:
* Pods | Kubernetes
* What is a Kubernetes pod? - Red Hat
* What's the difference between a pod, a cluster, and a container?
* What are Kubernetes Pods? | VMware Glossary
* Kubernetes Node Vs. Pod Vs.Cluster: Key Differences - CloudZero
NEW QUESTION # 43
Which of the following statements are true regarding VirtualBox?
- A. It only supports Linux as a guest operating system and cannot run Windows inside a virtual machine.
- B. It provides both a graphical user interface and command line tools to administer virtual machines.
- C. It is a hypervisor designed as a special kernel that is booted before the first regular operating system starts.
- D. It requires dedicated shared storage, as it cannot store virtual machine disk images locally on block devices of the virtualization host.
- E. It is available for Linux only and requires the source code of the currently running Linux kernel to be available.
Answer: B
Explanation:
Explanation
VirtualBox is a hosted hypervisor, which means it runs as an application on top of an existing operating system, not as a special kernel that is booted before the first regular operating system starts1. VirtualBox supports a large number of guest operating systems, including Windows, Linux, Solaris, OS/2, and OpenBSD1. VirtualBox does not require dedicated shared storage, as it can store virtual machine disk images locally on block devices of the virtualization host, or on network shares, or on iSCSI targets1. VirtualBox provides both a graphical user interface (GUI) and command line tools (VBoxManage) to administer virtual machines1. VirtualBox is available for Windows, Linux, macOS, and Solaris hosts1, and does not require the source code of the currently running Linux kernel to be available. References:
* Oracle VM VirtualBox: Features Overview
NEW QUESTION # 44
What is the purpose of the packer inspect subcommand?
- A. Execute commands within a running instance of a Packer image.
- B. Show usage statistics of a Packer image.
- C. Retrieve files from an existing Packer image.
- D. List the artifacts created during the build process of a Packer image.
- E. Display an overview of the configuration contained in a Packer template.
Answer: E
NEW QUESTION # 45
What is true aboutcontainerd?
- A. It uses rune to start containers on a container host.
- B. It is the initial process run at the start of any Docker container.
- C. It is a text file format defining the build process of containers.
- D. It requires the Docker engine and Docker CLI to be installed.
- E. It runs in each Docker container and provides DHCP client functionality
Answer: A
NEW QUESTION # 46
What kind of virtualization is implemented by LXC?
- A. Application containers
- B. System containers
- C. CPU emulation
- D. Paravirtualization
- E. Hardware containers
Answer: B
Explanation:
Explanation
LXC implements system containers, which are a type of operating-system-level virtualization. System containers allow running multiple isolated Linux systems on a single Linux control host, using a single Linux kernel. System containers share the same kernel with the host and each other, but have their own file system, libraries, andprocesses. System containers are different from application containers, which are designed to run a single application or service in an isolated environment. Application containers are usually smaller and more portable than system containers, but also more dependent on the host kernel and libraries. Hardware containers, CPU emulation, and paravirtualization are not related to LXC, as they are different kinds of virtualization methods that involve hardware abstraction, instruction translation, or modification of the guest operating system. References:
* 1: LXC - Wikipedia
* 2: Linux Virtualization : Linux Containers (lxc) - GeeksforGeeks
* 3: Features - Proxmox Virtual Environment
NEW QUESTION # 47
What is the purpose of capabilities in the context of container virtualization?
- A. Enable memory deduplication to cache files which exist in multiple containers.
- B. Prevent processes from performing actions which might infringe the container.
- C. Map potentially dangerous system calls to an emulation layer provided by the container virtualization.
- D. Allow regular users to start containers with elevated permissions.
- E. Restrict the disk space a container can consume.
Answer: B
NEW QUESTION # 48
Which of the following commands executes a command in a running LXC container?
- A. lxc-batch
- B. lxc-eval
- C. lxc-run
- D. lxc-enter
- E. lxc-accach
Answer: E
Explanation:
Explanation
The command lxc-attach is used to execute a command in a running LXC container. It allows the user to start a process inside the container and attach to its standard input, output, and error streams1. For example, the command lxc-attach -n mycontainer -- ls -lh /home will list all the files and directories in the /home directory of the container named mycontainer1. The other options are not valid LXC commands. The command lxc-batch does not exist. The command lxc-run is an alias for lxc-start, which is used to start a container, not to execute a command in it2. The command lxc-enter is also an alias for lxc-attach, but it is deprecated and should not be used3. The command lxc-eval is also not a valid LXC command. References:
* 1: Executing a command inside a running LXC - Unix & Linux Stack Exchange.
* 2: lxc-start: start a container. - SysTutorials.
* 3: lxc-attach: start a process inside a running container. - SysTutorials.
NEW QUESTION # 49
How does Packer interact with system images?
- A. Packer downloads and extracts an image in order to make changes to the image's file system, repack the modified image and upload it again.
- B. Packer creates an instance based on a source image, prepares the instance through a network connection and bundles the resulting instance as a new system image.
- C. Packer installs a client within the image which has to be run periodically via cron in order to retrieve the latest template from the Packer server and apply it locally.
- D. Packer has to be installed within the target image and is executed during the image's first boot in order to execute preparation tasks.
- E. Packer periodically connects through the network to the Packer daemons of all running Packer images in order to re-apply the whole template to the running instance.
Answer: B
NEW QUESTION # 50
Which of the following statements are true regarding resource management for full virtualization? (Choose two.)
- A. The hygervisor may provide fine-grained limits to internal elements of the guest operating system such as the number of processes.
- B. It is up to the virtual machine to use its assigned hardware resources and create, for example, an arbitrary amount of network sockets.
- C. Full virtualization cannot pose any limits to virtual machines and always assigns the host system's resources in a first-come-first-serve manner.
- D. All processes created within the virtual machines are transparently and equally scheduled in the host system for CPU and I/O usage.
- E. The hypervisor provides each virtual machine with hardware of a defined capacity that limits the resources of the virtual machine.
Answer: B,E
NEW QUESTION # 51
FILL BLANK
What command is used to run a process in a new Linux namespace? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
unshare
NEW QUESTION # 52
FILL BLANK
What LXC command starts a new process within a running LXC container? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
lxc-attach
Explanation
The lxc-attach command allows the user to start a new process within a running LXC container12. It takes the name of the container as an argument and optionally a command to execute inside the container. If no command is specified, it creates a new shell inside the container1. For example, to list all the files in the home directory of a container named myContainer, one can use:
lxc-attach -n myContainer - ls -lh /home
References:
* 1: Executing a command inside a running LXC - Unix & Linux Stack Exchange
NEW QUESTION # 53
Which directory is used bycloud-initto store status information and configuration information retrieved from external sources?
- A. /opt/cloud/var/
- B. /proc/sys/cloud/
- C. /etc/cloud-init/cache/
- D. /var/lib/cloud/
- E. /tmp/.cloud/
Answer: D
Explanation:
Explanation
cloud-init uses the /var/lib/cloud/ directory to store status information and configuration information retrieved from external sources, such as the cloud platform'smetadata service or user data files. The directory contains subdirectories for different types of data, such as instance, data, handlers, scripts, and sem. The instance subdirectory contains information specific to the current instance, such as the instance ID, the user data, and the cloud-init configuration. The data subdirectory contains information about the data sources that cloud-init detected and used. The handlers subdirectory contains information about the handlers that cloud-init executed.
The scripts subdirectory contains scripts that cloud-init runs at different stages of the boot process, such as per-instance, per-boot, per-once, and vendor. The sem subdirectory contains semaphore files that cloud-init uses to track the execution status of different modules and stages. References:
* Configuring and managing cloud-init for RHEL 8 - Red Hat Customer Portal
* vsphere - what is the linux file location where the cloud-init user ...
NEW QUESTION # 54
Which command within virsh lists the virtual machines that are running on the current host?
- A. list-all
- B. I view
- C. list
- D. show
- E. list-vm
Answer: C
Explanation:
Explanation
The command virsh list is used to list all running domains (VMs) on the current host. The command virsh list
--all can be used to list both active and inactive domains. The other options are not valid virsh commands. The command virsh list is a basic command that lists all running domains (VMs). You can also list all configured VMs by adding the --all option. This is useful if you want to see all VMs configured in the target hypervisor that you can use on subsequent commands1. References:
* 1: 8 Linux virsh subcommands for managing VMs on the command line | Enable Sysadmin.
NEW QUESTION # 55
Which file in acgroupdirectory contains the list of processes belonging to thiscgroup?
- A. members
- B. procs
- C. casks
- D. pids
- E. subjects
Answer: B
NEW QUESTION # 56
What does IaaS stand for?
- A. Intelligence as a Service
- B. Information as a Service
- C. Infrastructure as a Service
- D. Instances as a Service
- E. Integration as a Service
Answer: C
Explanation:
Explanation
IaaS is a type of cloud computing service that offers essential compute, storage, and networking resources on demand, on a pay-as-you-go basis. IaaS is one of the four types of cloud services, along with software as a service (SaaS), platform as a service (PaaS), and serverless12. IaaS eliminates the need for enterprises to procure, configure, or manage infrastructure themselves, and they only pay for what they use23. Some examples of IaaS providers are Microsoft Azure, Google Cloud, and Amazon Web Services.
NEW QUESTION # 57
Which of the following statements are true regarding a Pod in Kubernetes? (Choose two.)
- A. systemd is used to manage individual Pods on the Kubernetes nodes.
- B. When a Pod fails, Kubernetes restarts the Pod on another node by default.
- C. Pods are always created automatically and cannot be explicitly configured.
- D. A Pod is the smallest unit of workload Kubernetes can run.
- E. All containers of a Pod run on the same node.
Answer: D,E
NEW QUESTION # 58
How can data be shared between several virtual machines running on the same Linux-based host system?
- A. By writing data to the file system since all virtual machines on the same host system use the same file system.
- B. By using a network file system or file transfer protocol.
- C. By attaching the same virtual hard disk to all virtual machines and activating EXT4 sharing extensions on it.
- D. By mounting other virtual machines' file systems from /dev/virt-disks/remote/.
- E. By setting up a ramdisk in one virtual machine and mounting it using its UUID in the other VMs.
Answer: B
NEW QUESTION # 59
......
Earning the LPIC-3 certification can help IT professionals advance their careers and demonstrate their expertise in Linux and open source technologies. The LPIC-3 certification is recognized globally and is highly valued by employers in a wide range of industries. It is also a prerequisite for some advanced certifications, such as the Red Hat Certified Architect (RHCA).
Latest 305-300 Exam Dumps - Valid and Updated Dumps: https://www.exam4tests.com/305-300-valid-braindumps.html
Fully Updated 305-300 Dumps - 100% Same Q&A In Your Real Exam: https://drive.google.com/open?id=1EZHl8jCFooHuNNtN-2YEqEbW1hkgI-P1