
305-300試験問題集、305-300練習テスト問題
PDF問題(2024年最新)実際のLpi 305-300試験問題
Lpi 305-300 (LPIC-3 Exam 305: Virtualization and Containerization) 認定試験は、ITプロフェッショナルの仮想化およびコンテナ化技術に関する知識とスキルをテストするために設計されています。この認定試験は、これらの分野で経験を持ち、専門知識をさらに深めたい個人を対象としています。この試験は、インストール、設定、管理、およびトラブルシューティングを含む仮想化およびコンテナ化に関連するさまざまなトピックをカバーしています。
質問 # 34
Which file format is used by libvirt to store configuration data?
- A. Text files containing key/value pairs
- B. SQLite databases
- C. INI-style text files
- D. Java-like properties files
- E. XML files
正解:E
質問 # 35
What is the purpose of capabilities in the context of container virtualization?
- A. Restrict the disk space a container can consume.
- B. Allow regular users to start containers with elevated permissions.
- C. Map potentially dangerous system calls to an emulation layer provided by the container virtualization.
- D. Enable memory deduplication to cache files which exist in multiple containers.
- E. Prevent processes from performing actions which might infringe the container.
正解:E
解説:
Explanation
Capabilities are a way of implementing fine-grained access control in Linux. They are a set of flags that define the privileges that a process can have. By default, a process inherits the capabilities of its parent, but some capabilities can be dropped or added by the process itself or by the kernel. In the context of container virtualization, capabilities are used to prevent processes from performing actions that might infringe the container, such as accessing the host's devices, mounting filesystems, changing the system time, or killing other processes. Capabilities allow containers to run with a reduced set of privileges, enhancing the security and isolation of the container environment. For example, Docker uses a default set of capabilities that are granted to the processes running inside a container, and allows users to add or drop capabilities as needed12.
References:
* Capabilities | Docker Documentation1
* Linux Capabilities: Making Them Work in Containers2
質問 # 36
Which file format is used by libvirt to store configuration data?
- A. Text files containing key/value pairs
- B. SQLite databases
- C. INI-style text files
- D. Java-like properties files
- E. XML files
正解:E
解説:
Explanation
Libvirt uses XML files to store configuration data for objects in the libvirt API, such as domains, networks, storage, etc. This allows for ease of extension in future releases and validation of documents prior to usage.
Libvirt does not use any of the other file formats listed in the question. References:
* libvirt: XML Format
* LPIC-3 Virtualization and Containerization: Topic 305.1: Virtualization Concepts and Theory
質問 # 37
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 requires dedicated shared storage, as it cannot store virtual machine disk images locally on block devices of the virtualization host.
- C. It is available for Linux only and requires the source code of the currently running Linux kernel to be available.
- D. It provides both a graphical user interface and command line tools to administer virtual machines.
- E. It is a hypervisor designed as a special kernel that is booted before the first regular operating system starts.
正解:D
質問 # 38
Which of the following resources can be limited by libvirt for a KVM domain? (Choose two.)
- A. Amount of CPU lime
- B. Number of available files
- C. Number of running processes
- D. Size of available memory
- E. File systems allowed in the domain
正解:A、D
解説:
Explanation
Libvirt is a toolkit that provides a common API for managing different virtualization technologies, such as KVM, Xen, LXC, and others. Libvirt allows users to configure and control various aspects of a virtual machine (also called a domain), such as its CPU, memory, disk, network, and other resources. Among the resources that can be limited by libvirt for a KVM domain are:
* Amount of CPU time: Libvirt allows users to specify the number of virtual CPUs (vCPUs) that a domain can use, as well as the CPU mode, model, topology, and tuning parameters. Users can also set the CPU shares, quota, and period to control the relative or absolute amount of CPU time that a domain can consume. Additionally, users can pin vCPUs to physical CPUs or NUMA nodes to improve performance and isolation. These settings can be configured in the domain XML file under the <cpu> and <cputune> elements12.
* Size of available memory: Libvirt allows users to specify the amount of memory that a domain can use, as well as the memory backing, tuning, and NUMA node parameters. Users can also set the memory hard and soft limits, swap hard limit, and minimum guarantee to control the memory allocation and reclaim policies for a domain. These settings can be configured in the domain XML file under the <memory>, <memoryBacking>, and <memtune> elements13.
The other resources listed in the question are not directly limited by libvirt for a KVM domain. File systems allowed in the domain are determined by the disk and filesystem devices that are attached to the domain, which can be configured in the domain XML file under the <disk> and <filesystem> elements14. Number of running processes and number of available files are determined by the operating system and the file system of the domain, which are not controlled by libvirt.
References:
* libvirt: Domain XML format
* CPU Allocation
* Memory Allocation
* Hard drives, floppy disks, CDROMs
質問 # 39
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 each virtual machine to provide Para virtualization which is required by QEMU.
- B. It must be loaded into the Kernel of the host system in order to use the visualization extensions of the host system's CPU
- C. 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
- 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.
正解:B
解説:
Explanation
The Linux kernel module that must be loaded in order to use QEMU with hardware virtualization extensions is KVM (Kernel-based Virtual Machine). KVM is a full virtualization solution that allows a user space program (such as QEMU) to utilize the hardware virtualization features of various processors (such as Intel VT or AMD-V). KVM consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. KVM must be loaded into the kernel of the host system in order to use the virtualization extensions of the host system's CPU. This enables QEMU to run multiple virtual machines with unmodified Linux or Windows images, each with private virtualized hardware. KVM is integrated with QEMU, so there is no need to load it into the kernel of each virtual machine or the first virtual machine. KVM also does not require paravirtualization, which is a technique that modifies the guest operating system to communicate directly with the hypervisor, bypassing the emulation layer. References:
* Features/KVM - QEMU
* Kernel-based Virtual Machine
* KVM virtualization on Red Hat Enterprise Linux 8 (2023)
質問 # 40
Virtualization of which hardware component is facilitated by CPUs supporting nested page table extensions, such as Intel Extended Page Table (EPT) or AMD Rapid Virtualization Indexing (RVI)?
- A. Network Interfaces
- B. Host Bus Adapters
- C. Hard Disks
- D. Memory
- E. IO Cache
正解:D
解説:
Explanation
Nested page table extensions, such as Intel Extended Page Table (EPT) or AMD Rapid Virtualization Indexing (RVI), are hardware features that facilitate the virtualization of memory. They allow the CPU to perform the translation of guest virtual addresses to host physical addresses in a single step, without the need for software-managed shadow page tables. This reduces the overhead and complexity of memory management for virtual machines, and improves their performance and isolation. Nested page table extensions do not directly affect the virtualization of other hardware components, such as network interfaces, host bus adapters, hard disks, or IO cache.
References:
* Second Level Address Translation - Wikipedia
* c - What is use of extended page table? - Stack Overflow
* Hypervisor From Scratch - Part 4: Address Translation Using Extended ...
質問 # 41
How does Packer interact with system images?
- A. 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.
- B. Packer has to be installed within the target image and is executed during the image's first boot in order to execute preparation tasks.
- C. 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.
- D. 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.
- 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.
正解:C
解説:
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
質問 # 42
Which functionality is provided by Vagrant as well as by Docker? (Choose three.)
- A. Both can share directories from the host file system to a guest.
- B. Both can download required base images.
- C. Both start system images as virtual machines instead of containers bv default.
- D. Both start system images as containers instead of virtual machines by default.
- E. Both can apply changes to a base image.
正解:A、B、E
質問 # 43
Which file in acgroupdirectory contains the list of processes belonging to thiscgroup?
- A. procs
- B. pids
- C. subjects
- D. casks
- E. members
正解:A
質問 # 44
Which CPU flag indicates the hardware virtualization capability on an AMD CPU?
- A. VIRT
- B. VMX
- C. HVM
- D. PVM
- E. SVM
正解:E
質問 # 45
What is the purpose of the commandvagrant init?
- A. It executes a provisioning tool in a running box.
- B. It downloads a Vagrant box.
- C. It creates a Vagrant configuration file.
- D. It installs Vagrant on a Linux host.
- E. It starts a Vagrant box.
正解:C
解説:
Explanation
The command vagrant init is used to initialize the current directory to be a Vagrant environment by creating an initial Vagrantfile if one does not already exist1. The Vagrantfile contains the configuration settings for the Vagrant box, such as the box name, box URL, network settings, synced folders, provisioners, etc. The command vagrant init does not execute any provisioning tool, start any box, install Vagrant on a Linux host, or download any box. Those actions are performed by other Vagrant commands, such as vagrant provision, vagrant up, vagrant install, and vagrant box add, respectively. References:
* 1: vagrant init - Command-Line Interface | Vagrant | HashiCorp Developer
質問 # 46
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 any of Xen's global configuration files.
- C. In its .config file, when the Domain-0 kernel is built.
- D. In the configuration file /etc/xen/Domain-0.cfg, when Xen starts.
- E. In the bootloader configuration, when Xen is booted.
正解:E
質問 # 47
Which directory is used bycloud-initto store status information and configuration information retrieved from external sources?
- A. /tmp/.cloud/
- B. /opt/cloud/var/
- C. /etc/cloud-init/cache/
- D. /proc/sys/cloud/
- E. /var/lib/cloud/
正解:E
解説:
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 ...
質問 # 48
Which of the following types of guest systems does Xen support? (Choose two.)
- A. Container virtualized guests
- B. Fully virtualized guests
- C. Paravirtualized quests (PVI
- D. Emulated guests
- E. Foreign architecture guests (FA)
正解:B、C
解説:
Explanation
Xen supports two types of guest systems: paravirtualized guests (PV) and fully virtualized guests (HVM).
* Paravirtualized guests (PV) are guests that have been modified to run on the Xen hypervisor. They use a special kernel that communicates with the hypervisor through hypercalls, and use paravirtualized drivers
* for I/O devices. PV guests can run faster and more efficiently than HVM guests, but they require the guest operating system to be ported to Xen and to support the Xen ABI12.
* Fully virtualized guests (HVM) are guests that run unmodified operating systems on the Xen hypervisor.
They use hardware virtualization extensions, such as Intel VT-x or AMD-V, to create a virtual platform for the guest. HVM guests can run any operating system that supports the hardware architecture, but they incur more overhead and performance penalties than PV guests. HVM guests can also use paravirtualized drivers for I/O devices to improve their performance12.
The other options are not correct. Xen does not support foreign architecture guests (FA), emulated guests, or container virtualized guests.
* Foreign architecture guests (FA) are guests that run on a different hardware architecture than the host.
For example, running an ARM guest on an x86 host. Xen does not support this type of virtualization, as it would require emulation or binary translation, which are very complex and slow techniques3.
* Emulated guests are guests that run on a software emulator that mimics the hardware of the host or another platform. For example, running a Windows guest on a QEMU emulator. Xen does not support this type of virtualization, as it relies on the emulator to provide the virtual platform, not the hypervisor. Xen can use QEMU to emulate some devices for HVM guests, but not the entire platform14.
* Container virtualized guests are guests that run on a shared kernel with the host and other guests, using namespaces and cgroups to isolate them. For example, running a Linux guest on a Docker container. Xen does not support this type of virtualization, as it requires the guest operating system to be compatible with the host kernel, and does not provide the same level of isolation and security as hypervisor-based virtualization56.
References:
* Xen Project Software Overview - Xen
* Xen ARM with Virtualization Extensions - Xen
* Xen Project Beginners Guide - Xen
* QEMU - Xen
* Docker overview | Docker Documentation
* What is a Container? | App Containerization | VMware
質問 # 49
Which of the following types of guest systems does Xen support? (Choose two.)
- A. Container virtualized guests
- B. Fully virtualized guests
- C. Paravirtualized quests (PVI
- D. Emulated guests
- E. Foreign architecture guests (FA)
正解:B、C
質問 # 50
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. A Pod is the smallest unit of workload Kubernetes can run.
- C. Pods are always created automatically and cannot be explicitly configured.
- D. When a Pod fails, Kubernetes restarts the Pod on another node by default.
- E. All containers of a Pod run on the same node.
正解:B、E
質問 # 51
What is the purpose of thekubeletservice in Kubernetes?
- A. Store and replicate Kubernetes configuration data.
- B. Manage permissions of users when interacting with the Kubernetes API.
- C. Provide a command line interface to manage Kubernetes.
- D. Run containers on the worker nodes according to the Kubernetes configuration.
- E. Build a container image as specified in a Dockerfile.
正解:D
質問 # 52
Which command within virsh lists the virtual machines that are running on the current host?
- A. list-vm
- B. list-all
- C. show
- D. I view
- E. list
正解:E
解説:
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.
質問 # 53
FILL BLANK
What command is used to run a process in a new Linux namespace? (Specify ONLY the command without any path or parameters.)
正解:
解説:
unshare
質問 # 54
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 each virtual machine to provide Para virtualization which is required by QEMU.
- B. It must be loaded into the Kernel of the host system in order to use the visualization extensions of the host system's CPU
- C. 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
- 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.
正解:B
質問 # 55
......
更新された2024年05月合格させる305-300試験リアル練習テスト問題:https://jp.fast2test.com/305-300-premium-file.html
問題集返金保証付きの305-300問題集には90%オフ:https://drive.google.com/open?id=1RKOl6pYJIs1vJ2GWeRlHTthfziltuxPf