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
- A. Modify the Lambda function to upload the query response payload as an object into the S3 bucket. Include an S3 object presigned URL as the payload in the Lambda function response.
- B. Run the MSCK REPAIR TABLE command on the queried table.
- C. Create a separate folder in the S3 bucket. Move the data files that need to be queried into that folder. Create an AWS Glue crawler that points to the folder instead of the S3 bucket.
- D. Check the schema of the queried table for any characters that Athena does not support. Replace any unsupported characters with characters that Athena supports.
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.