A financial service provider is designing a new compliance auditing application. The application runs on Amazon EC2 instances inside a private VPC in a Production Account. The application retrieves database credentials from AWS Secrets Manager to decrypt transaction logs. To meet regulatory compliance, the Solutions Architect must implement the following controls:
1. Prevent data exfiltration by ensuring that requests to AWS Secrets Manager from the private VPC can only access Secrets Manager secrets belonging to the company's AWS Organization.
2. Restrict access to the secrets so that only requests originating from the private VPC's endpoint are permitted, blocking any public internet access.
3. Encrypt the secrets at rest using a custom key that allows secure cross-account decryption by auditors in a separate Audit Account.
Which TWO configurations must the Solutions Architect implement to meet these security requirements? (Select TWO.)
- Deploy an interface VPC endpoint for AWS Secrets Manager in the Production VPC, and attach an endpoint policy that allows access only to secrets where the aws:ResourceOrgID condition key matches the company's AWS Organization ID.Answer
- Attach a resource-based policy to each Secrets Manager secret that denies all access to the secret if the aws:sourceVpce condition key does not match the ID of the Production VPC endpoint.Answer
- CEncrypt the secrets using the default AWS-managed KMS key aws/secretsmanager, and modify its key policy to grant decryption permissions to the IAM roles in the Audit Account.
- DAttach a Service Control Policy (SCP) to the Production Account's Organizational Unit that grants the EC2 instance role permission to retrieve secrets, which overrides any local IAM policy or resource policy denies.
- EConfigure a centralized S3 bucket in the Audit Account to receive CloudTrail logs from the Production Account, using a bucket policy that grants s3:PutObject access to the Production Account's IAM root ARN while omitting the CloudTrail service principal (cloudtrail.amazonaws.com) in the Principal element.