Q25 — AWS SAA-C03 Ch.16
Question 25 of 100 | ← Chapter 16
Q1225. Acompany has an application that generates text files based on customer data.The company stores the text files in an Amazon S3 bucket. The company must detect any personally identifiable information (PII) in the text files as quickly as possible.Which solution will meet these requirements?
- A. Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Comprehend.Configure Comprehend to scan the text files and return a result. ✓
- B. Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Polly.Configure Amazon Polly to scan the text files and return a result.
- C. Enable Amazon Kendra,and set the S3 bucket as the source.Create an index,and configure an AWS Lambda function to scan the index to detect PII.
- D. Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Textract.Configure Amazon Textract to scan the text files and return a result.
Correct Answer: A. Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Comprehend.Configure Comprehend to scan the text files and return a result.
Explanation
To meet the requirement of detecting personally identifiable information (PII) in text files stored in an Amazon S3 bucket as quickly as possible, let's analyze the options:Key Requirements:Detect PII: The solution must be able to identify PII in the text files. Quick Detection: The solution should process the files and return results as quickly as possible.Solution Analysis:Amazon Comprehend:Amazon Comprehend is a natural language processing (NLP) service that can analyze text to detect PII, such as names, addresses, phone numbers, and more. It is designed for this purpose and can process text files efficiently.Amazon Polly:Amazon Polly is a text-to-speech service that converts text into lifelike speech. It is not designed for PII detection and is irrelevant to the requirement.Amazon Kendra:Amazon Kendra is an intelligent search service powered by machine learning. While it can index and search content, it is not designed for PII detection. Kendra is more focused on enabling search capabilities rather than analyzing text for sensitive information.Amazon Textract:Amazon Textract is a service that automatically extracts text and data from scanned documents. While it can extract text, it is not specialized for PII detection. Its primary use case is for document processing (e.g., forms, invoices) rather than analyzing text for sensitive information.Evaluating the Options:Option A: Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Comprehend. Configure Comprehend to scan the text files and return a result. Correct: Amazon Comprehend is the appropriate service for detecting PII in text files. A Lambda function can trigger on S3 events (e.g., file uploads) and send the files to Comprehend for analysis. Option B: Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Polly. Configure Amazon Polly to scan the text files and return a result. Incorrect: Amazon Polly is for text-to-speech and cannot detect PII. Option C: Enable Amazon Kendra, and set the S3 bucket as the source. Create an index, and configure an AWS Lambda function to scan the index to detect PII.Incorrect: Amazon Kendra is for search and indexing, not PII detection. Option D: Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Textract. Configure Amazon Textract to scan the text files and return a result. Incorrect: Amazon Textract is for extracting text from documents, not for detecting PII.Final Answer:A. Configure an AWS Lambda function to send the text files from the S3 bucket to Amazon Comprehend. Configure Comprehend to scan the text files and return a result.