exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 11 discussion

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

You are designing a build pipeline in Azure Pipelines.
The pipeline requires a self-hosted agent. The build pipeline will run once daily and will take 30 minutes to complete.
You need to recommend a compute type for the agent. The solution must minimize costs.
What should you recommend?

  • A. an Azure Kubernetes Service (AKS) cluster
  • B. Azure Container Instances
  • C. an Azure virtual machine scale set
  • D. Azure virtual machines
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
passtest100
Highly Voted 4 years, 4 months ago
Should be C It requires self-hosted agent rather than Microsoft-hosted agent. It is better to use scale set according to the following link https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=browser Azure virtual machine scale set agents Azure virtual machine scale set agents are a form of self-hosted agents that can be auto-scaled to meet your demands. This elasticity reduces your need to run dedicated agents all the time. Unlike Microsoft-hosted agents, you have flexibility over the size and the image of machines on which agents run. You specify a virtual machine scale set, a number of agents to keep on standby, a maximum number of virtual machines in the scale set, and Azure Pipelines manages the scaling of your agents for you. For more information, see Azure virtual machine scale set agents.
upvoted 34 times
Concay
3 years, 11 months ago
Wrong leh self hosted agent can run on rocker and it is cheaper than VM definitely
upvoted 4 times
jay158
3 years ago
C -- ACI is correct https://devblogs.microsoft.com/devops/azure-devops-agents-on-azure-container-instances-aci/
upvoted 2 times
...
Concay
3 years, 10 months ago
Sorry, it is C because ACI can be cheap but it might take much longer to run so cost will increase.
upvoted 3 times
...
...
ETKap
4 years, 3 months ago
C is correct. You can also configure the scale set agent pool to have zero agents on standby to save cost. https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=browser#faq
upvoted 9 times
...
...
Hooters
Highly Voted 4 years, 5 months ago
B. Azure Container Instances - this will be less on price
upvoted 20 times
Concay
3 years, 10 months ago
No it is not correct. It takes long forever to run.
upvoted 1 times
prashantjoge
3 years ago
reduce cost, not time. It runs once 30 mins a day
upvoted 2 times
prashantjoge
3 years ago
wrong azure agents can run on a self-hosted VM or on a container in the Self-hosted VM. Has nothing to do with ACI. So scalesets definitely. As it turns off after its done the job. See discussions
upvoted 1 times
...
...
...
...
Dankho
Most Recent 4 months ago
Selected Answer: B
The solution must minimize costs.
upvoted 1 times
...
sondrex
9 months, 1 week ago
Correct answer С Based on the most recent Microsoft documentation, the recommended compute type for the self-hosted agent in your Azure Pipelines build pipeline is: C. an Azure virtual machine scale set Explanation: Azure Virtual Machine Scale Sets (VMSS): This option is cost-effective for scenarios where you need to run build pipelines periodically and want to manage the scale of your virtual machines efficiently. VMSS allows you to automatically scale the number of VMs based on demand and set the number of VMs to zero when not in use, which helps minimize costs.
upvoted 1 times
...
uncledana
9 months, 4 weeks ago
C - requires a self hosted agent
upvoted 1 times
...
karthikwarrior
10 months, 2 weeks ago
B. Azure Container Instances Explanation: Cost Efficiency: Azure Container Instances (ACI) are billed per second based on the resources you allocate to your container, making it a very cost-effective solution for workloads that run infrequently or for short durations. Ease of Use: ACI is straightforward to set up and tear down, which suits a build pipeline running once daily for a short duration. Scalability: While not as scalable as Kubernetes or VM scale sets for high-demand scenarios, ACI is perfect for intermittent and short-lived tasks, such as a daily build process. Options A, C, and D generally involve higher ongoing costs due to their more persistent nature and additional management overhead:
upvoted 1 times
...
TheBigMan
11 months ago
C with number of standby agents set to 0 there will only be an agent spon up when there is a job. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/scale-set-agents?view=azure-devops
upvoted 3 times
...
arr73
11 months, 2 weeks ago
Selected Answer: C
Scale set allows you to configure the scale set agent pool to have zero agents on standby. if you set Number of agents to keep on standby to zero, for example to conserve cost for a low volume of jobs, Azure Pipelines starts a VM only when it has a job. Reference: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/scale-set-agents?view=azure-devops#can-i-configure-the-scale-set-agent-pool-to-have-zero-agents-on-standby
upvoted 3 times
...
vsvaid
1 year, 4 months ago
Selected Answer: B
Container Instance
upvoted 1 times
...
varinder82
1 year, 4 months ago
Final answer after going through all the comments Azure Container Instances
upvoted 1 times
...
CirusD
1 year, 6 months ago
If the primary concern is cost minimization, then Azure Container Instances (ACI) can indeed be more cost-effective than Azure Virtual Machines for short-lived tasks or infrequent operations. Azure Container Instances bills per second, and for a task that runs for 30 minutes once a day, ACI might be a better financial choice. The advantage of ACI is that you only pay for the actual compute resources you consume, without any VM infrastructure overhead.
upvoted 4 times
...
pc1707
1 year, 8 months ago
Selected Answer: B
ChatGPT: For a build pipeline that runs once daily and takes 30 minutes to complete, I would recommend using Azure Container Instances to minimize costs. Azure Container Instances is a service that allows you to run containers directly, without the need for any virtual machine infrastructure. This makes it a cost-effective option for workloads that have short running times and do not require persistent storage, such as a build pipeline that runs once daily for 30 minutes. On the other hand, an Azure virtual machine scale set is designed to provide easy management of multiple virtual machines and automatic scaling of resources, which may not be necessary for this particular use case1. So, the best option would be B. Azure Container Instances.
upvoted 1 times
...
xRiot007
1 year, 9 months ago
You are asked for the cheapest, not the fastest, considering this will run for half an hour a day, B - ACI is the correct answer.
upvoted 1 times
...
adityagoel26
2 years, 1 month ago
For this scenario, where the build pipeline requires a self-hosted agent and needs to run once daily for a period of 30 minutes, the most cost-effective compute type to recommend would be an Azure virtual machine. Azure virtual machines (VMs) can be created and configured with the required build tools and dependencies, and can be used as self-hosted agents for Azure Pipelines. They offer the flexibility to choose the appropriate size and configuration based on the workload requirements. Additionally, they can be started and stopped on-demand to save costs when not in use. Azure Kubernetes Service (AKS) cluster and Azure Container Instances (ACI) are container-based compute options, which are more suitable for running long-running, highly-scalable applications. They may not be the most cost-effective option for this scenario. An Azure virtual machine scale set (VMSS) can automatically scale up or down based on the workload demand, but it may be overkill for a build pipeline that runs only once daily.
upvoted 4 times
Fal991l
2 years ago
It's backed by GTP.
upvoted 2 times
...
Fal991l
2 years ago
GPT: Using Azure virtual machines would provide more control over the size and image of the machine used for the self-hosted agent, allowing for a more cost-effective option that meets the requirements of the pipeline. It also provides the flexibility to easily adjust the size and configuration of the VM as needed, should the pipeline requirements change in the future. Azure Kubernetes Service (AKS) cluster and Azure Container Instances (ACI) are more suitable for running highly-scalable applications, and may not be necessary for a build pipeline that runs once daily for 30 minutes. Azure virtual machine scale sets are designed to automatically scale based on workload demand, which may be overkill for a pipeline that only runs once daily for 30 minutes. In summary, option D - Azure virtual machines, is the most suitable and cost-effective compute type for the requirements of the build pipeline.
upvoted 3 times
...
...
geobarou
2 years, 2 months ago
Selected Answer: D
AI has another option: Azure virtual machines would be the most cost-effective option for running a self-hosted agent for a daily 30-minute build pipeline. Virtual machines can be started and stopped as needed, allowing you to only pay for the compute resources you actually use. Additionally, virtual machine scale sets can automatically scale the number of agents based on demand, further optimizing costs. AKS and Azure Container Instances may be more appropriate for containerized workloads or applications that require high scalability, but for a simple daily build pipeline, virtual machines would be the best option.
upvoted 2 times
...
syu31svc
2 years, 8 months ago
Selected Answer: B
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops "minimize costs" so all the more answer is B
upvoted 3 times
...
3tallah
2 years, 9 months ago
Selected Answer: B
Azure Pipelines scales in the agents when the number of idle agents exceeds the standby count for more than 30 minutes (configurable using Delay in minutes before deleting excess idle agents). https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/scale-set-agents?view=azure-devops#how-azure-pipelines-manages-the-scale-set
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