🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: DevSecOps Basics: all 10 questions

Quiz: DevSecOps Basics · Question 6 of 10

Why is ENV PAYMENTKEY=liveabc123 in a Dockerfile a problem?

Why is ENV PAYMENT_KEY=live_abc123 in a Dockerfile a problem?

  1. A.Environment variables slow the container down
  2. B.Docker does not support ENV
  3. C.The secret is stored in the image layers, so anyone who can pull the image can read it
  4. D.It only works on Linux
Answer & explanation

Correct answer: The secret is stored in the image layers, so anyone who can pull the image can read it

Secrets should be injected at runtime from a secret manager, never baked into images.

Can you get the rest right without peeking?

Take the timed Quiz: DevSecOps Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →