DVA-C02 · Question #117
DVA-C02 Question #117: Real Exam Question with Answer & Explanation
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #117. The question stem and answer options stay visible for context.
Question
A social media application uses the AWS SDK for JavaScript on the frontend to get user credentials from AWS Security Token Service (AWS STS). The application stores its assets in an Amazon S3 bucket. The application serves its content by using an Amazon CloudFront distribution with the origin set to the S3 bucket. The credentials for the role that the application assumes to make the SDK calls are stored in plaintext in a JSON file within the application code. The developer needs to implement a solution that will allow the application to get user credentials without having any credentials hardcoded in the application code. Which solution will meet these requirements?
Options
- AAdd a Lambda@Edge function to the distribution. Invoke the function on viewer request. Add
- BAdd a CloudFront function to the distribution. Invoke the function on viewer request. Add
- CAdd a Lambda@Edge function to the distribution. Invoke the function on viewer request. Move
- DAdd a CloudFront function to the distribution. Invoke the function on viewer request. Move the
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.