200-901 · Question #91
What are two security benefits of a Docker-based application?
The correct answer is A. easier to patch because Docker containers include only dependencies that the application C. allows for separation of application that traditionally run in the same host. Docker containers improve security by reducing the attack surface through minimal dependencies and by isolating applications that would otherwise share a host.
Question
What are two security benefits of a Docker-based application?
Options
- Aeasier to patch because Docker containers include only dependencies that the application
- Bprevents information leakage that can occur when unhandled exceptions are returned in HTTP
- Callows for separation of application that traditionally run in the same host
- Dnatively secures access to secrets that are used by the running application
- Eguarantees container images are secured and free of vulnerabilities Answer:
How the community answered
(33 responses)- A94% (31)
- B3% (1)
- E3% (1)
Why each option
Docker containers improve security by reducing the attack surface through minimal dependencies and by isolating applications that would otherwise share a host.
Docker containers package only the specific libraries and dependencies an application requires, minimizing the number of components that need patching and limiting exposure to vulnerabilities present in unused packages.
Suppressing unhandled HTTP exceptions is an application-level coding practice, not a feature provided by the Docker runtime or container model.
Containers use Linux namespaces and cgroups to provide OS-level isolation, allowing applications that previously co-existed on one host to be separated, reducing the blast radius if one application is compromised.
Docker does not natively secure secrets - external mechanisms such as Docker Swarm Secrets or HashiCorp Vault are required to safely manage application secrets.
Docker does not guarantee images are vulnerability-free - images must be independently scanned using dedicated tools such as Trivy, Snyk, or Docker Scout.
Concept tested: Docker container security isolation and dependency management
Source: https://docs.docker.com/engine/security/
Topics
Community Discussion
No community discussion yet for this question.