AWS Certified Developer – Associate (DVA-C02) — Question 540

A developer is building an application that stores sensitive user data. The application includes an Amazon CloudFront distribution and multiple AWS Lambda functions that handle user requests.

The user requests contain over 20 data fields. Each application transaction contains sensitive data that must be encrypted. Only specific parts of the application need to have the ability to decrypt the data.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Because native Amazon CloudFront field-level encryption is restricted to a maximum of 10 data fields, using a Lambda@Edge function is required to handle requests containing over 20 fields. By utilizing Lambda@Edge to perform asymmetric encryption with an RSA public key stored in AWS KMS, the sensitive fields are securely encrypted at the edge, ensuring only authorized downstream services with the private key can decrypt them. Other options either do not support field-level encryption or cannot accommodate the 20-field requirement.