exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 77 discussion

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

You have a project in Azure DevOps named Project1. Project1 contains a build pipeline named Pipe1 that builds an application named App1.
You have an agent pool named Pool1 that contains a Windows Server 2019-based self-hosted agent. Pipe1 uses Pool1.
You plan to implement another project named Project2. Project2 will have a build pipeline named Pipe2 that builds an application named App2.
App1 and App2 have conflicting dependencies.
You need to minimize the possibility that the two build pipelines will conflict with each other. The solution must minimize infrastructure costs.
What should you do?

  • A. Add another self-hosted agent.
  • B. Add a Docker Compose task to the build pipelines.
  • C. Change the self-hosted agent to use Red Hat Enterprise Linux (RHEL) 8.
  • D. Create two container jobs.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
SriLen
Highly Voted 3 years, 9 months ago
D. Correct , Container instances are cost effective
upvoted 10 times
saschgo
3 years, 4 months ago
Yes, answer D. is correct. But the answer is about the Azure DevOps term "Container jobs". https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops
upvoted 7 times
...
...
vsvaid
Most Recent 11 months, 2 weeks ago
Selected Answer: D
Agree with answer
upvoted 1 times
...
xRiot007
1 year, 4 months ago
Answer is D, but not the only one. The question does not specify what pool Pipe2 is using. For the sake of costs, containers are the cheapest approach
upvoted 1 times
...
zellck
1 year, 6 months ago
Selected Answer: D
D is the answer. https://learn.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops On Linux and Windows agents, jobs may be run on the host or in a container. (On macOS and Red Hat Enterprise Linux 6, container jobs are not available.) Containers provide isolation from the host and allow you to pin specific versions of tools and dependencies. Host jobs require less initial setup and infrastructure to maintain. Containers offer a lightweight abstraction over the host operating system. You can select the exact versions of operating systems, tools, and dependencies that your build requires. When you specify a container in your pipeline, the agent will first fetch and start the container. Then, each step of the job will run inside the container. You can't have nested containers. Containers aren't supported when an agent is already running inside a container.
upvoted 3 times
...
Madbo
1 year, 7 months ago
D. Create two container jobs. By creating two container jobs, each build pipeline can run in its own isolated environment, without conflicting with each other. This can help to minimize the possibility of conflicts between the two applications, while also minimizing infrastructure costs, as the self-hosted agent can be used for both projects. Adding another self-hosted agent would increase infrastructure costs, while changing the self-hosted agent to use RHEL 8 may not necessarily solve the dependency conflict. Adding a Docker Compose task would not necessarily isolate the two build pipelines.
upvoted 1 times
...
anhtvux
1 year, 10 months ago
Can someone please explain how B is wrong? I was thinking it is also related to creating containers for the 2 apps with different dependencies
upvoted 1 times
...
murat12345
2 years, 1 month ago
It doesnt even state what pool project 2 uses. Answer is A.
upvoted 3 times
...
syu31svc
2 years, 3 months ago
Selected Answer: D
"minimize infrastructure costs" Answer is D
upvoted 3 times
...
Eltooth
2 years, 6 months ago
Selected Answer: D
D is correct answer (however A is also correct but more expensive if on-prem infra costs are taken into account. Keep in mind if question asks for least amount of admin overhead though)
upvoted 3 times
...
UnknowMan
2 years, 6 months ago
D. Create two container jobs. (A is correct but cost)
upvoted 2 times
warchoon
1 year, 11 months ago
So it will be 3 agents. Not 2.
upvoted 1 times
warchoon
1 year, 11 months ago
Ok. I was wrong. Jobs work on the existent agent. "Windows Server 2019" is the key.
upvoted 1 times
...
...
...
Cheehp
2 years, 7 months ago
Selected during exam. D. Create two container jobs.
upvoted 1 times
...
rdemontis
2 years, 8 months ago
Selected Answer: D
D is correct because it is the most cost effective
upvoted 2 times
...
ChauPhan
3 years ago
A is also good but cost. D is cost effective
upvoted 2 times
...
totalz
3 years, 1 month ago
I like C, though incorrect!
upvoted 1 times
ChauPhan
3 years ago
But what is the reason for the changing from Window to RedHat? :D
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 ...