An AWS Glue crawler uses “Crawl new folders only” for an S3 table, but partitions deleted from S3 remain in the catalog. The next run must reconcile existing folders and remove stale partition metadata; what should the engineer configure?
Show the answer
Correct answerD. Crawl all folders and set the delete behavior to DELETE_FROM_DATABASE.
AWhy not this: Deprecation retains catalog metadata rather than removing stale partition entries.
BWhy not this: Incremental crawling does not detect these deletions, and LOG would not remove catalog entries.
CWhy not this: New-folders-only crawling does not revisit previously crawled locations to detect deleted partitions.
DWhy this is right: A full crawl detects missing partitions, and DELETE_FROM_DATABASE removes their catalog entries.
A full crawl revisits existing folders, and DELETE_FROM_DATABASE removes catalog metadata for deleted partitions. Changing only the delete behavior does not make a new-folders-only crawl detect deletions in previously crawled locations.