Online 305-300 Test Brain Dump Question and Test Engine [Q12-Q30]

Share

Online 305-300 Test Brain Dump Question and Test Engine

Real Lpi 305-300 Exam Dumps with Correct 62 Questions and Answers

NEW QUESTION # 12
What is the default provider of Vagrant?

  • A. vmware_workstation
  • B. lxc
  • C. docker
  • D. virtualbox
  • E. hyperv

Answer: D

Explanation:
Explanation
Vagrant is a tool that allows users to create and configure lightweight, reproducible, and portable development environments. Vagrant supports multiple providers, which are the backends that Vagrant uses to create and manage the virtual machines. By default, VirtualBox is the default provider for Vagrant. VirtualBox is still the most accessible platform to use Vagrant: it is free, cross-platform, and has been supported by Vagrant for years. With VirtualBox as the default provider, it provides the lowest friction for new users to get started with Vagrant. However, users can also use other providers, such as VMware, Hyper-V, Docker, or LXC, depending on their preferences and needs. To use another provider, users must install it as a Vagrant plugin and specify it when running Vagrant commands. Users can also change the default provider by setting the VAGRANT_DEFAULT_PROVIDER environmental variable. References:
* Default Provider - Providers | Vagrant | HashiCorp Developer1
* Providers | Vagrant | HashiCorp Developer2
* How To Set Default Vagrant Provider to Virtualbox3


NEW QUESTION # 13
FILL BLANK
Which subcommand ofvirshopens the XML configuration of a virtual network in an editor in order to make changes to that configuration? (Specify ONLY the subcommand without any parameters.)

Answer:

Explanation:
net-edit


NEW QUESTION # 14
After creating a new Docker network using the following command:
docker network create --driver bridge isolated_nw
which parameter must be added todocker createin order to attach a container to the network?

  • A. --ethernet=isolated_nw
  • B. --eth0=isolated_nw
  • C. --attach=isolated_nw
  • D. --alias=isolated_nw
  • E. --network=isolated_nw

Answer: E


NEW QUESTION # 15
Ifdocker stackis to be used to run a Docker Compose file on a Docker Swarm, how are the images referenced in the Docker Compose configuration made available on the Swarm nodes?

  • A. docker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
  • B. docker stack transfers the image from its local Docker cache to each Swarm node.
  • C. docker stack builds the images locally and copies them to only those Swarm nodes which run the service.
  • D. docker stack triggers the build process for the images on all nodes of the Swarm.
  • E. docker stack instructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.

Answer: E

Explanation:
Explanation
Docker stack is a command that allows users to deploy and manage a stack of services on a Docker Swarm cluster. A stack is a group of interrelated services that share dependencies and can be orchestrated and scaled together. A stack is typically defined by a Compose file, which is a YAML file that describes the services, networks, volumes, and other resources of the stack. To use docker stack to run a Compose file on a Swarm, the user must first create and initialize a Swarm cluster, which is a group of machines (nodes) that are running the Docker Engine and are joined into a single entity. The Swarm cluster has one or more managers, which are responsible for maintaining the cluster state and orchestrating the services, and one or more workers, which are the nodes that run the services.
When the user runs docker stack deploy with a Compose file, the command parses the file and creates the services as specified. However, docker stack does not build or upload the images referenced in the Compose file to any registry. Instead, it instructs the Swarm nodes to pull the images from a registry, which can be the public Docker Hub or a private registry. The user must ensure that the images are available in the registry before deploying the stack, otherwise the deployment will fail. The user can use docker build and docker push commands to create and upload the images to the registry, or use an automated build service such as Docker Hub or GitHub Actions. The user must also make sure that the image names and tags in the Compose file match the ones in the registry, and that the Swarm nodes have access to the registry if it is private. By pulling the images from a registry, docker stack ensures that the Swarm nodes have the same and latest version of the images, and that the images are distributed across the cluster in an efficient way.
The other options are not correct. Docker stack does not build the images locally or on the Swarm nodes, nor does it copy or transfer the images to the Swarm nodes. Dockerstack also does not pass the images to the Swarm master, as this would create a bottleneck and a single point of failure. Docker stack relies on the registry as the source of truth for the images, and delegates the image pulling to the Swarm nodes. References:
* Deploy a stack to a swarm | Docker Docs1
* docker stack deploy | Docker Docs2
* docker build | Docker Docs3
* docker push | Docker Docs4


NEW QUESTION # 16
How does Packer interact with system images?

  • A. 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.
  • B. 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.
  • 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 downloads and extracts an image in order to make changes to the image's file system, repack the modified image and upload it again.

Answer: A

Explanation:
Explanation
Packer is a tool that automates the creation of identical machine images for multiple platforms from a single source configuration. Packer works by creating an instance based on a source image, which is a pre-existing image that serves as a starting point. Packer then connects to the instance through a network connection, such as SSH or WinRM, and runs various commands and scripts to install and configure software within the instance. Packer then shuts down the instance and creates a new system image from it, which can be used to launch new instances. Packer supports many platforms, such as AWS, Azure, VMware, Docker, and others.
Packer does not install any software or run any daemon within the target image, nor does it periodically connect to the running instances to re-apply the template. Packer also does not modify the source image directly, but creates a new image from the modified instance. References:
* Packer by HashiCorp
* HashiCorp Packer - Build Automated Machine Images
* Introduction | Packer | HashiCorp Developer


NEW QUESTION # 17
In order to use the optiondom0_memto limit the amount of memory assigned to the Xen Domain-0, where must this option be specified?

  • A. In its Makefile, when Xen is built.
  • B. In the configuration file /etc/xen/Domain-0.cfg, when Xen starts.
  • C. In any of Xen's global configuration files.
  • D. In its .config file, when the Domain-0 kernel is built.
  • E. In the bootloader configuration, when Xen is booted.

Answer: E


NEW QUESTION # 18
What is the purpose ofcloud-init?

  • A. Assign an laaS instance to a specific computing node within a cloud.
  • B. Prepare the generic image of an laaS instance to fit a specific instance's configuration.
  • C. Standardize the configuration of infrastructure services, such as load balancers or virtual firewalls in a cloud.
  • D. Orchestrate the creation and start of multiple related laaS instances.
  • E. Replace common Linux inic systems, such as systemd or SysV init.

Answer: B

Explanation:
Explanation
Cloud-init is a tool that processes configurations and runs through five stages during the initial boot of Linux VMs in a cloud. It allows users to customize a Linux VM as it boots for the first time, by applying user data to the instance. User data can include scripts, commands, packages, files, users, groups, SSH keys, and more.
Cloud-init can also interact with various cloud platforms and services, such as Azure, AWS, OpenStack, and others. The purpose of cloud-init is to prepare the generic image of an laaS instance to fit a specific instance's configuration, such as hostname, network, security, and application settings. References:
* Cloud-init - The standard for customising cloud instances
* Understanding cloud-init - Azure Virtual Machines
* Tutorial - Customize a Linux VM with cloud-init in Azure - Azure Virtual Machines


NEW QUESTION # 19
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 # 20
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 host system only if the console of a virtual machine will be connected to a physical console of the host system
  • B. It must be loaded into the kernel of each virtual machine to provide Para virtualization which is required by QEMU.
  • C. It must be loaded into the Kernel of the host system in order to use the visualization extensions of the host system's CPU
  • D. 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
  • 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: C


NEW QUESTION # 21
How can data be shared between several virtual machines running on the same Linux-based host system?

  • A. By using a network file system or file transfer protocol.
  • B. By attaching the same virtual hard disk to all virtual machines and activating EXT4 sharing extensions on it.
  • C. By setting up a ramdisk in one virtual machine and mounting it using its UUID in the other VMs.
  • D. By writing data to the file system since all virtual machines on the same host system use the same file system.
  • E. By mounting other virtual machines' file systems from /dev/virt-disks/remote/.

Answer: A


NEW QUESTION # 22
Which of the following commands moves the libvirt domainweb1from the current host system to the host systemhost2?

  • A. virsh pool-add host2 web1
  • B. virsh node-update host1=-dom:web1 host2=+dom:web1
  • C. virsh patch web1 .Domain.Node=host2
  • D. virsh cp .:web1 host2:web1
  • E. virsh migrate web1 qemu+ssh://host2/system

Answer: E


NEW QUESTION # 23
Which of the following are true regarding the CPU of a QEMU virtual machine? (Choose two.)

  • A. Each QEMU virtual machine can only have one CPU with one core.
  • B. The CPU architecture of a QEMU virtual machine is independent of the host system's architecture.
  • C. QEMU uses the concept of virtual CPUs to map the virtual machines to physical CPUs.
  • D. QEMU virtual machines support multiple virtual CPUs in order to run SMP systems.
  • E. For each QEMU virtual machine, one dedicated physical CPU core must be reserved.

Answer: B,D


NEW QUESTION # 24
FILL BLANK
What LXC command lists containers sorted by their CPU, block I/O or memory consumption? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
lxc-top
Explanation
LXD supports the following network interface types for containers: macvlan, bridged, physical, sriov, and ovn1. Macvlan creates a virtual interface on the host that is connected to the same network as the parent interface2. Bridged connects the container to a network bridge that acts as a virtual switch3. Physical attaches the container to a physical network interface on the host2. Ipsec and wifi are not valid network interface types for LXD containers. References:
* 1: Bridge network - Canonical LXD documentation
* 2: How to create a network - Canonical LXD documentation
* 4: LXD containers and networking with static IP - Super User


NEW QUESTION # 25
If aDockerfilecontains the following lines:
WORKDIR /
RUN cd /tmp
RUN echo test > test
where is the filetestlocated?

  • A. /tmp/test on the system running docker build.
  • B. /ting/test within the container image.
  • C. /test within the container image.
  • D. test in the directory holding the Dockerf ile.
  • E. /root/tesc within the container image.

Answer: C


NEW QUESTION # 26
In order to use the optiondom0_memto limit the amount of memory assigned to the Xen Domain-0, where must this option be specified?

  • A. In its Makefile, when Xen is built.
  • B. In the configuration file /etc/xen/Domain-0.cfg, when Xen starts.
  • C. In any of Xen's global configuration files.
  • D. In its .config file, when the Domain-0 kernel is built.
  • E. In the bootloader configuration, when Xen is booted.

