AWS Certified Data Analytics – Specialty — Question 124

A company is using an AWS Lambda function to run Amazon Athena queries against a cross-account AWS Glue Data Catalog. A query returns the following error:

HIVE_METASTORE_ERROR -
The error message states that the response payload size exceeds the maximum allowed size. The queried table is already partitioned, and the data is stored in an
Amazon S3 bucket in the Apache Hive partition format.
Which solution will resolve this error?

Answer options

Correct answer: A

Explanation

Option A is correct because uploading the query response payload to S3 and providing a presigned URL allows the Lambda function to bypass the payload size limit. The other options do not address the issue of payload size directly; B focuses on table repair, C involves moving data which does not solve the size issue, and D pertains to schema validation rather than payload size.