
完全版305-300練習テスト62特別な問題と解答が待ってます!
LPIC-3問題集で305-300試験完全版問題で試験学習ガイド
この試験は、特にLinuxおよびオープンソーステクノロジーで、ITバックグラウンドが強い専門家を対象としています。システム管理者、ネットワーク管理者、DevOpsエンジニア、および仮想化とコンテナ化のキャリアを促進したいクラウドアーキテクトにとって理想的です。認証は世界的に認識されており、ITプロフェッショナルの履歴書に貴重な追加です。クラウドコンピューティングと仮想化テクノロジーに対する需要の増加に伴い、この認定を取得することで、業界のIT専門家に多くの機会を開くことができます。
質問 # 13
In an IaaS cloud, what is a common method for provisioning new computing instances with an operating system and software?
- A. Each new instance contains a minimal live system running from a virtual CD as the basis from which the administrator deploys the target operating system.
- B. Each new instance is created based on an image file that contains the operating system as well as software and default configuration for a given purpose.
- C. Each new instance is a clone of another currently running instance that includes all the software, data and state of the original instance.
- D. Each new instance is connected to the installation media of a Linux distribution and provides access to the installer by logging in via SSH.
- E. Each new instance is connected via a VPN with the computer that started the provisioning and tries to PXE boot from that machine.
正解:B
質問 # 14
FILL BLANK
What LXC command starts a new process within a running LXC container? (Specify ONLY the command without any path or parameters.)
正解:
解説:
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
質問 # 15
What does IaaS stand for?
- A. Information as a Service
- B. Integration as a Service
- C. Infrastructure as a Service
- D. Instances as a Service
- E. Intelligence as a Service
正解:C
解説:
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.
質問 # 16
Which of the following statements are true about sparse images in the context of virtual machine storage?
(Choose two.)
- A. Sparse images allocate backend storage at the first usage of a block.
- B. Sparse images are automatically resized when their maximum capacity is about to be exceeded.
- C. Sparse images may consume an amount of space different from their nominal size.
- D. Sparse images are automatically shrunk when files within the image are deleted.
- E. Sparse images can only be used in conjunction with paravirtualization.
正解:A、C
解説:
Explanation
Sparse images are a type of virtual disk images that grow in size as data is written to them, but do not shrink when data is deleted from them. Sparse images may consume an amount of space different from their nominal size, which is the maximum size that the image can grow to. For example, a sparse image with a nominal size of 100 GB may only take up 20 GB of physical storage if only 20 GB of data is written to it. Sparse images allocate backend storage at the first usage of a block, which means that the physical storage is only used when the virtual machine actually writes data to a block. This can save storage space and improve performance, as the image does not need to be pre-allocated or zeroed out.
Sparse images are not automatically shrunk when files within the image are deleted, because the virtual machine does not inform the host system about the freed blocks. To reclaim the unused space, a special tool such as virt-sparsify1 or qemu-img2 must be used to compact the image. Sparse images can be used with both full virtualization and paravirtualization, as the type of virtualization does not affect the format of the disk image. Sparse images are not automatically resized when their maximum capacity is about to be exceeded, because this would require changing the partition table and the filesystem of the image, which is not a trivial task. To resize a sparse image, a tool such as virt-resize3 or qemu-img2 must be used to increase the nominal size and the filesystem size of the image. References: 1 (search for "virt-sparsify"), 2 (search for
"qemu-img"), 3 (search for "virt-resize").
質問 # 17
Which of the following commands executes a command in a running LXC container?
- A. lxc-accach
- B. lxc-run
- C. lxc-enter
- D. lxc-batch
- E. lxc-eval
正解:A
質問 # 18
Which file in acgroupdirectory contains the list of processes belonging to thiscgroup?
- A. casks
- B. members
- C. procs
- D. subjects
- E. pids
正解:C
質問 # 19
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 start system images as containers instead of virtual machines by default.
- C. Both can download required base images.
- D. Both can apply changes to a base image.
- E. Both start system images as virtual machines instead of containers bv default.
正解:A、C、D
解説:
* Both Vagrant and Docker can share directories from the host file system to a guest. This allows the guest to access files and folders from the host without copying them. Vagrant uses the config.vm.synced_folder option in the Vagrantfile to specify the shared folders1. Docker uses the -v or --volume flag in the docker run command to mount a host directory as a data volume in the container2.
* Both Vagrant and Docker can download required base images. Base images are the starting point for creating a guest environment. Vagrant uses the config.vm.box option in the Vagrantfile to specify the base image to use1. Docker uses the FROM instruction in the Dockerfile to specify the base image to use2. Both Vagrant and Docker can download base images from public repositories or local sources.
* Both Vagrant and Docker can apply changes to a base image. Changes are modifications or additions to the base image that customize the guest environment. Vagrant uses provisioners to run scripts or commands on the guest after it is booted1. Docker uses instructions in the Dockerfile to execute commands on the baseimage and create a new image2. Both Vagrant and Docker can save the changes to a new image or discard them after the guest is destroyed.
* Vagrant and Docker differ in how they start system images. Vagrant starts system images as virtual machines by default, using a provider such as VirtualBox, VMware, or Hyper-V1. Docker starts system images as containers by default, using the native containerization functionality on macOS, Linux, and Windows2. Containers are generally more lightweight and faster than virtual machines, but less secure and flexible. References: 1: Vagrant vs. Docker | Vagrant | HashiCorp Developer 2: Vagrant vs Docker:
Which Is Right for You? (Could Be Both) - Kinsta Web Development Tools
質問 # 20
Which of the following services can QEMU provide in a user network? (Choose three.)
- A. DHCP
- B. AppleTalk
- C. CIFS
- D. TFTP
- E. BGP
正解:A、D
解説:
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
質問 # 21
Which of the following statements are true about container-based virtualization? (Choose two.)
- A. All containers run within the operating system kernel of the host system.
- B. Each container runs its own operating system kernel.
- C. Linux does not support container-based virtualization because of missingkernel APIs.
- D. Different containers may use different distributions of the same operating system.
- E. Container-based virtualization relies on hardware support from the host system's CPU.
正解:A、D
質問 # 22
Which of the following commands moves the libvirt domainweb1from the current host system to the host systemhost2?
- A. virsh migrate web1 qemu+ssh://host2/system
- B. virsh cp .:web1 host2:web1
- C. virsh patch web1 .Domain.Node=host2
- D. virsh pool-add host2 web1
- E. virsh node-update host1=-dom:web1 host2=+dom:web1
正解:A
質問 # 23
Which of the following statements in aDockerfileleads to a container which outputs hello world? (Choose two.)
- A. ENTRYPOINT [ "echo hello world" ]
- B. ENTRYPOINT [ "echo", "hello", "world" ]
- C. ENTRYPOINT "echo", "Hello", "World*
- D. ENTRYPOINT echo Hello World
- E. ENTRYPOINT "echo Hello World"
正解:A、B
解説:
Explanation
The ENTRYPOINT instruction in a Dockerfile specifies the default command to run when a container is started from the image. The ENTRYPOINT instruction can be written in two forms: exec form and shell form.
The exec form uses a JSON array to specify the command and its arguments, such as [ "executable",
"param1", "param2" ]. The shell form uses a single string to specify the command and its arguments, such as
"executable param1 param2". The shell form is converted to the exec form by adding /bin/sh -c to the beginning of the command. Therefore, the following statements in a Dockerfile are equivalent and will lead to a container that outputs hello world:
ENTRYPOINT [ "echo hello world" ] ENTRYPOINT [ "/bin/sh", "-c", "echo hello world" ] ENTRYPOINT
"echo hello world" ENTRYPOINT [ "echo", "hello", "world" ] ENTRYPOINT [ "/bin/sh", "-c", "echo",
"hello", "world" ] ENTRYPOINT "echo hello world"
The other statements in the question are invalid or incorrect. The statement A. ENTRYPOINT "echo Hello World" is invalid because it uses double quotes to enclose the entire command, which is not allowed in the shell form. The statement D. ENTRYPOINT echo Hello World is incorrect because it does not use quotes to enclose the command, which is required in the shell form. The statement E. ENTRYPOINT "echo", "Hello",
"World" is invalid because it uses double quotes to separate the command and its arguments, which is not allowed in the exec form. References:
* Dockerfile reference | Docker Docs
* Using the Dockerfile ENTRYPOINT and CMD Instructions - ATA Learning
* Difference Between run, cmd and entrypoint in a Dockerfile
質問 # 24
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 start system images as containers instead of virtual machines by default.
- C. Both can download required base images.
- D. Both can apply changes to a base image.
- E. Both start system images as virtual machines instead of containers bv default.
正解:A、C、D
質問 # 25
Which of the following mechanisms are used by LXC and Docker to create containers? (Choose three.)
- A. File System Permissions
- B. Control Groups
- C. POSIXACLs
- D. Linux Capabilities
- E. Kernel Namespaces
正解:B、D、E
解説:
Explanation
LXC and Docker are both container technologies that use Linux kernel features to create isolated environments for running applications. The main mechanisms that they use are:
* Linux Capabilities: These are a set of privileges that can be assigned to processes to limit their access to certain system resources or operations. For example, a process with the CAP_NET_ADMIN capability can perform network administration tasks, such as creating or deleting network interfaces. Linux
* capabilities allow containers to run with reduced privileges, enhancing their security and isolation.
* Kernel Namespaces: These are a way of creating separate views of the system resources for different processes. For example, a process in a mount namespace can have a different file system layout than the host or other namespaces. Kernel namespaces allow containers to have their own network interfaces, process IDs, user IDs, and other resources, without interfering with the host or other containers.
* Control Groups: These are a way of grouping processes and applying resource limits and accounting to them. For example, a control group can limit the amount of CPU, memory, disk I/O, or network bandwidth that a process or a group of processes can use. Control groups allow containers to have a fair share of the system resources and prevent them from exhausting the host resources.
POSIX ACLs and file system permissions are not mechanisms used by LXC and Docker to create containers.
They are methods of controlling the access to files and directories on a file system, which can be applied to any process, not just containers.
References:
* LXC vs Docker: Which Container Platform Is Right for You?
* LXC vs Docker: Why Docker is Better in 2023 | UpGuard
* What is the Difference Between LXC, LXD and Docker Containers
* lxc - Which container implementation docker is using - Unix & Linux Stack Exchange
質問 # 26
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. Memory
- B. IO Cache
- C. Host Bus Adapters
- D. Network Interfaces
- E. Hard Disks
正解:A
質問 # 27
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 the bootloader configuration, when Xen is booted.
- B. In its Makefile, when Xen is built.
- C. In the configuration file /etc/xen/Domain-0.cfg, when Xen starts.
- D. In its .config file, when the Domain-0 kernel is built.
- E. In any of Xen's global configuration files.
正解:A
解説:
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
質問 # 28
Which file format is used by libvirt to store configuration data?
- A. XML files
- B. SQLite databases
- C. INI-style text files
- D. Java-like properties files
- E. Text files containing key/value pairs
正解:A
質問 # 29
Which of the following statements are true regarding resource management for full virtualization? (Choose two.)
- A. Full virtualization cannot pose any limits to virtual machines and always assigns the host system's resources in a first-come-first-serve manner.
- B. All processes created within the virtual machines are transparently and equally scheduled in the host system for CPU and I/O usage.
- C. The hygervisor may provide fine-grained limits to internal elements of the guest operating system such as the number of processes.
- D. It is up to the virtual machine to use its assigned hardware resources and create, for example, an arbitrary amount of network sockets.
- E. The hypervisor provides each virtual machine with hardware of a defined capacity that limits the resources of the virtual machine.
正解:D、E
質問 # 30
......
Lpi 305-300試験は、仮想化とコンテナ化に関連するさまざまなトピックをカバーしています。これには、仮想化ソフトウェアのインストールと設定、仮想マシンの作成と管理、およびコンテナ化されたアプリケーションの展開と管理が含まれます。試験では、仮想化およびコンテナ化環境で作業する際の重要なセキュリティに関する考慮事項や、パフォーマンス最適化技術についてもカバーしています。
305-300正真正銘のベスト資料、オンライン練習試験:https://www.passtest.jp/Lpi/305-300-shiken.html
優れもの良質な305-300問題集が待ってます:https://drive.google.com/open?id=13U1fx5R--GOBRfdwt1-w54K7uikCfUHC