AWS Certified Data Engineer – Associate (DEA-C01) — Question 209
A data engineer uses AWS Lake Formation to manage access to data that is stored in an Amazon S3 bucket. The data engineer configures an AWS Glue crawler to discover data at a specific file location in the bucket, s3://examplepath. The crawler execution fails with the following error: “The S3 location: s3://examplepath is not registered.”
The data engineer needs to resolve the error.
Which solution will meet this requirement?
Answer options
- A. Attach an appropriate IAM policy to the IAM role of the AWS Glue crawler to grant the crawler permission to read the S3 location.
- B. Register the S3 location in Lake Formation to allow the crawler to access the data.
- C. Create a new AWS Glue database. Assign the correct permissions to the database for the crawler.
- D. Configure the S3 bucket policy to allow cross-account access.
Correct answer: B
Explanation
The correct answer is B because Lake Formation requires that S3 locations be registered to manage access effectively. The other options do not address the registration issue directly; option A deals with permissions, option C involves creating a new database, and option D pertains to bucket policies, none of which solve the registration problem.