Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

EC-Council 312-97 Exam - Topic 4 Question 5 Discussion

Posted by Casie on Jan 27, 2026 at 08:26 PM

(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?)

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.


Get Premium 312-97 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
SA
Sarina 4 months ago
I agree with Lemuel. "kill" is commonly used to stop containers.
SA
Samira 4 months ago
"stop" sounds like it would work, but I don't think it's a valid command.
LE
Leatha 4 months ago
Not sure about that. Isn't "exit" just for leaving the shell?
LE
Lemuel 6 months ago
I think option A is the right choice. "kill" stops processes, right?
NA
Natalie 6 months ago
Definitely not C) clear, that's just for cleaning the terminal!
IR
Irving 6 months ago
Wait, can you really stop a container with just kill?
JA
Jamey 6 months ago
D) stop? That doesn't sound right.
LO
Lorrie 6 months ago
I thought exit would work too, but it just closes the shell.
RY
Ryan 6 months ago
A) kill is the right command to stop a container.
CA
Casey 7 months ago
D) [root@574bac18f89d /]# stop. Stopping containers is like putting a lid on a can of worms, but in a good way.
LI
Lisandra 7 months ago
D) [root@574bac18f89d /]# stop. Gotta love those container commands!
KA
Kattie 7 months ago
D) [root@574bac18f89d /]# stop. Easy peasy, lemon squeezy!
LI
Lilli 7 months ago
The correct answer is D) [root@574bac18f89d /]# stop. This command is used to stop a running container.
TH
Theola 7 months ago
D) [root@574bac18f89d /]# stop.
KE
Keva 7 months ago
I’m pretty certain that "stop" is not a standalone command; it usually needs to be part of something like "docker stop."
LO
Lon 8 months ago
"exit" just closes the terminal session, right? I don’t think that’s what she needs to stop the container.
TW
Twana 8 months 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.
KA
Katy 9 months 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.
LU
Luz 9 months 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.
ST
Stephaine 9 months 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.
ED
Edna 9 months 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.
JE
Jeanice 9 months 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.
CA
Carrol 3 months ago
↳ replying to Jeanice
Definitely D) stop. It's the standard command for this.
AL
Aliza 3 months ago
↳ replying to Jeanice
Yeah, I've used that command before. Works perfectly!
TA
Tarra 4 months ago
↳ replying to Jeanice
I agree, D) stop seems right for stopping a container.
0/2000 characters

Save Cancel