exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 4 question 47 discussion

Actual exam question from Microsoft's AZ-400
Question #: 47
Topic #: 4
[All AZ-400 Questions]

SIMULATION -
You need to prepare a network security group (NSG) named az400-123456789-nsg1 to host an Azure DevOps pipeline agent. The solution must allow only the required outbound port for Azure DevOps and deny all other inbound and outbound access to the Internet.
To complete this task, sign in to the Microsoft Azure portal.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
1. Open Microsoft Azure Portal and Log into your Azure account.
2. Select network security group (NSG) named az400-123456789-nsg1
3. Select Settings, Outbound security rules, and click Add
4. Click Advanced

5. Change the following settings:
✑ Destination Port range: 8080
✑ Protocol. TCP
✑ Action: Allow
Note: By default, Azure DevOps Server uses TCP Port 8080.
Reference:
https://robertsmit.wordpress.com/2017/09/11/step-by-step-azure-network-security-groups-nsg-security-center-azure-nsg-network/ https://docs.microsoft.com/en-us/azure/devops/server/architecture/required-ports?view=azure-devops

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Root_Access
Highly Voted 5 years ago
The goal is installing an agent on your cloud VM (could be on prem as well), you need to open only and only port 443 outbound. People are mistaken because they think the goal is deploying an Azure DevOps Server. Here is what Azure DevOps Server is: Developers can work in the cloud using Azure DevOps Services or on-premises using Azure DevOps Server. Azure DevOps Server was formerly named Visual Studio Team Foundation Server (TFS). https://docs.microsoft.com/en-us/azure/devops/user-guide/what-is-azure-devops?toc=%2Fazure%2Fdevops%2Fserver%2Ftoc.json&bc=%2Fazure%2Fdevops%2Fserver%2Fbreadcrumb%2Ftoc.json&view=azure-devops
upvoted 16 times
Hgreg
1 year, 5 months ago
Exactly. Only 443 outbound is needed. Current documentation (as of December 2023): https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=yaml%2Cbrowser#communication-with-azure-pipelines
upvoted 2 times
...
...
zellck
Highly Voted 1 year, 12 months ago
Gotten this in Jun 2023 exam.
upvoted 9 times
yana_b
1 year, 9 months ago
May you please specify the steps which you used for this lab? Thank you!
upvoted 1 times
...
...
Gooldmember
Most Recent 7 months, 1 week ago
Should be port 443 outbound, this seems to be an old question Azure DevOps Server uses default port 8080, but Pipeline Agents are today at least for the Azure DevOps Services using port 443
upvoted 1 times
...
chakanirban
11 months, 3 weeks ago
NO LAB on 6/21 - 9 am IST - 1 Case study , 6 new Q 1 YES NO series was new - 3 Q - I answered all No , because 2 will No and 1 Y JOB A depends JOB B JOB B on JOB C JOB C on JOB D who is dependent , who can run parallel 3 yes/ no
upvoted 2 times
...
son_el
1 year, 1 month ago
how many marks is this thing?
upvoted 1 times
...
yana_b
1 year, 9 months ago
The default Inbound NSG rule denies all i-net traffic, while the outbound rule allows it under Rule "AllowInternetOutBound" with priority 65001. Note that this rule refers to 'any' in regards with port, protocol and source, while sets internet for the destination => we have to create a 2nd outbound rule that denies all traffic for service tag=internet and set its priority to be lower than the rule allowing port 443.
upvoted 4 times
...
Sukon_Desknot
1 year, 10 months ago
Create a new network security group (NSG) named az400-123456789-nsg1 if it doesn't already exist. Configure outbound security rules for the NSG as follows: Name: Allow-Outbound Priority: 100 (or any number lower than 65000) Source: Any Source Port Range: * Destination: Any Destination Port Range: 443 Protocol: TCP Action: Allow Configure inbound security rules to deny all inbound traffic: Name: Deny-Inbound Priority: 65000 (highest priority) Source: Any Source Port Range: * Destination: Any Destination Port Range: * Protocol: * Action: Deny
upvoted 5 times
SilentH
9 months, 1 week ago
Correct & complete answer. Thank you.
upvoted 2 times
...
xRiot007
1 year, 9 months ago
FYI - rule priority is the lower the number, the higher the priority, not the other way around. https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview#:~:text=characters%20or%20%27.%27%2C%20%27%2D%27%2C%20%27_%27.-,Priority,-A%20number%20between
upvoted 1 times
...
...
chingdm
2 years, 5 months ago
should only open port 443 by default denies other ports, since it is for azure devops agent and not tfs. "Required options --unattended - agent setup will not prompt for information, and all settings must be provided on the command line --url <url> - URL of the server. For example: https://dev.azure.com/myorganization or http://my-azure-devops-server:8080/tfs" https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops
upvoted 2 times
...
meoukg
2 years, 7 months ago
I saw this question in my exam lab yesterday and I created an outbound rule allow port 443
upvoted 7 times
...
eufdf12342
3 years, 5 months ago
Port 443! https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=browser
upvoted 3 times
rdemontis
3 years, 2 months ago
thanks for sharing the document
upvoted 1 times
...
...
poplovic
3 years, 8 months ago
should be port 443 based on https://docs.microsoft.com/en-us/azure/devops/organizations/security/allow-list-ip-url?view=azure-devops&tabs=IP-V4 We recommend you open port 443 to all traffic on these IP addresses and domains. We also recommend you open port 22 to a smaller subset of targeted IP addresses.
upvoted 1 times
...
anchore
3 years, 8 months ago
https://docs.microsoft.com/en-us/azure/devops/server/architecture/required-ports?view=azure-devops-2020 Port 8080 would be the answer
upvoted 2 times
Pamban
2 years ago
This is the AzureDevOps server
upvoted 1 times
...
...
rg54
3 years, 10 months ago
I partly agree with Root_Access on one point : The question clearly talk about an installing an AzDO agent on a cloud VM (could be on prem as well), so needed port to connect to AzDO is 443 outbound BUT "The solution must allow ONLY THE REQUIRED outbound port for Azure DevOps and DENY ALL OTHER inbound and outbound access to the Internet." Moreover, default rules on NSG allow outbound traffic to Internet, and this rule cannot be deleted, only overriden : https://docs.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview#default-security-rules -> you also have to create an outbound rule to 443, and another one with smaller priority number to deny all outbound traffic
upvoted 3 times
armvch
2 years, 7 months ago
Default rules DENY all inbound/outbound traffic, not allow. Please carefully read the description
upvoted 1 times
...
...
gulopez
4 years, 5 months ago
The Question mention "The solution must allow only the required outbound port for Azure DevOps ". So it should be port 443. If instead would say Azure DevOps Server (former TFS) then port 8080 would be the answer.
upvoted 3 times
...
gulopez
4 years, 5 months ago
Accordind to this documentation https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops the the agent url uses port 8080 http://my-azure-devops-server:8080/tfs
upvoted 1 times
...
ttm_19
4 years, 11 months ago
The port is 443 - tested!
upvoted 4 times
...
yemma
4 years, 12 months ago
I think the only port needed for the azure deops agent is 443 (Tested) But we've asked to deny everything else, one this is done we have to open for the RDP or SSH port to connect in order to install the agent. So for me: Inbound : 100 RDP/SSH 3389/22 Allow 110 0.0.0.0/0 * Deny Outbound: 100 * 443 Allow 110 0.0.0.0/0 * Deny
upvoted 7 times
armvch
2 years, 7 months ago
there is a default rule for Deny All inbound traffic, no need to add additional rules for it
upvoted 6 times
...
rdemontis
3 years, 2 months ago
exactly, but the requirement ask only to deny all internet outboud. I think there is no need for the lab to modify inbound rules even if you are right.
upvoted 5 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 ...