Interview › Security & DevSecOps
What is 'secure by default', and give an example of a secure-by-default pattern? [Intermediate]
Answer
Secure by default means the default path is safe without requiring every developer to be a security expert. In practice, platform templates, CI/CD modules, base images, IAM roles, and Kubernetes namespaces should start with least privilege, encryption, logging, and restrictive network access.
Technical explanation
Defaults matter because engineers usually follow the fastest path provided by the platform.
Secure defaults reduce the number of policy violations and exceptions that security teams must chase.
Developers can still request exceptions, but exceptions should be explicit and reviewed.
Hands-on example
Example: a golden Kubernetes deployment template sets runAsNonRoot, readOnlyRootFilesystem, dropped capabilities, resource limits, liveness/readiness probes, no host networking, restricted NetworkPolicy, and mandatory owner labels. Teams inherit safety by using the template.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- How do you apply least privilege to service-to-service communication (e.g., with Istio mTLS)? [Intermediate]
- What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]
- What is OPA, and what is the Rego language used for? [Intermediate]
- What is workload identity, and how does it remove static credentials? [Intermediate]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What is the difference between authentication and authorization? [Advanced]