← 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?
- A.Environment variables slow the container down
- B.Docker does not support ENV
- C.The secret is stored in the image layers, so anyone who can pull the image can read it
- 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 →