
Lpi 305-300テストエンジン練習テスト問題、試験問題集
100%無料305-300日常練習試験には62問があります
LPI 305-300試験は、仮想化とコンテナ化に焦点を当てた認定テストです。この試験は、IT業界を急速に変革しているこれら2つの重要な技術で個人の知識とスキルをテストするように設計されています。この認定は、Linuxシステムをよく理解し、仮想化とコンテナ化の専門知識を獲得しようとしている経験豊富な専門家を対象としています。
Lpi 305-300試験は、Linux管理に関する堅固な理解を持ち、仮想化およびコンテナ化の専門知識を開発し、キャリアアップを目指す経験豊富なLinux専門家を対象としています。候補者は、Linuxシステムに5年以上の経験を持ち、ネットワーキングおよびストレージ技術について強固な理解を持っている必要があります。
LPIC-3試験305:仮想化とコンテナ化は、インストールと構成、管理とメンテナンス、セキュリティ、トラブルシューティングなど、仮想化とコンテナ化に関連するさまざまなトピックをカバーしています。この試験は、複数の選択と空白の質問、および候補者が現実世界の状況で知識とスキルを実証することを要求するシミュレーションとシナリオで構成されています。
質問 # 11
Which of the following services can QEMU provide in a user network? (Choose three.)
- A. BGP
- B. TFTP
- C. AppleTalk
- D. DHCP
- E. CIFS
正解:B、D、E
質問 # 12
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
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
質問 # 13
Which of the following statements about the commandlxc-checkpointis correct?
- A. It only works on stopped containers.
- B. It creates a container image based on an existing container.
- C. It doubles the memory consumption of the container.
- D. It writes the status of the container to a file.
- E. It creates a clone of a container.
正解:D
解説:
Explanation
The command lxc-checkpoint is used to checkpoint and restore containers. Checkpointing a container means saving the state of the container, including its memory, processes, file descriptors, and network connections, to a file or a directory. Restoring a container means resuming the container from the saved state, as if it was never stopped. Checkpointing and restoring containers can be useful for various purposes, such as live migration, backup, debugging, or snapshotting. The command lxc-checkpoint has the following syntax:
lxc-checkpoint {-n name} {-D path} [-r] [-s] [-v] [-d] [-F]
The options are:
* -n name: Specify the name of the container to checkpoint or restore.
* -D path: Specify the path to the file or directory where the checkpoint data is dumped or restored.
* -r, --restore: Restore the checkpoint for the container, instead of dumping it. This option is incompatible with -s.
* -s, --stop: Optionally stop the container after dumping. This option is incompatible with -r.
* -v, --verbose: Enable verbose criu logging. Only available when providing -r.
* -d, --daemon: Restore the container in the background (this is the default). Only available when providing -r.
* -F, --foreground: Restore the container in the foreground. Only available when providing -r.
The command lxc-checkpoint uses the CRIU (Checkpoint/Restore In Userspace) tool to perform the checkpoint and restore operations. CRIU is a software that can freeze a running application (or part of it) and checkpoint it to a hard drive as a collection of files. It can then use the files to restore and run the application from the point it was frozen at1.
The other statements about the command lxc-checkpoint are not correct. It does not create a clone or an image of a container, nor does it double the memory consumptionof the container. It can work on both running and stopped containers, depending on the options provided. References:
* Linux Containers - LXC - Manpages - lxc-checkpoint.12
* lxc-checkpoint(1) - Linux manual page - man7.org3
* CRIU4
質問 # 14
Which of the following kinds of data cancloud-initprocess directly from user-data? (Choose three.)
- A. ISO images to boot from
- B. Base64-encoded binary files to execute
- C. Lists of URLs to import
- D. Shell scripts to execute
- E. cloud-config declarations in YAML
正解:C、D、E
質問 # 15
Which of the following resources can be limited by libvirt for a KVM domain? (Choose two.)
- A. Size of available memory
- B. File systems allowed in the domain
- C. Amount of CPU lime
- D. Number of available files
- E. Number of running processes
正解:A、C
解説:
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
質問 # 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 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 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.
- D. 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.
- E. 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.
正解:A
解説:
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
質問 # 17
What is the purpose of a .dockerignore file?
- A. It must be placed in the top level directory of volumes that Docker should never attach automatically to a container
- B. It lists files existing in a Docker image which should be excluded when building a derivative image.
- C. It specifies which parts of a Dockerfile should be ignored when building a Docker image.
- D. It exists in the root file system of containers that should ignore volumes and ports provided by Docker.
- E. It specifies files that Docker does not submit to the Docker daemon when building a Docker image
正解:E
質問 # 18
What kind of virtualization is implemented by LXC?
- A. Application containers
- B. CPU emulation
- C. System containers
- D. Hardware containers
- E. Paravirtualization
正解:C
質問 # 19
Which file in acgroupdirectory contains the list of processes belonging to thiscgroup?
- A. casks
- B. members
- C. pids
- D. procs
- E. subjects
正解:D
解説:
Explanation
The file procs in a cgroup directory contains the list of processes belonging to this cgroup. Each line in the file shows the PID of a process that is a member of the cgroup. A process can be moved to a cgroup by writing its PID into the cgroup's procs file. For example, to move the process with PID 24982 to the cgroup cg1, the following command can be used: echo 24982 > /sys/fs/cgroup/cg1/procs1. The file procs is different from the file tasks, which lists the threads belonging to the cgroup. The file procs can be used to move all threads in a thread group at once, while the file tasks can be used to move individual threads2. References:
* Creating and organizing cgroups cgroup2 - GitHub Pages
* Control Groups - The Linux Kernel documentation
質問 # 20
A clone of a previously used virtual machine should be created. All VM specific information, such as user accounts, shell histories and SSH host keys should be removed from the cloned disk image. Which of the following tools can perform these tasks?
- A. virc-reset
- B. vire-wipe
- C. sysprep
- D. virt-sparsi
- E. virt-rescue
- F. virt-svspre
正解:C
解説:
Explanation
Sysprep is a tool that removes all your personal account and security information, and then prepares the machine to be used as an image. It is supported by Windows and some Linux distributions. It can also remove drivers and other machine-specific settings. Sysprep is required when creating a managed image outside of a gallery in Azure
https://learn.microsoft.com/en-us/azure/virtual-machines/generalize
質問 # 21
Which of the following commands lists all differences between the disk images vm1-snap.img and vm1.img?
- A. virt-diff -a vm1-snap.img -A vm1.img
- B. virt-delta -a vm1-snap.img -A vm1.img
- C. virt-cmp -a vm1-snap.img -A vm1.img
- D. virt-history -a vm1-snap.img -A vm1.img
- E. virt-cp-in -a vm1-snap.img -A vm1.img
正解:A
質問 # 22
Which command within virsh lists the virtual machines that are running on the current host?
- A. list-vm
- B. list-all
- C. list
- D. show
- E. I view
正解:C
質問 # 23
Which of the following statements are true about container-based virtualization? (Choose two.)
- A. Each container runs its own operating system kernel.
- B. Different containers may use different distributions of the same operating system.
- C. Linux does not support container-based virtualization because of missing kernel APIs.
- D. All containers run within the operating system kernel of the host system.
- E. Container-based virtualization relies on hardware support from the host system's CPU.
正解:B、D
解説:
Explanation
Container-based virtualization is a method of operating system-level virtualization that allows multiple isolated user spaces (containers) to run on the same host system1. Each container shares the same operating system kernel as the host, but has its own file system, libraries, and processes2. Therefore, the statements A and C are false, as containers do not run their own kernels or rely on hardware support from the CPU. The statement E is also false, as Linux does support container-based virtualization through various technologies, such as cgroups, namespaces, LXC, Docker, etc12. The statement B is true, as different containers may use different distributions of the same operating system, such as Debian, Ubuntu, Fedora, etc., as long as they are compatible with the host kernel3. The statement D is also true, as all containers run within the operating system kernel of the host system, which provides isolation and resource management for them12. References:
* 1: Containerization (computing) - Wikipedia.
* 2: What are containers? | Google Cloud.
* 3: What is Container-Based Virtualization? - StackHowTo.
質問 # 24
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.)
正解:
解説:
net-edit
Explanation
The subcommand of virsh that opens the XML configuration of a virtual network in an editor in order to make changes to that configuration is net-edit1. This subcommand takes the name or UUID of the network as a parameter and opens the network XML file in the default editor, which is specified by the $EDITOR shell variable1. The changes made to the network configuration are applied immediately after saving and exiting the editor1.
References:
* 1: net-edit - libvirt.
質問 # 25
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. IO Cache
- B. Network Interfaces
- C. Hard Disks
- D. Memory
- E. Host Bus Adapters
正解: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 ...
質問 # 26
What is the purpose of the commandvagrantinit?
- A. It executes a provisioning tool in a running box.
- B. It downloads a Vagrant box.
- C. It starts a Vagrant box.
- D. It installs Vagrant on a Linux host.
- E. It creates a Vagrant configuration file.
正解:E
質問 # 27
Which of the following are true regarding the CPU of a QEMU virtual machine? (Choose two.)
- A. The CPU architecture of a QEMU virtual machine is independent of the host system's architecture.
- B. QEMU uses the concept of virtual CPUs to map the virtual machines to physical CPUs.
- C. QEMU virtual machines support multiple virtual CPUs in order to run SMP systems.
- D. Each QEMU virtual machine can only have one CPU with one core.
- E. For each QEMU virtual machine, one dedicated physical CPU core must be reserved.
正解:A、C
質問 # 28
......
有効な問題最新版を試そう305-300テスト解釈305-300有効な試験ガイド:https://www.goshiken.com/Lpi/305-300-mondaishu.html
305-300試験資料Lpi学習ガイド:https://drive.google.com/open?id=17eyfgCq6xy1o02JyHz5X1_LkmYhzrlRx