exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 70 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure DevOps project.
Your build process creates several artifacts.
You need to deploy the artifacts to on-premises servers.
Solution: You deploy an Azure self-hosted agent to an on-premises server. You add a Copy and Publish Build Artifacts task to the deployment pipeline.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
TechieBloke
Highly Voted 4 years, 10 months ago
But his is what it says here: "add a Copy and Publish Build Artifacts task to the deployment pipeline." so copy and publish as recommended. -> Answer is correct, YES.
upvoted 21 times
dan7777
4 years, 9 months ago
Exactly!
upvoted 5 times
...
...
Ivjo
Highly Voted 4 years, 11 months ago
I "like" such questions on exams. "If you're using Azure Pipelines, or Team Foundation Server (TFS) 2017 or newer, we recommend that you do NOT use this deprecated task. Instead, use the Copy Files and Publish Build Artifacts tasks." https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-and-publish-build-artifacts?view=azure-devops Based on that recommendation, it should be No, as they recommend to use two separate tasks for that
upvoted 8 times
...
Dankho
Most Recent 5 months, 3 weeks ago
Selected Answer: A
This is the meat and potatoes of the core stuff we're doing, deploying an Azure self-hosted agent on a on-premises server to copy artifacts from a build pipeline and make them available for later deployment. Pipeline 101 here!
upvoted 1 times
...
Gooldmember
7 months, 1 week ago
Selected Answer: A
Answer is A) Yes Since it's using the necessary task in order to deploy it on-premise servers. https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/copy-publish-build-artifacts-v1?view=azure-pipelines
upvoted 1 times
...
Gooldmember
7 months, 1 week ago
Answer is A yes, since it's using the necessary task in order to deploy it on-premise servers. https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/copy-publish-build-artifacts-v1?view=azure-pipelines
upvoted 1 times
...
FeriAZ
1 year, 3 months ago
Selected Answer: A
Azure Self-Hosted Agent: This agent is a software program installed on an on-premises server that acts as an extension of your Azure DevOps environment. It allows you to run tasks and scripts specific to your deployment process directly on the on-premises machine. Copy and Publish Build Artifacts Task: This task, available within Azure DevOps pipelines, enables you to transfer the artifacts generated during the build process to a designated location. In this case, the location would be the on-premises server where the self-hosted agent is installed.
upvoted 1 times
...
djhyfdgjk
1 year, 4 months ago
Copy and Publish Build Artifacts task fits rather build pipeline than the one for the deployment.
upvoted 1 times
...
yana_b
1 year, 10 months ago
Selected Answer: A
On-prem => self-hosted agent and not ms-hosted ( see link https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=browser) Tasks to add: Copy files & Publish Build Artifacts (see link https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/copy-publish-build-artifacts-v1?view=azure-pipelines&viewFallbackFrom=azure-devops) Provided answer seems to be correct
upvoted 2 times
...
syu31svc
2 years, 10 months ago
Selected Answer: B
One of those outdated questions again https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-and-publish-build-artifacts?view=azure-devops "This task is deprecated. We recommend that you use Pipeline Artifacts." Answer is No in accordance to Microsoft recommendation
upvoted 2 times
...
Divyayuvi
2 years, 11 months ago
Selected Answer: B
Very confusing! Here the deployment pipeline should download the artifacts and should not use copy and publish task as that should have been done in build pipeline already!
upvoted 2 times
...
Divyayuvi
2 years, 11 months ago
Very confusing! Here the deployment pipeline should download the artifacts and should not use copy and publish task as that should have been done in build pipeline already!
upvoted 1 times
gabo
1 year, 8 months ago
you are correct, I have the same doubt
upvoted 1 times
...
...
rdemontis
3 years, 2 months ago
Selected Answer: A
even if this task has been deprecated the answer is correct because probably the question is a little bit outdated https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-and-publish-build-artifacts?view=azure-devops
upvoted 1 times
...
lugospod
3 years, 4 months ago
Got this January 2022.
upvoted 3 times
...
Squadra
3 years, 4 months ago
Isn't it a depreciated task ? https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-and-publish-build-artifacts?view=azure-devops
upvoted 1 times
...
mieel
4 years, 8 months ago
Its No, the artifacts are already published. You should Download the Artifacts in during deployment. If you are creating artifacts during dpeloyment, that's an antipattern.
upvoted 2 times
...
Lons
5 years ago
Should be no since artifact publishing should be done in build step and downloading should be done in deploy step.
upvoted 3 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 ...