az-104 Practice Question 1729

Exam: az-104
Domain: Deploy and manage Azure compute resources
Topic: Create and configure virtual machines
Difficulty: medium
Contoso Ltd is deploying a hybrid environment where some virtual machines will be hosted on-premises while others will be in Azure. How should you configure the virtual machines to ensure they can communicate seamlessly across the hybrid environment?

Answer Options

A
Configure basic firewall rules on both on-premises and Azure virtual machines.
B
Use Site-to-Site (S2S) Virtual Private Network (VPN) or ExpressRoute.
C
Set up a basic network configuration without any additional services.
D
Disable network security groups on both on-premises and Azure virtual machines.

Correct Answer

B: Use Site-to-Site (S2S) Virtual Private Network (VPN) or ExpressRoute.

Explanation

To ensure seamless communication between on-premises and Azure virtual machines, you should use Site-to-Site (S2S) VPN or ExpressRoute. Option B is correct because S2S VPN or ExpressRoute provides a secure and reliable connection between on-premises and Azure environments, allowing seamless communication. Option A is incorrect as it does not provide a direct connection between on-premises and Azure. Option C is incorrect as it suggests using a basic firewall rule, which does not establish a direct connection. Option D is incorrect as it suggests using a basic network configuration, which does not provide the necessary connectivity for a hybrid environment.