DevNet Associate (DEVASC) v1.0Application Deployment and SecurityEasy
A development team is deploying a new microservice that requires a consistent runtime environment across development, testing, and production. They also need to ensure isolation between the application and the host operating system. Which technology is best suited for this requirement?
- ADocker container
- BVirtual Machine (VM)
- CServerless function
- DMonolithic application
Show answer & explanationAnswer & explanation
Correct answer: A. Docker container
Docker containers provide a lightweight, portable, and isolated environment to run applications consistently across different stages of the development lifecycle, addressing the specified requirements efficiently.
Why the other options are wrong
- B. VMs provide isolation but are heavier and less portable than containers for application-level consistency.
- C. Serverless functions are for event-driven, short-lived tasks and don't provide a persistent, consistent runtime environment for a microservice.
- D. A monolithic application is a development style, not a deployment technology for consistent environments.
Docker Container
A lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.
- Ensures consistent environments from dev to prod.
- Provides process isolation from the host.
- More lightweight than Virtual Machines.
Memory trick: Containers ship code consistently, VMs virtualize everything.