Container basics · Question 11 of 12

An image starts with CMD node server.js (shell form). When the pod is deleted, the container always takes the full 30 seconds and ends with SIGKILL. What is the most likely cause?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • D PID 1 is /bin/sh, which does not forward SIGTERM to the Node process

Explanation

In shell form, the command is started via /bin/sh -c. The exec form CMD ["node", "server.js"] makes the application itself PID 1, so it receives SIGTERM and can shut down cleanly.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications