Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-305 All Questions

View all questions & answers for the AZ-305 exam

Exam AZ-305 topic 1 question 29 discussion

Actual exam question from Microsoft's AZ-305
Question #: 29
Topic #: 1
[All AZ-305 Questions]

HOTSPOT -
You have an Azure subscription that contains a virtual network named VNET1 and 10 virtual machines. The virtual machines are connected to VNET1.
You need to design a solution to manage the virtual machines from the internet. The solution must meet the following requirements:
✑ Incoming connections to the virtual machines must be authenticated by using Azure Multi-Factor Authentication (MFA) before network connectivity is allowed.
✑ Incoming connections must use TLS and connect to TCP port 443.
✑ The solution must support RDP and SSH.
What should you include in the solution? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Just-in-time (JIT) VN access
Lock down inbound traffic to your Azure Virtual Machines with Microsoft Defender for Cloud's just-in-time (JIT) virtual machine (VM) access feature. This reduces exposure to attacks while providing easy access when you need to connect to a VM.
Note: Threat actors actively hunt accessible machines with open management ports, like RDP or SSH. Your legitimate users also use these ports, so it's not practical to keep them closed.
When you enable just-in-time VM access, you can select the ports on the VM to which inbound traffic will be blocked.
To solve this dilemma, Microsoft Defender for Cloud offers JIT. With JIT, you can lock down the inbound traffic to your VMs, reducing exposure to attacks while providing easy access to connect to VMs when needed.
Box 2: A conditional Access policy that has Cloud Apps assignment set to Azure Windows VM Sign-In
You can enforce Conditional Access policies such as multi-factor authentication or user sign-in risk check before authorizing access to Windows VMs in Azure that are enabled with Azure AD sign in. To apply Conditional Access policy, you must select the "Azure Windows VM Sign-In" app from the cloud apps or actions assignment option and then use Sign-in risk as a condition and/or require multi-factor authentication as a grant access control.
Reference:
https://docs.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-overview https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Gowind
Highly Voted 2 years, 2 months ago
1. Answer is Azure Bastion. https://docs.microsoft.com/en-us/azure/bastion/bastion-overview It provides secure and seamless RDP/SSH connectivity to your virtual machines directly from the Azure portal over TLS. While JIT access allows access via RDP or SSH, incoming connections is not TLS tcp 443 (but RDP or SSH when the inbound port is temporarily authorized) https://docs.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage?tabs=jit-config-avm%2Cjit-request-asc 2. Second is correct https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows Enforce Conditional Access policies You can enforce Conditional Access policies, such as multifactor authentication or user sign-in risk check, before you authorize access to Windows VMs in Azure that are enabled with Azure AD login. To apply a Conditional Access policy, you must select the Azure Windows VM Sign-In app from the cloud apps or actions assignment option. Then use sign-in risk as a condition and/or require MFA as a control for granting access.
upvoted 140 times
abxc
1 year, 9 months ago
Azure Bastion is correct For conditional access policy it should be "cloud apps assignment set to Microsoft Azure management" as the requirement states MFA before network access is allowed. Using this policy users will be promted for MFA when they access azure portal
upvoted 24 times
Ody
7 months, 3 weeks ago
I think you are correct. I can't find any documentation that says VM conditional access supports SSH.
upvoted 1 times
...
TJ001
10 months ago
i agree with this ... also it is not just RDP port - ssh to cover for Linux VMs, non domain joined systems..
upvoted 3 times
...
...
jj22222
1 year, 8 months ago
i agree
upvoted 4 times
...
...
alxm8
Highly Voted 1 year, 12 months ago
1. Azure Bastion 2. Conditional Access Policy that has the cloud apps assignment set to Microsoft Azure management Azure bastion client access is authorized and authenticated when trying to log into the Azure portal. You can enable MFA on the Azure portal access by using the Conditional access policy for Microsoft Azure Management. We use this currently at work, it works very well! Azure bastion proxies the web portal requests via https to the servers running in the VNET.
upvoted 48 times
darthfodio
1 year, 10 months ago
I wouldn't be so sure about your answer for 2. see this link - https://learn.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows#enforce-conditional-access-policies
upvoted 2 times
maxustermann
1 year, 2 months ago
This does not mention Bastion... correct answer is Azure management
upvoted 2 times
...
...
...
Nicknamefordiscussions69
Most Recent 6 days, 14 hours ago
Bastion and Azure Windows VM sign-in
upvoted 1 times
...
SeMo0o0o0o
2 weeks ago
WRONG 1. Azure Bastion 2. Conditional Access Policy that has the cloud apps assignment set to Microsoft Azure management
upvoted 1 times
...
MeisAdriano
4 weeks, 1 day ago
WRONG!!! AI: To manage the virtual machines on VNET1 and meet your requirements: 1) To provide access to virtual machines on VNET1, use: Azure Bastion Azure Bastion allows secure connections to your VMs via the Azure portal using RDP and SSH, without directly exposing your VMs to the internet. It uses TLS and can authenticate via Azure MFA. Why the other options aren't suitable: Just-in-time (JIT) VM access: While JIT reduces the attack surface by opening ports only when necessary, it doesn't directly manage RDP/SSH connections and MFA. Azure Web Application Firewall (WAF) in Azure Front Door: This is aimed at protecting web applications, not RDP/SSH management connections.
upvoted 2 times
MeisAdriano
4 weeks, 1 day ago
2) To enforce Azure MFA, use: A Conditional Access policy that has the Cloud apps assignment set to Azure Windows VM Sign-In This policy ensures MFA is specifically applied for Azure VM sign-ins. Why the other options aren't suitable: An Azure Identity Governance access package: This manages access packages for various governance scenarios, not specifically MFA for VMs. A Conditional Access policy that has the Cloud apps assignment set to Microsoft Azure Management: This is too broad and applies to all Azure management, not specifically VMs.
upvoted 1 times
...
...
Teerawee
2 months, 2 weeks ago
• To provide access to virtual machines on VNET1: Azure Bastion • To enforce Azure MFA: A Conditional Access policy that has the Cloud apps assignment set to Azure Windows VM Sign-In
upvoted 1 times
...
23169fd
5 months, 1 week ago
To provide access to virtual machines on VNET1, use: Azure Bastion Azure Bastion provides secure and seamless RDP and SSH connectivity to virtual machines directly in the Azure portal over TLS (TCP port 443), ensuring secure access without exposing the VMs to the public internet. To enforce Azure MFA, use: A Conditional Access policy that has the Cloud apps assignment set to Azure Windows VM Sign-In A Conditional Access policy ensures that users must authenticate with MFA before accessing the virtual machines, enhancing security by requiring multi-factor authentication for access.
upvoted 1 times
23169fd
5 months, 1 week ago
Why Not Other Options: Just-in-time (JIT) VM access: While JIT reduces exposure by limiting the time a VM is accessible, it doesn't provide the seamless TLS/port 443 access that Bastion offers. Azure Web Application Firewall (WAF) in Azure Front Door: WAF is designed to protect web applications from common threats, not to manage RDP/SSH access to VMs. An Azure Identity Governance access package: Primarily for managing access to resources through access reviews and role assignments, not specifically for enforcing MFA. A Conditional Access policy that has the Cloud apps assignment set to Microsoft Azure Management: This policy targets Azure management activities rather than VM sign-ins specifically.
upvoted 1 times
...
...
varinder82
8 months ago
Final Answer: 1. Azure Bastion 2. Conditional Access Policy that has the cloud apps assignment set to Microsoft Azure management
upvoted 3 times
...
DeinosK
11 months, 1 week ago
#1 is bastion https://www.youtube.com/watch?v=DHiZbIks9i0
upvoted 1 times
...
BShelat
11 months, 3 weeks ago
I previously gave two reasons to rule out Azure Bastion as an answer. One more additional reason to rule it out: Reason 3: We need to design a solution to manage the virtual machines from the internet. Azure Bastion enable VM access on private IP address range NOT on Public IP range i.e. not on internet.
upvoted 3 times
...
BShelat
11 months, 3 weeks ago
I would rule out "Azure Bastion" for following reasons. 1) Question text does not indicate the existence of Azure Bastion subnet in VNET1. Without Azure Bastion subnet in virtual network Bastion host cannot be deployed in virtual network. 2) Answer area also does not mention anything about "Create Azure Bastion subnet and host. So for above reasons I will go with JIT VM
upvoted 3 times
c_h_r_i_s_
1 month, 1 week ago
Agreed, I think the given answer is correct. "Bastion does not currently support MFA" https://learn.microsoft.com/en-us/answers/questions/1187703/does-azure-bastion-standard-tier-support-azure-ad The workaround is to use JIT VM access. https://learn.microsoft.com/en-us/azure/architecture/solution-ideas/articles/multilayered-protection-azure-vm Bastion does not appear in the list of Cloud apps that you can target with Conditional Access Policies https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-cloud-apps#microsoft-cloud-applications
upvoted 1 times
...
...
rajeshrj1981
1 year ago
Answer is Azure Bastion and Conditional Access Policy with "Cloud apps assignment set to Windows VM signin":
upvoted 1 times
...
ACM13
1 year ago
For the answer is: Azure Bastion & Conditional access policy microsoft azure management
upvoted 4 times
...
fodocel235
1 year ago
1. Answer is Azure Bastion. You can reach Bastion via https. 2. Answer is Conditional Access Policy that has the Cloud apps assignment set to Microsoft Azure Management, that's enforces the MFA for the Bastion services. Even it's not mentioned that the VM's are only Windows VM's. Maybe there are also Linux VM's.
upvoted 2 times
...
ncseffai
1 year, 1 month ago
For those who are doubting the second answer. If you look at this link, the azure bastion is not mentioned among the services. Hence it will not trigger the MFA authentication. You need to go with Windows VM Sign-in https://learn.microsoft.com/en-us/azure/active-directory/conditional-access/concept-conditional-access-cloud-apps#microsoft-azure-management
upvoted 2 times
...
husam421
1 year, 2 months ago
Answer is Azure Bastion The JIT VM access page opens listing the ports that Defender for Cloud recommends protecting: 22 - SSH 3389 - RDP 5985 - WinRM 5986 - WinRM
upvoted 1 times
...
learning93
1 year, 2 months ago
Azure Bastion: Azure Bastion is a managed PaaS service that allows secure and seamless RDP and SSH access to your virtual machines directly from the Azure portal without the need for a public IP address on the VMs. It uses TLS encryption (HTTPS) on port 443 for secure access.
upvoted 1 times
learning93
1 year, 2 months ago
JIT Access can be used to control and restrict RDP and SSH access to your VMs but it doesn't inherently provide MFA or TLS encryption.
upvoted 1 times
learning93
1 year, 2 months ago
Conditional Access Policy with "Cloud apps assignment set to Windows VM signin": This option is designed to enforce MFA for user sign-ins to Windows VMs hosted in Azure. When you create a conditional access policy targeting "Windows VM signin," it allows you to require MFA when users attempt to access the VMs. This policy will ensure that users are prompted for MFA when accessing the VMs, enhancing security for VM access.
upvoted 1 times
maxustermann
1 year, 2 months ago
You need to authenticate over Bastion, which is not mentioned in the learn article. So we need to use the Azure management in Conditional Access
upvoted 1 times
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...