What is AWS KMS, and what is the difference between an AWS-managed and a customer-managed key?
AWS · Intermediate level
Answer
KMS manages cryptographic keys used by AWS services and applications. AWS-managed keys are service-managed with limited control; customer-managed keys give custom policy, audit, rotation, grants, aliases, and lifecycle control.
Technical explanation
KMS key policies are foundational; IAM permissions alone do not help if the key policy blocks the access path.
Key and secret controls must combine IAM policy, resource policy, KMS key policy, rotation, audit logging, and application refresh behavior.
Do not confuse encryption with authorization: encrypted data is still exposed if decrypt and read permissions are too broad.
Secret rotation must include monitoring and rollback because a failed rotation can become a production outage.
Hands-on example
1. Create a test KMS key, secret or parameter, IAM role, and workload that retrieves the value at runtime.
2. Scope permissions to the specific secret/parameter and KMS key, then test allowed and denied reads.
3. If rotation is relevant, run a manual rotation and confirm the application refreshes safely.
4. Add CloudTrail/CloudWatch alarms for failed rotation, denied decrypts, and suspicious access.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More AWS interview questions
- What is the difference between a CNAME and an Alias record in Route 53?
- What is the difference between CloudWatch Logs and CloudTrail?
- What is CloudWatch, and what is the difference between metrics, logs, and alarms?
- How does the AWS VPC CNI assign pod networking on EKS?
- What are managed node groups versus self-managed nodes versus Fargate on EKS?
- What is Amazon EKS, and what does AWS manage versus what you manage?
- How do you trigger a Lambda function - name several event sources.
- What is ElastiCache, and what is the difference between Redis and Memcached on it?