exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 16 discussion

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

DRAG DROP -
You are configuring Azure DevOps build pipelines.
You plan to use hosted build agents.
Which build agent pool should you use to compile each application type? To answer, drag the appropriate build agent pools to the correct application types. Each build agent pool may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Hosted macOS -
Hosted macOS pool (Azure Pipelines only): Enables you to build and release on macOS without having to configure a self-hosted macOS agent. This option affects where your data is stored.

Box 2: Hosted -
Hosted pool (Azure Pipelines only): The Hosted pool is the built-in pool that is a collection of Microsoft-hosted agents.
Incorrect Answers:
Default pool: Use it to register self-hosted agents that you've set up.
Hosted Windows Container pool (Azure Pipelines only): Enabled you to build and release inside Windows containers. Unless you're building using containers,
Windows builds should run in the Hosted VS2017 or Hosted pools.
Hosted Linux/Ubuntu 18.04 does not apply for Mac OS or for Microsoft IIS.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents

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
Nilf
Highly Voted 3 years, 6 months ago
I think 1. Hosted MacOs. See video on https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent 2. Hosted
upvoted 35 times
Dankho
4 months ago
Important Note: While the Hosted agent pool could work for the IIS application since it provides a general Windows environment, the Hosted Windows Container pool is specifically designed and optimized for building and running Windows containers. Therefore, it's the more appropriate and efficient choice in this scenario.
upvoted 1 times
...
...
chandrakant418
Highly Voted 3 years, 7 months ago
Hosted for both
upvoted 31 times
chloaus
6 months, 1 week ago
The following agent pools are provided by default: - Default pool: use it to register self-hosted agents. - Azure Pipelines: hosted pool with various Windows, Linux and macOS images. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues?view=azure-devops&tabs=yaml%2Cbrowser - Azure Pipelines agent pool offers several virtual machine images to choose from, including macOS images. - Microsoft-hosted agents can run jobs directly on the VM or in a container. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent - Azure Pipelines can also run Windows Containers. Windows Server version 1803 or higher is required. Docker must be installed. https://learn.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops Azure Pipelines is not available in answers selection. The next best answer is hosted for both requirements.
upvoted 1 times
...
...
ozbonny
Most Recent 8 months, 1 week ago
1. Hosted MacOs 2. Hosted windows container since not all hosted supports containers
upvoted 4 times
...
djhyfdgjk
8 months, 4 weeks ago
Nowadays correct answer should be "Azure Pipelines".
upvoted 1 times
...
Firdous586
1 year ago
Answer should be Hosted MAC and Hosted Windows container as its already mentioned IIS is running in Docker engine
upvoted 2 times
...
dipti927
1 year, 4 months ago
Corrrect Answer is : 1. Hosted MacOs 2. Hosted windows container
upvoted 8 times
...
Fal991l
1 year, 6 months ago
1. An application that runs on iOS: For building an application that runs on iOS, you should use the **Hosted macOS** build agent pool (Option C). This pool provides a macOS environment with the necessary tools for building iOS applications. 2. An internet Information Services (IIS) web application that runs in Docker: For building an IIS web application that runs in Docker, you should use the **Hosted Windows Container** build agent pool (Option A). This pool provides a Windows environment with support for running Docker containers. Answers: 1. An application that runs on iOS: c. Hosted macOS 2. An internet Information Services (IIS) web application that runs in Docker: a. Hosted Windows Container
upvoted 10 times
Fal991l
1 year, 6 months ago
GPT: You could use the "Hosted" build agent pool for building an IIS web application that runs in Docker, as this pool provides a Windows-based environment with Docker already installed. However, the "Hosted Windows Container" pool is specifically optimized for building and running Windows containers, so it may provide a more suitable environment for this use case. So, both "Hosted Windows Container" and "Hosted" could be valid options for the second application type, but "Hosted Windows Container" is more specific to building and running Windows containers, which is the scenario in this case.
upvoted 1 times
...
...
warchoon
1 year, 9 months ago
It's always Default now
upvoted 3 times
...
Frefren
1 year, 9 months ago
1. Hosted MacOS 2. Hosted "To build and deploy Xcode apps or Xamarin.iOS projects, you'll need at least one macOS agent. This agent can also build and deploy Java and Android apps." https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/v2-osx?view=azure-devops
upvoted 2 times
...
syu31svc
2 years, 2 months ago
I would agree with the given answer https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=browser "You can install the agent on Linux, macOS, or Windows machines" https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
upvoted 3 times
xRiot007
1 year, 3 months ago
""You can install the agent on Linux, macOS, or Windows machines" - Correct, but that is not the requirement. The requirement is an IIS application and for that a Hosted Win Container is best.
upvoted 1 times
...
syu31svc
2 years, 1 month ago
Changed my mind on the IIS application; is Hosted Windows Container MCQ has one similar question on this and answer is Hosted Windows
upvoted 3 times
...
...
vikkr
2 years, 2 months ago
https://docs.microsoft.com/ru-ru/azure/devops/pipelines/ecosystems/xcode?view=azure-devops hosted macos
upvoted 1 times
...
Matkes
2 years, 2 months ago
The correct answer is hosted for both as they are asking us about the agent pool type which can be only azure pipelines (hosted) and private (self-hosted). Once you will select hosted you will be prompted to provide Agent specifications like: mac, windows ...
upvoted 10 times
...
cifeng
2 years, 5 months ago
First we need to select Agent pool type, either Hosted or Private. For Hosted, the choice of agent specifications are: Windows, Linux and MacOS.
upvoted 3 times
...
UnknowMan
2 years, 5 months ago
1. Hosted (With macos image) 2. Hosted
upvoted 5 times
...
Optimist_Indian
2 years, 8 months ago
Got this question in Feb-2022 exam (scored 910+). Answered 'Hosted' for both.
upvoted 14 times
...
lugospod
2 years, 9 months ago
Got this January 2022. Went with hosted Macos and hosted windows...tht total score was above 900 but I dont know if this was correct or not.
upvoted 8 times
...
binq
2 years, 9 months ago
Hosted for both (https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml)
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago