Enforce KMS Customer Managed Key for SAP HANA S3 Backups
An SAP administrator is setting up an S3 bucket to store SAP HANA backup files. The backups must be encrypted at rest using an AWS KMS customer managed key. Which bucket policy condition key should be used to enforce that only requests using KMS encryption with that specific key are allowed?
Quick Answer
Enforcing a specific encryption key through an S3 bucket policy relies on condition keys that let you inspect the actual headers of an incoming request and deny anything that doesn't match your requirement. The s3:x-amz-server-side-encryption-aws-kms-key-id condition key does exactly that: it checks the value of the corresponding header on the request, which identifies which specific KMS key was used for encryption, and lets the bucket policy allow or deny the request based on whether that value matches the customer managed key you want enforced. This is more precise than simply requiring some form of server-side encryption, because it locks the requirement down to one exact key rather than allowing any KMS key or the default S3-managed key to satisfy the condition. For SAP HANA backups specifically, this level of control matters because backup data is highly sensitive, and an organization typically wants a guarantee that only a designated, auditable customer managed key was used to encrypt it, rather than trusting that whoever configured the backup job happened to specify the correct key. The general principle to take away is that S3 bucket policies can enforce very granular encryption requirements by matching against specific request headers via condition keys, and whenever a question asks how to lock down encryption to one particular KMS key rather than just any encryption, the answer will be a condition key that references the KMS key ID header specifically.
⚠ Common exam trap
Many exam-takers confuse the condition key that checks for any KMS encryption (`s3:x-amz-server-side-encryption`) with the one that enforces a specific KMS key ID (`s3:x-amz-server-side-encryption-aws-kms-key-id`), leading them to select option D instead of B.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
s3:x-amz-server-side-encryption-aws-kms-key-id
The `s3:x-amz-server-side-encryption-aws-kms-key-id` condition key allows you to enforce that only requests using a specific AWS KMS customer managed key for server-side encryption are permitted. This key is evaluated against the `x-amz-server-side-encryption-aws-kms-key-id` header in the request, ensuring that backups are encrypted with the exact KMS key ID specified in the bucket policy.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
kms:EncryptionContext
Why it's wrong here
This is used in KMS key policies, not S3 bucket policies.
- ✓
s3:x-amz-server-side-encryption-aws-kms-key-id
Why this is correct
This condition key checks the specific KMS key ID used for encryption.
- ✗
s3:ServerSideEncryption
Why it's wrong here
Invalid condition key; correct key is s3:x-amz-server-side-encryption.
- ✗
s3:x-amz-server-side-encryption
Why it's wrong here
This key only checks if SSE is enabled, not which key.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
One of 1,616 original PAS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on PAS-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. An administrator needs to back up SAP HANA database to S3 with encryption. The backup must be encrypted at rest in S3. Which combination of actions should be taken?
hard- A.Use AWS CloudHSM to generate keys and store them in S3
- B.Enable S3 Versioning and use S3-managed keys
- ✓ C.Configure S3 bucket with default encryption using SSE-S3 or SSE-KMS
- D.Use AWS Backup to back up to S3 with default settings
Why C: Configuring an S3 bucket with default encryption using SSE-S3 or SSE-KMS ensures that backups written to S3 are automatically encrypted at rest. SSE-S3 uses Amazon-managed keys with AES-256, while SSE-KMS allows you to use AWS KMS customer managed keys (CMKs) for additional control. This meets the requirement for encryption at rest in S3 without requiring additional infrastructure or manual key management.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PAS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PAS-C01 exam.