exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 17 question 3 discussion

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

You need to implement Project4.
What should you do first?

  • A. Add the FROM instruction in the Dockerfile file.
  • B. Add a Copy and Publish Build Artifacts task to the build pipeline.
  • C. Add a Docker task to the build pipeline.
  • D. Add the MAINTAINER instruction in the Dockerfile file.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
d0bermannn
Highly Voted 3 years, 2 months ago
C. Add a Docker task
upvoted 12 times
...
vsvaid
Most Recent 11 months, 2 weeks ago
Selected Answer: C
Correct answer
upvoted 1 times
...
yana_b
1 year, 4 months ago
Selected Answer: C
Provided answer is correct
upvoted 1 times
...
renzoku
1 year, 5 months ago
Selected Answer: C
C. Add a Docker task to the build pipeline, responsible for building the Docker image and pushing it to Azure Container Registry Add the FROM instruction in the Dockerfile file: required instructions to build the desired Docker image. Add a Copy and Publish Build Artifacts task to the build pipeline: copy and publish build output files or artifacts to a specific location within Azure DevOps. Add the MAINTAINER instruction in the Dockerfile file: specifies the author or maintainer of the Docker image
upvoted 1 times
...
zellck
1 year, 6 months ago
Same as Topic 11 Question 3. https://www.examtopics.com/discussions/microsoft/view/27078-exam-az-400-topic-11-question-3-discussion
upvoted 3 times
...
zellck
1 year, 6 months ago
Selected Answer: C
C is the answer. https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/containers/acr-template?view=azure-devops#how-we-build-your-pipeline The build stage uses the Docker task Docker@2 to build and push your Docker image to the container registry.
upvoted 3 times
zellck
1 year, 6 months ago
https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/docker-v2?view=azure-pipelines&tabs=yaml#remarks The following are the key benefits of using the Docker task instead of directly using Docker client binary in a script. - Integration with Docker registry service connection - The task makes it easy to use a Docker registry service connection for connecting to any container registry. Once signed in, you can add follow up tasks that execute other tasks or scripts by leveraging the sign on used by the Docker task. For example, use the Docker task to sign in to any Azure Container Registry, and then use another task or script to build and push an image to the registry.
upvoted 1 times
...
...
Iaminall
1 year, 10 months ago
Selected Answer: C
I think it's correct C
upvoted 1 times
...
syu31svc
2 years, 4 months ago
Selected Answer: C
Given answer is correct Docker image and Dockerfile so has to be Docker task
upvoted 1 times
...
Eltooth
2 years, 6 months ago
Selected Answer: C
C is correct answer.
upvoted 1 times
...
rdemontis
2 years, 8 months ago
Selected Answer: C
correct answer is C since we already have a Dockerfile
upvoted 1 times
...
Sara_Mo
2 years, 10 months ago
C. Add a Docker task to the build pipeline.
upvoted 1 times
...
jojom19980
3 years, 4 months ago
yes, this is correct. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/docker?view=azure-devops
upvoted 4 times
...
Lexa
3 years, 4 months ago
Now use Azure Container Registry to build and push an image. First, create a local working directory and then create a Dockerfile named Dockerfile with the single line: FROM mcr.microsoft.com/hello-world. https://docs.microsoft.com/en-us/azure/container-registry/container-registry-quickstart-task-cli#build-and-push-image-from-a-dockerfile
upvoted 4 times
rdemontis
2 years, 8 months ago
"Project4 will use an existing Dockerfile"
upvoted 2 times
...
xortan
3 years ago
The docker file is already created.
upvoted 1 times
...
ChauPhan
3 years ago
You are building from Azure DevOps. First, you need to create a Docker task on the build stage. The others (Dockerfile creation, push to ACR) are later
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 ...