SCS-C03 · Domain 5: Data Protection · 18% of the exam
Task 5.3: Design and implement controls to protect confidential data, credentials, secrets, and cryptographic key materials
Protecting the things that unlock everything else: rotating secrets in Secrets Manager, imported key material and external key stores and how they differ from AWS-generated keys, masking sensitive data in CloudWatch Logs, and managing KMS keys and private certificates in one Region or many.
Study it
Secrets: Secrets Manager rotation and keeping secrets out of code
Try each one before opening the answer. Every option is explained, with the AWS documentation page that proves it.
Question 1 · choose 1
An application on a large fleet reads database credentials from AWS Secrets Manager and caches them for several minutes. The secret rotates every 30 days. During rotation some servers fail to connect until their cache refreshes. The team wants rotation without these failures. What should the team do?
ASwitch to the alternating users rotation strategy
BRotate the secret every four hours so that caches stay recent
CMove the credentials to Parameter Store SecureString parameters
DKeep single user rotation and turn off caching in the application
Show the answer and why
ASwitch to the alternating users rotation strategy
Correct
Alternating users keeps two valid users and updates one at a time, so cached credentials stay valid; the superuser secret is used to clone the user.
BRotate the secret every four hours so that caches stay recent
Incorrect
More frequent rotation creates more rotation windows and more of the same failures.
CMove the credentials to Parameter Store SecureString parameters
Incorrect
Parameter Store does not rotate database credentials for you, so the team loses rotation instead of fixing it.
DKeep single user rotation and turn off caching in the application
Incorrect
With single user rotation, there is still a window in which the old password no longer works and new connections can be denied.
Single user rotation is simple but has a brief window of denied connections; alternating users is the strategy for high availability.
A company must generate a symmetric key in its on-premises HSM and keep the original copy. In AWS it must be able to make the key unusable at once, without a waiting period, and make it usable again later. Encryption in AWS must keep working if the on-premises HSM is unreachable, and the key material must be rotated every year. Which approach meets these requirements?
AA KMS key with AWS-generated key material and automatic rotation every year
BA KMS key in an external key store that uses the on-premises HSM through a proxy
CA KMS key with imported key material, rotated on demand by importing new material
DA standard KMS key that is scheduled for deletion whenever it must become unusable
Show the answer and why
AA KMS key with AWS-generated key material and automatic rotation every year
Incorrect
The key material would be generated by AWS KMS, not in the company's HSM, so the company would not hold the original.
BA KMS key in an external key store that uses the on-premises HSM through a proxy
Incorrect
External key store keys are used in the external key manager, so encryption stops whenever the on-premises HSM is unreachable.
CA KMS key with imported key material, rotated on demand by importing new material
Correct
Imported material can be deleted at once and reimported, and keys with imported material support on-demand rotation by importing new key material.
DA standard KMS key that is scheduled for deletion whenever it must become unusable
Incorrect
Deletion needs a 7 to 30 day waiting period and cannot be undone after it completes.
Imported key material is the option for "we generate it, we keep the original, we can pull it now and bring it back", while AWS KMS still holds a working copy for availability.
Application logs in CloudWatch Logs sometimes contain credit card numbers. The numbers must be masked for everyone except the fraud team in the console, in Logs Insights queries and in subscription filters, for all existing log groups and for log groups created later. What should the security team do?
AA data protection policy on each existing log group, with logs:Unmask for the fraud team
BAn account-level data protection policy, with logs:Unmask granted only to the fraud team
CAn Amazon Macie sensitive data discovery job on log exports in S3
DA subscription filter on each log group to a Lambda function that writes redacted copies
Show the answer and why
AA data protection policy on each existing log group, with logs:Unmask for the fraud team
Incorrect
Log group policies would leave log groups created later unprotected.
BAn account-level data protection policy, with logs:Unmask granted only to the fraud team
Correct
An account-level policy applies to existing and future log groups, masks matches at all egress points, and only principals with logs:Unmask see the original data.
CAn Amazon Macie sensitive data discovery job on log exports in S3
Incorrect
Macie reports sensitive data that it finds in S3. It does not mask what users see in CloudWatch Logs.
DA subscription filter on each log group to a Lambda function that writes redacted copies
Incorrect
The original log groups would still show the numbers, and the team would maintain custom code.
Masking starts when the policy exists: events ingested before it are not masked, so create the policy before sensitive data arrives.
An application encrypts fields on the client side with the AWS Encryption SDK in us-east-1 and stores them in a DynamoDB global table. The copy of the application in eu-west-1 must decrypt those fields locally, without calling AWS KMS in us-east-1, even when us-east-1 is unavailable. What should the team do?
AUse the us-east-1 key from eu-west-1 by specifying its full key ARN
BCreate a key in eu-west-1 and give it the same alias as the us-east-1 key
CTurn on the multi-Region property of the existing us-east-1 key
DCreate a multi-Region primary key in us-east-1 and a replica in eu-west-1
Show the answer and why
AUse the us-east-1 key from eu-west-1 by specifying its full key ARN
Incorrect
That makes a cross-Region call to AWS KMS in us-east-1, which fails when that Region is unavailable.
BCreate a key in eu-west-1 and give it the same alias as the us-east-1 key
Incorrect
An alias is only a name. Two single-Region keys have different key material, so one cannot decrypt the other's ciphertext.
CTurn on the multi-Region property of the existing us-east-1 key
Incorrect
An existing single-Region key cannot be converted to a multi-Region key.
DCreate a multi-Region primary key in us-east-1 and a replica in eu-west-1
Correct
Related multi-Region keys share key material and key ID, so data encrypted in one Region can be decrypted in the other without a cross-Region call.
Multi-Region keys exist for client-side encryption across Regions. Data already encrypted under a single-Region key must be re-encrypted to use them.
A team creates a new RDS DB instance and wants the master user password generated, stored and rotated automatically, without writing a rotation function. What should it choose?
AA password typed into the console and kept in a wiki
BLet RDS manage the password in Secrets Manager
CA SecureString parameter updated by a cron job
DIAM database authentication for the master user only
Show the answer and why
AA password typed into the console and kept in a wiki
Incorrect
Manual handling is neither automatic nor secure.
BLet RDS manage the password in Secrets Manager
Correct
RDS generates the credentials, stores them in Secrets Manager and rotates them regularly without application changes.
CA SecureString parameter updated by a cron job
Incorrect
That needs custom code and scheduling.
DIAM database authentication for the master user only
Incorrect
The master user password still has to be managed.
Applications read the current password from the secret at connection time.
Amazon Macie must find a company-specific employee ID format in S3 objects, such as EMP- followed by six digits, near the word "employee". Managed data identifiers do not cover it. What should the team create?
AAn allow list containing the employee ID format
BA suppression rule for employee ID findings
CAn S3 Inventory report that is filtered on file names
DA custom data identifier with a regex and a keyword
Show the answer and why
AAn allow list containing the employee ID format
Incorrect
Allow lists tell Macie what to ignore, not what to find.
BA suppression rule for employee ID findings
Incorrect
Suppression hides findings instead of detecting new data types.
CAn S3 Inventory report that is filtered on file names
Incorrect
Inventory lists objects; it does not inspect their contents.
DA custom data identifier with a regex and a keyword
Correct
Custom data identifiers use a regular expression plus optional keywords and a proximity rule to detect sensitive data.
Test the regex on sample data before running it across large buckets.
A team encrypts records with KMS and wants each ciphertext bound to the tenant it belongs to, with the tenant visible in CloudTrail entries for KMS calls. What should it use?
AA separate KMS key alias for every request
BA secret tenant ID inside the encryption context
CAn encryption context with the tenant ID
DA tag on the KMS key with the tenant ID
Show the answer and why
AA separate KMS key alias for every request
Incorrect
Aliases name keys; they do not bind data to a tenant.
BA secret tenant ID inside the encryption context
Incorrect
The encryption context is not secret; it is logged in plaintext.
CAn encryption context with the tenant ID
Correct
The encryption context is bound to the ciphertext as authenticated data and appears in plaintext in CloudTrail.
DA tag on the KMS key with the tenant ID
Incorrect
Key tags describe the key, not each piece of data it encrypts.
The same encryption context must be supplied to decrypt, which also blocks swapping ciphertexts between tenants.