CompTIA
CV0-004 · Question #275
An application that is running on containers writes files to the operating system after processing data. The produced output files are stored under /project-files owned by root. A cloud engineer needs
Sign in or unlock CV0-004 to reveal the answer and full explanation for question #275. The question stem and answer options stay visible for context.
Deployment
Question
An application that is running on containers writes files to the operating system after processing data. The produced output files are stored under /project-files owned by root. A cloud engineer needs to make sure no output files are owned by root. Which of the following actions should the engineer take to best achieve this objective?
Options
- AMount the volume in Docker using --user=myapp.
- BAdd USER myapp to the Dockerfile and rebuild the container.
- CRun chown myapp:myapp /project-files with cron every minute.
- DModify the container application to execute sudo -u myapp myapp.
Unlock CV0-004 to see the answer
You've previewed enough free CV0-004 questions. Unlock CV0-004 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Containers#Container Security#Dockerfile#User Management