EX316 Sample Questions & Answers
Provisioning and networking virtual machines carries real weight here, alongside deploying the Virtualization operator, persistent storage and backup through OADP, VM templates and snapshots, live migration, node maintenance, and health probes.
Launch the full EX316 simulator →Showing 6 of 12 free samples.
- Question 1Beginner
Running and Accessing Virtual Machines · Console and SSH access
A developer needs to access the text console of a Virtual Machine named
db-serverin theprod-dbnamespace to troubleshoot boot issues. The VM has no IP address assigned yet. Which command provides the most direct access to the serial console?Show answer & explanation
Correct answer: C
The
virtctl consolecommand connects directly to the serial console of the VM instance. This is essential for troubleshooting boot issues where networking (SSH) or the graphical console (VNC) might not be fully functional or configured. - Question 2Intermediate
Running and Accessing Virtual Machines · Provision and manage VMs via web console and CLI
You are creating a new Virtual Machine and want to upload a local RHEL 9 QCOW2 image directly to a DataVolume as part of the provisioning process. Which
virtctlcommand structure achieves this?Show answer & explanation
Correct answer: D
virtctl image-upload dvis the command to upload a local image file to a DataVolume (dv). You must specify the target DV name, size, local image path, and optionally the storage class. This creates the PVC and starts the upload pod automatically. - Question 3Intermediate
Running and Accessing Virtual Machines · VM lifecycle management
You have a
VirtualMachineresource namedweb-01. You notice there is also aVirtualMachineInstanceobject namedweb-01. You delete theVirtualMachineInstanceobject usingoc delete vmi web-01. What is the expected outcome?Show answer & explanation
Correct answer: B
The
VirtualMachine(VM) resource is the authoritative state configuration. TheVirtualMachineInstance(VMI) represents the running instance. If you delete the VMI while the VM resource is configured to run, the controller detects the discrepancy and spins up a new VMI instance to match the desired state. - Question 4BeginnerSelect 2
Running and Accessing Virtual Machines · Console and SSH access
Which TWO methods can be used to securely access the graphical display of a Windows Virtual Machine running in OpenShift Virtualization? (Select TWO)
Show answer & explanation
Correct answers: B, C
virtctl vnctunnels the VNC connection from the local machine to the VM pod, allowing the use of a local remote viewer application.The Web Console provides an embedded VNC client that connects to the VM's graphical output, useful for Windows environments.
- Question 5Advanced
Kubernetes Networking for Virtual Machines · Create network policies for virtual machines
You are designing a network policy for a multi-tier application where the frontend VMs must communicate with backend database VMs. However, you want to ensure that NO other pods or VMs in the cluster can access the database VMs. What is the correct approach to configuring the Kubernetes NetworkPolicy?
Show answer & explanation
Correct answer: C
Kubernetes NetworkPolicies apply to VMs just like pods. By selecting the DB VMs and defining an ingress rule that whitelists only the frontend pods (via label selector), you implicitly deny all other traffic (default deny behavior when a policy selects a pod).
- Question 6Beginner
Kubernetes Networking for Virtual Machines · Configure external access for virtual machines
When configuring a Virtual Machine to be accessible from outside the cluster using a Service, which Service
typeshould be used if you want to map a specific port on every node in the cluster to the VM?Show answer & explanation
Correct answer: A
A
NodePortservice exposes the service on each Node's IP at a static port. This allows external traffic to access the VM by connecting to any node IP on that specific port.
Ready for the real thing?
The full EX316 simulator has every exam-style question, timed mode, and instant scoring.