Free Cisco 350-901 Actual Exam Questions - Question 1 Discussion
DRAG DROP Refer to the exhibit.
Drag and drop the correct parts of the Dockerfile from the left onto the item numbers on the right that match the missing sections in the exhibit to complete the Dockerfile to successfully build and deploy a container running a Python application. Not all parts of the Dockerfile are used. 
I swapped the order a bit from others here. I put the WORKDIR (D) first to set the folder, then COPY the requirements file (C) right after so pip install (B) can run properly with that file in place. The base image (A) definitely kicks things off, so it’s first. That way, dependencies get installed after copying only the requirements, which avoids reinstalling every time app files change. Seems cleaner and should build faster with caching.
B for installing dependencies after copying requirements, then C to copy app files in place.
I’d put the COPY command right after setting the WORKDIR so the files land in the correct spot, making option C a good fit for that slot. Also, installing dependencies should only happen after copying requirements, so B works better there.
I think option D fits well for the WORKDIR because it sets the context before copying files. Also, B looks right for installing dependencies since pip install needs to run after copying requirements.
I went with option B for the base image since it specifies Python clearly. Also, the COPY command seems to fit best at number 3 to bring in the app files before running pip install.
Looks pretty straightforward, maybe A, B, and D fit best here.