AWS Certified Developer Associate DVA-C02 Practice Question
A developer is tasked with setting up a serverless architecture for processing incoming data requests from web clients. The system should respond with a client error status code and a structured message when a submission does not conform to the expected input format. Which serverless components should the developer configure to ensure these requirements are met?
Utilize a dedicated AWS Lambda function to perform input validation and shape the error return upon detecting non-conforming data.
Configure Amazon CloudFront custom error responses to intercept and reshape the return provided by the backend services.
Implement AWS Step Functions to orchestrate input validation and construct an error document to be issued when an invalid request is detected.
Leverage Amazon API Gateway's request validation feature and tailor the integration response to deliver a structured message upon failure.