New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Eccouncil 312-97 Exam - Topic 4 Question 5 Discussion

Actual exam question for Eccouncil's 312-97 exam
Question #: 5
Topic #: 4
[All 312-97 Questions]

(Sarah Wright has recently joined a multinational company as a DevSecOps engineer. She has created a container and deployed a web application in it. Sarah would like to stop this container. Which of the following commands stop the running container created by Sarah Wright?)

Show Suggested Answer Hide Answer
Suggested Answer: B

When working inside an interactive Docker container session, the container continues running as long as its primary foreground process is active. Executing the exit command terminates the shell session, which in turn stops the container if no other foreground processes are running. The kill command requires a process identifier and is not used in this context, while clear simply clears the terminal screen and does not affect container execution. The stop command is not a valid shell command inside a container. Properly stopping containers during the Operate and Monitor stage helps free system resources, prevent unintended service exposure, and maintain a clean runtime environment. This practice aligns with container lifecycle management best practices and reduces operational risk.


Contribute your Thoughts:

0/2000 characters
Lon
5 days ago
"exit" just closes the terminal session, right? I don’t think that’s what she needs to stop the container.
upvoted 0 times
...
Twana
10 days ago
I remember practicing with similar questions, and I think "kill" might be the right command, but it feels a bit off for stopping a container.
upvoted 0 times
...
Katy
15 days ago
I think the command to stop a container is something like "docker stop," but I’m not sure if that’s what’s being asked here.
upvoted 0 times
...
Luz
20 days ago
Huh, this is a tricky one. I'm not super familiar with container management commands, but I'm guessing D) stop is the way to go. I'll double-check my notes just to be sure.
upvoted 0 times
...
Stephaine
26 days ago
Okay, I've got this. The key here is that we're working with a container, not a regular process. So the "kill" command wouldn't work. And "exit" and "clear" are more general Linux commands, not specific to container management. I'm going with D) stop.
upvoted 0 times
...
Edna
1 month ago
I'm a bit unsure about this one. I know we need to stop the container, but I'm not sure if the "stop" command is the right one. Let me think this through carefully.
upvoted 0 times
...
Jeanice
1 month ago
Hmm, this looks like a straightforward container management question. I think the answer is D) stop, since that's the command to stop a running container.
upvoted 0 times
...

Save Cancel