Problem Statement
Explain how ConfigMaps and Secrets differ and how you would use them in a Deployment.
Explanation
ConfigMaps store non-sensitive configuration data and Secrets store sensitive information such as passwords or keys. In a Deployment you can mount them as volumes or expose them as environment variables. Using them separately improves security, makes configuration more flexible, and separates code from configuration. For example you might store database URL in a ConfigMap and database credentials in a Secret, then inject them into your pods at runtime rather than building them into the image.
