Implementing DevOps Solutions and Practices Using Cisco Platforms (DEVOPS) — Question 13

A DevOps engineer has built a container to host a web-server and it must run as an executable. Which command must be configured in a Dockerfile to accomplish this goal?

Answer options

Correct answer: B

Explanation

The correct answer is B because it specifies the executable and its parameters in the correct JSON array format, which allows for the web server to run in the foreground as intended. Option A is incorrect due to improper syntax, C has an invalid command, and D uses incorrect braces instead of brackets.