Deal of The Day! 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

(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?)
B) [root@574bac18f89d /]# exit.
A) [root@574bac18f89d /]# kill.
C) [root@574bac18f89d /]# clear.
D) [root@574bac18f89d /]# stop.

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
Sarina
9 days ago
I agree with Lemuel. "kill" is commonly used to stop containers.
upvoted 0 times
...
Samira
14 days ago
"stop" sounds like it would work, but I don't think it's a valid command.
upvoted 0 times
...
Leatha
19 days ago
Not sure about that. Isn't "exit" just for leaving the shell?
upvoted 0 times
...
Lemuel
2 months ago
I think option A is the right choice. "kill" stops processes, right?
upvoted 0 times
...
Natalie
2 months ago
Definitely not C) clear, that's just for cleaning the terminal!
upvoted 0 times
...
Irving
2 months ago
Wait, can you really stop a container with just kill?
upvoted 0 times
...
Jamey
3 months ago
D) stop? That doesn't sound right.
upvoted 0 times
...
Lorrie
3 months ago
I thought exit would work too, but it just closes the shell.
upvoted 0 times
...
Ryan
3 months ago
A) kill is the right command to stop a container.
upvoted 0 times
...
Casey
3 months ago
D) [root@574bac18f89d /]# stop. Stopping containers is like putting a lid on a can of worms, but in a good way.
upvoted 0 times
...
Lisandra
3 months ago
D) [root@574bac18f89d /]# stop. Gotta love those container commands!
upvoted 0 times
...
Kattie
4 months ago
D) [root@574bac18f89d /]# stop. Easy peasy, lemon squeezy!
upvoted 0 times
...
Lilli
4 months ago
The correct answer is D) [root@574bac18f89d /]# stop. This command is used to stop a running container.
upvoted 0 times
...
Theola
4 months ago
D) [root@574bac18f89d /]# stop.
upvoted 0 times
...
Keva
4 months ago
I’m pretty certain that "stop" is not a standalone command; it usually needs to be part of something like "docker stop."
upvoted 0 times
...
Lon
5 months 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
5 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.
upvoted 0 times
...
Katy
5 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.
upvoted 0 times
...
Luz
5 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.
upvoted 0 times
...
Stephaine
6 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.
upvoted 0 times
...
Edna
6 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.
upvoted 0 times
...
Jeanice
6 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.
upvoted 0 times
Tarra
4 days ago
I agree, D) stop seems right for stopping a container.
upvoted 0 times
...
...

Save Cancel