200-901 Application Deployment and Security Practice Question
A DevOps engineer runs a container using 'docker run -d -p 8080:80 nginx'. The host firewall blocks incoming traffic on port 8080 from external networks but allows from the local host. Which command would allow the engineer to test the container's web server from the same machine?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
curl localhost:8080
Since the host firewall allows local traffic, using curl localhost:8080 will reach the container via the mapped port.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
curl 10.0.0.1:8080
Why it's wrong here
Incorrect. That IP might be the external interface, blocked by firewall.
- ✗
docker exec -it <container> bash
Why it's wrong here
Incorrect. This opens a shell, doesn't test web access.
- ✗
docker logs <container>
Why it's wrong here
Incorrect. Logs show server output, not a test request.
- ✓
curl localhost:8080
Why this is correct
Correct. Localhost traffic is allowed, so this will work.
Go deeper
Related to this question
About these practice questions
One of 989 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.