[2024年10月13日] 最新305-300のPDF問題集リアル無料テスト本日更新です [Q32-Q55]

Share

[2024年10月13日] 最新305-300のPDF問題集リアル無料テスト本日更新です

305-300問題集には100%厳密検証された問題と解答で合格保証もしくは全額返金

質問 # 32
Which of the following commands executes a command in a running LXC container?

  • A. lxc-accach
  • B. lxc-enter
  • C. lxc-run
  • D. lxc-eval
  • E. lxc-batch

正解:A

解説:
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.


質問 # 33
What is true aboutcontainerd?

  • A. It runs in each Docker container and provides DHCP client functionality
  • B. It is a text file format defining the build process of containers.
  • C. It is the initial process run at the start of any Docker container.
  • D. It uses rune to start containers on a container host.
  • E. It requires the Docker engine and Docker CLI to be installed.

正解:D

解説:
Explanation
Containerd is an industry-standard container runtime that uses Runc (a low-level container runtime) by default, but can be configured to use others as well1. Containerd manages the complete container lifecycle of its host system, from image transfer and storage to containerexecution and supervision1. It supports the standards established by the Open Container Initiative (OCI)1. Containerd does not require the Docker engine and Docker CLI to be installed, as it can be used independently or with other container platforms2. Containerd is not a text file format, nor does it run in each Docker container or provide DHCP client functionality. Containerd is not the initial process run at the start of any Docker container, as that is the role of the container runtime, such as Runc3. References: 1 (search for "containerd"), 2 (search for "Containerd is an open source"), 3 (search for "It uses rune to start containers").


質問 # 34
What is the purpose of capabilities in the context of container virtualization?

  • A. Prevent processes from performing actions which might infringe the container.
  • B. Allow regular users to start containers with elevated permissions.
  • C. Enable memory deduplication to cache files which exist in multiple containers.
  • D. Map potentially dangerous system calls to an emulation layer provided by the container virtualization.
  • E. Restrict the disk space a container can consume.

正解:A

解説:
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


質問 # 35
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


質問 # 36
Which of the following values are valid in the type attribute of a<domain>element in a libvirt domain definition? (Choose two.)

  • A. proc
  • B. kvm
  • C. cgroup
  • D. Ixc
  • E. namespace

正解:B、D

解説:
Explanation
The type attribute of a <domain> element in a libvirt domain definition specifies the hypervisor used for running the domain. The allowed values are driver specific, but include "xen", "kvm", "hvf" (since 8.1.0 and QEMU 2.12), "qemu" and "lxc"1. Therefore, the valid values among the options are C. kvm and E. lxc. KVM stands for Kernel-based Virtual Machine, which is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V)2. LXC stands for Linux Containers, which is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host3. The other options are not valid values for the type attribute, asthey are either not hypervisors or not supported by libvirt. References:http://libvirt.org/formatdomain.html
https://libvirt.org/formatcaps.html


