easyMultiple ChoiceObjective-mapped
220-1102 Practice Question: A technician is deploying a new virtual machine…
A technician is deploying a new virtual machine on a Type 1 hypervisor. The VM will run a Linux web server and needs to be isolated from the corporate network except for HTTPS traffic. Which networking configuration should the technician implement?
⚠ Common exam trap
In CompTIA A+ exams, candidates often confuse host-only and NAT networking modes, mistakenly thinking NAT alone provides inbound access, but NAT without port forwarding only allows outbound connections.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use a virtual switch set to host-only mode and configure port forwarding for HTTPS
A host-only virtual switch creates an isolated network between the host and the VM, preventing direct access from the corporate network. By configuring port forwarding on the host, the technician can selectively allow only HTTPS traffic (TCP/443) to reach the VM while keeping it otherwise isolated. This meets the requirement of isolation except for HTTPS.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Bridge the VM directly to the physical network adapter
Why it's wrong here
Bridging directly connects the virtual machine to the physical network adapter, making it appear as a separate, distinct host on the corporate network. The VM would obtain an IP address from the corporate DHCP server, granting it full access to all network resources and exposing it to all network traffic. This configuration completely defeats any isolation requirements, as the VM becomes indistinguishable from a physical machine on the network.
- ✓
Use a virtual switch set to host-only mode and configure port forwarding for HTTPS
Why this is correct
Host-only mode creates a private virtual network between the VM and the host machine, completely isolating the VM from the external corporate network. This ensures the VM cannot be directly accessed or discovered by other devices on the corporate network. Configuring port forwarding specifically for HTTPS (port 443) on the host allows only this designated traffic to pass from the host to the isolated VM, precisely meeting the requirement for secure, controlled inbound access while maintaining maximum isolation.
- ✗
Attach the VM to a NAT network without any port forwarding
Why it's wrong here
Attaching the VM to a NAT network allows it to share the host's IP address for outbound connections, enabling internet access while providing a degree of isolation from the corporate network. However, without explicit port forwarding rules configured on the host, external devices on the corporate network cannot initiate inbound connections to the VM. This means the required HTTPS traffic from the corporate network would be blocked, preventing the VM from receiving necessary services.
- ✗
Assign the VM an IP from the corporate DHCP scope
Why it's wrong here
Assigning the VM an IP address directly from the corporate DHCP scope effectively places the virtual machine directly onto the corporate network as if it were a physical device. This configuration bypasses all forms of network isolation, making the VM fully discoverable and accessible to all other machines on the corporate network. Such direct exposure violates the fundamental security requirement for isolating the virtual machine from the broader corporate environment.
Go deeper
Related to this question
Learn chapter
Windows Networking and File Sharing
Key term
Virtual machine
A virtual machine (VM) is a software-based emulation of a physical computer that runs an operating system and applications just like a real machine, but is isolated and managed by a hypervisor on a host system.
Key term
TCP
TCP is a connection-oriented transport layer protocol that ensures reliable, ordered, and error-checked delivery of data between applications over IP networks.
About these practice questions
This 220-1202 question is part of Courseiva's 495-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 220-1202 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 220-1202 exam.