exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 17 discussion

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

You plan to publish build artifacts by using an Azure pipeline.

You need to create an .artifactignore file that meets the following requirements:

• Includes all files in the build output folder and all subfolders
• Excludes files that have the .dll extension

What should you include in the file?

  • A. ./**
    !*.dll
  • B. **/*
    !*.dll
  • C. */**
    *.dll
  • D. **/*
    #*.dll
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
mfawew223
Highly Voted 11 months ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/devops/artifacts/reference/artifactignore?view=azure-devops That link has a similar example to what is shown in B. To note, the wording on the requirements is counter-intuitive. When the requirements say "Includes all files in the build output folder and all subfolders", I believe that is referring to including it in the .artifactignore file, the result of which is that all of those files in all of those subfolders will be ignored when publishing the build artifacts. Only .dlls will be published, which makes logical sense
upvoted 6 times
Nian
9 months, 2 weeks ago
Agree - .dlls are excluded from being ignored - hence getting published
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