質問 # 37
Which of the following types of guest systems does Xen support? (Choose two.)

  • A. Foreign architecture guests (FA)
  • B. Paravirtualized quests (PVI
  • C. Container virtualized guests
  • D. Fully virtualized guests
  • E. Emulated guests

正解:B、D


質問 # 38
Which of the following statements is true regarding networking with libvirt?

  • A. Libvirt supports exactly one virtual network and connects all virtual machines to it.
  • B. Libvirt requires a dedicated network interface that may not be used by the host system.
  • C. Libvirt assiqns the same MAC address to all virtual machines and isolates their network interfaces at the link layer.
  • D. Libvirt networks appear, by default, as standard Linux bridges in the host system.
  • E. Libvirt's network functionality is limited to connectingvirtual machines to a physical network interface of the host system.

正解:D


質問 # 39
Which of the following values are valid in thefirmwareattribute of a<os>element in a libvirt domain definition?(Choose two.)

  • A. bios
  • B. pcie
  • C. efi
  • D. virtio
  • E. scsi

正解:A、C

解説:
Explanation
The firmware attribute of the <os> element in a libvirt domain definition specifies the type of firmware used to boot the virtual machine. The valid values for this attribute are efi and bios, which correspond to the Extensible Firmware Interface (EFI) and the Basic Input/Output System (BIOS) respectively. EFI is a newer standard that supports more features and security than BIOS, such as Secure Boot and faster boot times. BIOS is an older standard that is widely compatible and supported by most hypervisors and operating systems. The other values, scsi, virtio, and pcie, are not related to firmware, but to different types of devices or drivers that can be used in a virtual machine. References: 1 (search for firmware enum)


質問 # 40
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


質問 # 41
How can data be shared between several virtual machines running on the same Linux-based host system?

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

正解:E


質問 # 42
Which of the following statements are true regarding a Pod in Kubernetes? (Choose two.)

  • A. All containers of a Pod run on the same node.
  • B. Pods are always created automatically and cannot be explicitly configured.
  • C. systemd is used to manage individual Pods on the Kubernetes nodes.
  • D. A Pod is the smallest unit of workload Kubernetes can run.
  • E. When a Pod fails, Kubernetes restarts the Pod on another node by default.

正解:A、D

解説:
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


質問 # 43
Which command within virsh lists the virtual machines that are running on the current host?

  • A. list-all
  • B. show
  • C. list
  • D. I view
  • E. list-vm

正解:C

解説:
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.


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

正解:C

解説:
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


質問 # 45
Which of the following network interface types are valid in an LXD container configuration? (Choose three.)

  • A. physical
  • B. ipsec
  • C. macvlan
  • D. wifi
  • E. bridged

正解:A、C、E

解説:
Explanation
LXD supports the following network interface types in an LXD container configuration1:
* macvlan: Creates a virtual interface on the host with a unique MAC address and attaches it to an existing physical interface. This allows the container to have direct access to the physical network, but prevents communication with the host and other containers on the same host2.
* bridged: Connects the container to an existing bridge interface on the host. This allows the container to communicate with the host and other containers on the same bridge, as well as the external network if the bridge is connected to a physical interface3.
* physical: Passes an existing physical interface on the host to the container. This allows the container to have exclusive access to the physical network, but removes the interface from the host4.
The other network interface types, ipsec and wifi, are not valid in an LXD container configuration. Ipsec is a protocol for secure communication over IP networks, not a network interface type. Wifi is a wireless technology for connecting devices to a network, not a network interface type. References:
* About networking - Canonical LXD documentation
* Macvlan network - Canonical LXD documentation
* Bridge network - Canonical LXD documentation
* Physical network - Canonical LXD documentation


質問 # 46
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 in order to use the visualization extensions of the host system's CPU
  • B. It must be loaded into the kernel of each virtual machine that will access files and directories from the host system's file 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 only if the console of a virtual machine will be connected to a physical console of the host system
  • E. 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

正解:A


質問 # 47
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. --alias=isolated_nw
  • B. --network=isolated_nw
  • C. --attach=isolated_nw
  • D. --ethernet=isolated_nw
  • E. --eth0=isolated_nw

正解:B

解説:
Explanation
To attach a container to a network when creating it, the --network flag must be used with the name of the network as the argument. The --network flag specifies the network mode for the container. By default, the network mode is bridge, which means the container is connected to the default bridge network. However, if a custom network is created, such as isolated_nw in this case, the container must be explicitly attached to it using the --network flag. For example, to create a container named web1 and attach it to the isolated_nw network, the command would be:
docker create --name web1 --network isolated_nw nginx
The other options are not valid parameters for docker create. The --eth0, --ethernet, and --attach flags do not exist. The --alias flag is used to specify an additional network alias for the container on a user-defined network, but it does not attach the container to the network. References:
* docker network create | Docker Documentation1
* docker create | Docker Documentation
* Networking overview | Docker Docs2


質問 # 48
What is the purpose of the commandvagrant init?

  • A. It installs Vagrant on a Linux host.
  • B. It executes a provisioning tool in a running box.
  • C. It downloads a Vagrant box.
  • D. It creates a Vagrant configuration file.
  • E. It starts a Vagrant box.

正解:D

解説:
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


質問 # 49
What is the purpose of the commandvagrantinit?

  • A. It installs Vagrant on a Linux host.
  • B. It executes a provisioning tool in a running box.
  • C. It downloads a Vagrant box.
  • D. It creates a Vagrant configuration file.
  • E. It starts a Vagrant box.

正解:D


質問 # 50
Which of the following network interface types are valid in an LXD container configuration? (Choose three.)

  • A. physical
  • B. ipsec
  • C. macvlan
  • D. wifi
  • E. bridged

正解:A、C、E


質問 # 51
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 start system images as virtual machines instead of containers bv default.
  • D. Both can apply changes to a base image.
  • E. Both can download required base images.

正解:A、D、E


質問 # 52
Which of the following devices exist by default in an LXC container? (Choose three.)

  • A. /dev/console
  • B. /dev/kmem
  • C. /dev/urandom
  • D. /dev/log
  • E. /dev/root

正解:A、C、D


質問 # 53
Which CPU flag indicates the hardware virtualization capability on an AMD CPU?

  • A. VMX
  • B. SVM
  • C. PVM
  • D. VIRT
  • E. HVM

正解:B


質問 # 54
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.)

正解:

解説:
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


質問 # 55
......


LPIC-3試験305を他の試験から区別しているのは、仮想化とコンテナ化技術の両方に焦点を当てているという事実です。これにより、選択した少数のITプロフェッショナルのみが座ることができる高度に専門的な試験になります。試験は、計画と実装、運用、トラブルシューティングの3つのセクションに分かれています。各セクションには特定の焦点があり、特定の分野で候補者の知識とスキルをテストします。

 

2024年最新の有効な305-300テスト解答Lpi試験PDF:https://www.passtest.jp/Lpi/305-300-shiken.html

合格させるLpi 305-300試験には練習テスト問題集豪華お試しセット:https://drive.google.com/open?id=13cvmizZe5BBgSk-FGX_V3tMRo1Ci4q0O