To implement Project4, what should you do first?
Choose an answer
Tap an option to check your answer.
Correct answer: Add a Docker task to the build pipeline..
Why this is the answer
To implement Project4, which involves building and pushing a Docker image, the first step in Azure DevOps is to add a Docker task to your build pipeline. This task is specifically designed to interact with Docker, allowing you to build images from a Dockerfile and push them to a container registry. Adding the FROM instruction in the Dockerfile is a necessary step for defining the base image, but it's part of the Dockerfile creation, not the pipeline configuration. The MAINTAINER instruction is deprecated and not essential for building or pushing an image. Adding a Copy and Publish Build Artifacts task is used for storing build outputs, but it doesn't handle the Docker image build or push process itself.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed