Question 320
A client wants S3 to store only ciphertext produced before upload. Which encryption model fits?
- Client-side encryption
- Only S3 server-side encryption
- Only an HTTPS URL
- Only a private bucket policy
Explanation
Correct Answer
A:The client encrypts data before sending it, shifting critical key lifecycle and recovery responsibilities into the client's approved encryption design.
Incorrect Answers
B:Server-side encryption protects objects within the storage service, but the service receives data before performing that encryption operation.
C:TLS protects transport and does not require the stored object bytes themselves to be client-produced ciphertext.
D:Access control restricts requests but does not transform uploaded plaintext into client-side encrypted content.
Question 321
An encrypted dataset must be destroyed cryptographically after its approved lifetime. What must the plan account for?
- Only delete the application's current decryption cache
- Only deleting the key alias
- Every key copy, wrapped-key dependency, and retained backup
- Only disabling one application's UI
Explanation
Correct Answer
C:Destroying one reference is insufficient if recoverable key material or alternative plaintext copies remain; the actual recovery paths define destruction completeness.
Incorrect Answers
A:Other material copies, wrapped keys, backups, or plaintext replicas may remain, so clearing one cache does not establish cryptographic destruction.
B:Aliases are references and can be removed without destroying the underlying key material or protected data's recoverability.
D:Preventing one interface from displaying data does not remove other authorized or attacker-held decryption paths.
Question 322
A small KMS ciphertext blob containing a data key must be rewrapped from key A to key B without exposing its plaintext to the client. Which operation is appropriate?
- Call DescribeKey for both keys
- Change key A's alias to point at key B
- KMS ReEncrypt with the required source and destination permissions
- Enable automatic rotation on key A and assume the blob now uses B
Explanation
Correct Answer
C:ReEncrypt performs the supported server-side decrypt-and-encrypt path. The caller needs the appropriate use of both keys and any required encryption contexts.
Incorrect Answers
A:Metadata inspection does not perform the cryptographic transformation needed to wrap the existing data key under B.
B:An alias reference update does not transform existing ciphertext or make a blob protected under A recoverable through unrelated material in B.
D:Rotation of A preserves its logical key identity; it does not migrate the ciphertext to a different independently identified destination key.
Question 323
A backup copy exists, but the application has never been restored from it. Which THREE checks establish meaningful recovery readiness? Choose THREE.
- Validate application and data consistency after restoration
- Assume a completed copy proves every dependency
- Delete the source keys immediately after copying
- Approve recovery solely because the backup job reports Completed
- Test decryption and restore permissions with the recovery identity
- Measure recovery time and recovery-point age against business targets
Explanation
Correct Answers
A:A successful storage restore can still leave a broken service or unusable business state, so functional tests must cover the intended application.
E:The recovery role must use the backup and its protecting keys in the intended destination; stored ciphertext alone is not proof of recoverability.
F:The restore must meet both the accepted outage duration and data-loss tolerance rather than merely produce some old data eventually.
Incorrect Answers
B:Copy completion does not validate the recovery environment, identity permissions, application dependencies, or timing targets.
C:A destination artifact can retain cryptographic dependencies; premature key destruction can make an otherwise present backup unusable.
D:Backup creation status does not demonstrate destination restore permissions, application consistency after recovery, or compliance with restoration-time and data-loss targets.
Question 324
A database credential should rotate automatically without being hardcoded in applications. Which service is appropriate?
- AWS Secrets Manager with a supported rotation design
- An encrypted environment variable with no rotation integration
- A SecureString parameter with no credential-rotation workflow
- An S3 public object containing the password
Explanation
Correct Answer
A:The secret store coordinates credential versions and rotation, while consumers retrieve the appropriate value and handle refresh without embedding permanent passwords in code.
Incorrect Answers
B:Encryption protects the stored value but does not coordinate changing the database credential and keeping application consumers synchronized.
C:Protected storage alone does not implement the requested automatic update of the database secret and its authorized consumers.
D:Public storage exposes the credential and does not provide coordinated update of the database and authorized consumers.
Question 325
A rotation workflow has created a pending credential but not validated it. What should happen before promoting it for ordinary retrieval?
- Publish both passwords in the rotation logs
- Delete the current working credential first
- Test that the pending credential works against the intended target
- Move AWSCURRENT immediately without testing
Explanation
Correct Answer
C:Promotion must follow successful validation, so clients do not receive a credential that fails or points to an unintended database.
Incorrect Answers
A:Logging credentials creates additional exposure and does not establish that the pending value works against the approved target.
B:Removing the usable version before validation eliminates a safe fallback and can disrupt legitimate consumers.
D:Premature promotion can make every retrieving application use an invalid credential and cause an avoidable outage.
Question 326
A client retrieves a Secrets Manager value without specifying a version stage. Which stage is normally returned?
- AWSCURRENT
- A random version each request
- AWSPENDING always
- The oldest stored version always
Explanation
Correct Answer
A:The current stage identifies the default value for ordinary retrieval, while pending and previous stages support the version and rotation lifecycle.
Incorrect Answers
B:The service does not deliberately choose arbitrary historical credentials for normal retrieval without an explicit version selection.
C:A pending rotation value is not automatically the default secret consumed by every ordinary GetSecretValue request.
D:Age does not define the default retrieval result; staging labels determine the current intended version.
Question 327
A database password rotates successfully in Secrets Manager. Which TWO consumer behaviors help applications remain available without retaining old credentials indefinitely? Choose TWO.
- Hardcode the previous password into every image
- Refresh cached values according to a bounded supported strategy
- Handle authentication failure with a safe refresh and retry path
- Log both old and new passwords for debugging
- Disable rotation permanently after the first successful run
Explanation
Correct Answers
B:A finite cache lifetime allows the application to obtain the current version instead of using one startup-time password forever.
C:A controlled retry can recover when rotation invalidates a cached value, while avoiding unbounded retries and accidental logging of the secret.
Incorrect Answers
A:Embedding the stale value defeats rotation adoption and distributes more persistent credential copies across deployments.
D:Secret values in logs create additional disclosure paths and are unnecessary to implement cache refresh or safe retry behavior.
E:That avoids change rather than implementing the required secure consumer behavior and ongoing credential lifecycle.
Question 328
A Secrets Manager rotation function finds that AWSPENDING names a different database host and username from AWSCURRENT. Before changing any database password, what should it do?
- Validate the target identity and reject an unexplained mismatch
- Assume matching secret ARNs prove the database target is identical
- Promote AWSPENDING to AWSCURRENT without connecting to either target
- Use the privileged current credential to update the arbitrary pending host
Explanation
Correct Answer
A:The rotation function can become a confused deputy if untrusted pending data redirects its privileged operations. Verify the expected host and username relationship and stop rather than modifying an unintended database.
Incorrect Answers
B:A shared secret container identifies where versions are stored, not whether their internal host and username fields refer to the same approved database identity.
C:Label promotion does not validate that the new credential belongs to the intended database or works there, and it can distribute a malicious or unusable target to applications.
D:That would allow the pending value to redirect privileged work to an unintended target. Possession of a working current credential does not authorize arbitrary host or user changes.
Question 329
A secret is shared cross-account and encrypted with a customer managed key. What authorization paths need review?
- Only knowledge of the secret ARN
- Only an S3 bucket ACL
- Only the secret's version-stage labels
- Secret, caller, and KMS authorization
Explanation
Correct Answer
D:Cross-account retrieval combines service-resource authorization with the separate cryptographic permission needed to decrypt the stored secret.
Incorrect Answers
A:An ARN identifies the resource and is not a credential or a complete permission grant to retrieve its value.
B:The protected resource is a Secrets Manager secret, so an unrelated object ACL cannot authorize its retrieval or decryption.
C:Stages select which value is current or pending; they do not grant the external role permission to retrieve or decrypt the secret.
Question 330
A team imports key material into KMS. Who must keep a recoverable external copy when required by its recovery design?
- The ciphertext stored by applications
- The key alias automatically
- The source ciphertext can regenerate the external key bytes
- The customer controlling the imported material
Explanation
Correct Answer
D:Imported material has customer-managed provenance and lifecycle obligations; KMS cannot recreate externally generated bytes that the customer permanently loses.
Incorrect Answers
A:Ciphertext is not a recoverable external copy of imported secret material and does not let the customer recreate permanently lost key bytes.
B:An alias references a logical key and does not contain or recreate the externally supplied cryptographic material.
C:Properly encrypted data does not let the customer reconstruct lost secret material solely from the ciphertext it protected.