Valid 312-97 Dumps shared by ExamDiscuss.com for Helping Passing 312-97 Exam! ExamDiscuss.com now offer the newest 312-97 exam dumps, the ExamDiscuss.com 312-97 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 312-97 dumps with Test Engine here:
(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?)
Correct 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. ========