An Athena table uses S3 paths partitioned by date and tenant ID; new partitions arrive continuously and must be queryable without catalog updates. Dates follow a predictable range, tenant IDs are unpredictable, and every query supplies one tenant ID and a date range. Which configuration BEST meets these requirements?
Show the answer
Correct answerB. Enable partition projection with date and injected tenant types.
AWhy not this: MSCK REPAIR TABLE registers discovered partitions in the catalog, violating the requirement to avoid catalog updates.
BWhy this is right: Date projection derives dates, while injected projection obtains the unpredictable tenant ID from the query without partition registration.
CWhy not this: A crawler discovers and registers partitions, requiring catalog updates before new partitions become available.
DWhy not this: A partition index speeds up lookup of registered partitions; it does not eliminate partition registration.
Partition projection calculates partition locations without catalog updates. Date projection handles predictable dates, and injected projection uses the tenant value supplied by the query. A partition index accelerates catalog partition lookup but still requires partitions to be registered.