Question 1
A company uses Amazon OpenSearch Service for logs. The security team requires fine-grained access, encryption at rest, and node-to-node encryption. Which configuration meets these requirements?
- Make the domain public with an open access policy and rely on HTTPS only
- Enable fine-grained access control, encryption at rest with KMS, and node-to-node encryption on the domain — Correct
- Place the domain in a public subnet and restrict it with a CloudFront distribution
- Disable encryption to improve indexing performance and use IP-based access policies only
Correct answer
Enable fine-grained access control, encryption at rest with KMS, and node-to-node encryption on the domain
Explanation
OpenSearch supports fine-grained access control and both types of encryption. Open or unencrypted domains do not meet the requirements.
Question 2
A company needs to delete data securely when it is no longer needed. Which statement about data destruction in AWS is correct?
- Encrypted data cannot be made unreadable unless every copy is overwritten byte by byte by the customer.
- Deleting the KMS key (crypto-shredding) makes encrypted data unrecoverable. — Correct
- Customers must request physical access to AWS data centers to destroy disks that held their data.
- Data deleted from S3 is kept permanently by AWS for 7 years for every customer.
Correct answer
Deleting the KMS key (crypto-shredding) makes encrypted data unrecoverable.
Explanation
Deleting the key that protects encrypted data makes the data unrecoverable, and AWS handles media sanitization. Customers do not get data center access. AWS does not keep deleted customer data for years. Crypto-shredding avoids byte-level overwriting.
Question 3
An application writes audit records to an S3 bucket. The security team must prove that no record has been altered after it was written. Which combination provides this? (Choose TWO.)
- S3 Transfer Acceleration enabled on the bucket
- S3 Intelligent-Tiering on the bucket's objects
- S3 Object Lock in compliance mode on the bucket — Correct
- S3 Requester Pays enabled on the bucket
- S3 Versioning enabled on the bucket — Correct
Correct answer
S3 Object Lock in compliance mode on the bucket; S3 Versioning enabled on the bucket
Explanation
Object Lock prevents changes and requires versioning, which preserves every version. Transfer Acceleration, Intelligent-Tiering, and Requester Pays do not protect integrity.
Question 4
A security engineer must confirm that an AWS service such as S3 can only use a KMS key on behalf of the company's own account. Which key policy condition helps?
- kms:CallerAccount, combined with kms:ViaService for the service — Correct
- aws:CurrentTime, limited to the company's business hours in its home time zone
- kms:KeySpec, set to the key's symmetric default specification
- aws:UserAgent, matched against the S3 service's user agent string for every request
Correct answer
kms:CallerAccount, combined with kms:ViaService for the service
Explanation
kms:CallerAccount limits use to principals in the specified account, often combined with kms:ViaService. User agent, time, and key spec do not restrict callers by account.
Question 5
A company uses AWS Secrets Manager. Developers accidentally deleted a secret that production depends on. What can the security engineer do?
- Restore the secret from AWS Backup, because Secrets Manager does not support recovery of deleted secrets
- Restore the secret with RestoreSecret during its scheduled-deletion recovery window — Correct
- Nothing, because deleted secrets are removed permanently at the moment the deletion is requested
- Recreate the secret with the same name immediately, which restores all previous versions automatically
Correct answer
Restore the secret with RestoreSecret during its scheduled-deletion recovery window
Explanation
Secrets Manager deletes secrets after a recovery window of 7 to 30 days (unless forced), during which they can be restored. Recreating with the same name fails while scheduled for deletion. The other statements are incorrect.
Question 6
A company wants to give an analytics team access to only non-sensitive columns of a table in its S3 data lake when queried through Athena. Which service provides column-level access control?
- Amazon Macie
- AWS Lake Formation — Correct
- IAM permissions boundaries
- S3 Access Points
Correct answer
AWS Lake Formation
Explanation
Lake Formation supports column, row, and cell-level permissions. Macie discovers sensitive data. Access points and IAM boundaries work at object or action level.
Question 7
A company needs to make sure that sensitive data processed by AWS Glue jobs is encrypted at rest, including job bookmarks and CloudWatch logs. Which feature should be used?
- A Glue crawler with a schema change policy that encrypts new partitions
- An S3 bucket policy that requires SSE-S3 for the Glue job's temporary directory only
- A Glue security configuration with KMS encryption for S3 output, bookmarks, and CloudWatch Logs — Correct
- A Lake Formation tag on the Glue job that encrypts all of its outputs
Correct answer
A Glue security configuration with KMS encryption for S3 output, bookmarks, and CloudWatch Logs
Explanation
Glue security configurations set encryption for S3 data, job bookmarks, and logs. Bucket policies on one path, crawlers, and tags do not cover all of these.
Question 8
A company's developers need to test applications with production-like data that contains PII. The privacy team requires that PII be removed. Which approach fits BEST?
- Mask or tokenize PII with a data pipeline before copying data to test — Correct
- Share production database credentials with developers for read-only testing
- Copy production data directly into test accounts and restrict access to senior developers
- Use production data in test but encrypt the test database with SSE-S3
Correct answer
Mask or tokenize PII with a data pipeline before copying data to test
Explanation
Masking or tokenizing removes PII before data leaves production. Copying raw data, encrypting it, or sharing production access still exposes PII.
Question 9
A company must enforce TLS 1.2 or higher for all client connections to its S3 buckets. Which bucket policy condition should be used in a Deny statement?
- s3:TlsVersion less than 1.2 — Correct
- aws:SourceVpce equals the bucket's endpoint
- s3:x-amz-server-side-encryption equals AES256
- aws:SecureTransport equals true
Correct answer
s3:TlsVersion less than 1.2
Explanation
The s3:TlsVersion condition key with a numeric comparison denies older TLS versions. aws:SecureTransport only checks for TLS in general. The encryption and VPC endpoint conditions do not control TLS versions.
Question 10
A company needs to share an encrypted EBS snapshot with another AWS account. The snapshot is encrypted with the AWS managed key aws/ebs. What must the company do?
- Change the aws/ebs key policy to allow the other account to use the key.
- Share the snapshot directly, because AWS managed keys can be used by any account automatically.
- Copy it with a customer managed key, then share the copy and the key. — Correct
- Make the snapshot public, because encrypted snapshots can be shared only publicly.
Correct answer
Copy it with a customer managed key, then share the copy and the key.
Explanation
Snapshots encrypted with the AWS managed key cannot be shared. Re-encrypting with a customer managed key and granting the other account access allows sharing. AWS managed key policies cannot be edited, and encrypted snapshots cannot be made public.