Answer: E

Explanation:
Explanation
The option dom0_mem is used to set the initial and maximum memory size of the Domain-0, which is the privileged domain that starts first and manages the unprivileged domains (DomU) in Xen. The option dom0_mem must be specified in the bootloader configuration, such as GRUB or GRUB2, when Xen is booted.
This ensures that the Domain-0 kernel can allocate memory for storing memory metadata and network related parameters based on the boot time amount of memory. If the option dom0_mem is not specified in the bootloader configuration, the Domain-0 will use all the available memory on the host system by default, which may cause performance and security issues. References:
* Managing Xen Dom0s CPU and Memory
* Xen Project Best Practices
* Dom0 Memory - Where It Has Not Gone


NEW QUESTION # 27
What is the default provider of Vagrant?

  • A. vmware_workstation
  • B. lxc
  • C. docker
  • D. virtualbox
  • E. hyperv

Answer: D


NEW QUESTION # 28
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. The hypervisor provides each virtual machine with hardware of a defined capacity that limits the resources of the virtual machine.
  • 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. It is up to the virtual machine to use its assigned hardware resources and create, for example, an arbitrary amount of network sockets.

Answer: B,E

Explanation:
Explanation
Resource management for full virtualization is the process of allocating and controlling the physical resources of the host system to the virtual machines running on it. The hypervisor is the software layer that performs this task, by providing each virtual machine with a virtual hardware of a defined capacity that limits the resources of the virtual machine. For example, the hypervisor can specify how many virtual CPUs, how much memory, and how much disk space each virtual machine can use. The hypervisor can also enforce resource isolation and prioritization among the virtual machines, to ensure that they do not interfere with each other or consume more resources than they are allowed to. The hypervisor cannot provide fine-grained limits to internal elements of the guest operating system, such as the number of processes, because the hypervisor does not have access to the internal state of the guest operating system. The guest operating system is responsible for managing its own resources within the virtual hardware provided by the hypervisor. For example, the guest operating system can create an arbitrary amount of network sockets, as long as it does not exceed the network bandwidth allocated by the hypervisor. Full virtualization can pose limits to virtual machines, and does not always assign the host system's resources in a first-come-first-serve manner. The hypervisor can use various resource management techniques, such as reservation, limit, share, weight, and quota, to allocate and control the resources of the virtual machines. The hypervisor can also use resource scheduling algorithms, such as round-robin, fair-share, or priority-based, to distribute the resources among the virtual machines according to their needs and preferences. All processes created within the virtual machines are not transparently and equally scheduled in the host system for CPU and I/O usage. The hypervisor can use different scheduling policies, such as proportional-share, co-scheduling, or gang scheduling, to schedule the virtual CPUs of the virtual machines on the physical CPUs of the host system. The hypervisor can alsouse different I/O scheduling algorithms, such as deadline, anticipatory, or completely fair queuing, to schedule the I/O requests of the virtual machines on the physical I/O devices of the host system. The hypervisor can also use different resource accounting and monitoring mechanisms, such as cgroups, perf, or sar, to measure and report the resource consumption and performance of the virtual machines. References:
* Oracle VM VirtualBox: Features Overview
* Resource Management as an Enabling Technology for Virtualization - Oracle
* Introduction to virtualization and resource management in IaaS | Cloud Native Computing Foundation


NEW QUESTION # 29
Which of the following services can QEMU provide in a user network? (Choose three.)

  • A. DHCP
  • B. BGP
  • C. AppleTalk
  • D. TFTP
  • E. CIFS

Answer: A,D

Explanation:
Explanation
QEMU can provide some network services in a user network, which is a mode of networking that does not require any administrator privilege to run. The user network uses the SLIRP TCP/IP emulator to create a virtual NAT'ted subnet, with a DHCP server started by QEMU that gives out IP addresses to the guest machines and puts the host on 10.0.2.21. QEMU can also provide a TFTP server in the user network, which can be used to boot the guest machines from a network image. The TFTP server can be configured with the
-tftp option2. QEMU does not provide BGP, CIFS, or AppleTalk services in the user network. BGP is a routing protocol that is used to exchange routing information between autonomous systems on the Internet3. CIFS is a file-sharing protocol that is used to access files and printers on a network4. AppleTalk is a deprecated network protocol suite that was used by Apple devices5. These services require more advanced networking features than the user network can offer, such as bridging, routing, or tunneling.
References:
* Documentation/Networking - QEMU
* QEMU/Networking - Wikibooks, open books for an open world
* Border Gateway Protocol - Wikipedia
* Common Internet File System - Wikipedia
* AppleTalk - Wikipedia


NEW QUESTION # 30
......

Valid 305-300 Test Answers & Lpi 305-300 Exam PDF: https://www.real4dumps.com/305-300_examcollection.html

Lpi 305-300 Certification Real 2025 Mock Exam: https://drive.google.com/open?id=1vblEIBfC7IhYYQQlx8qbiOoagAGSZTdX