A manufacturing company uses AWS Glue jobs to process IoT sensor data to generate predictive maintenance models. A data engineer needs to implement automated data quality checks to identify temperature readings that are outside the expected range of -50C to 150C. The data quality checks must also identify records that are missing timestamp values. The data engineer needs a solution that requires minimal coding and can automatically flag the specified issues. Which solution will meet these requirements?
-
A
Create an AWS Glue DataBrew project to profile the sensor data Define completeness rules for timestamps. Set up numeric range validation for temperature values.
-
B
Use AWS Glue's Data Quality rules and machine learning (ML)-based anomaly detection to identify missing timestamps and to detect temperature anomalies.
-
C
Create an AWS Lambda function to scan the sensor data files to validate temperature ranges. Use AWS Glue Data Catalog tables to check timestamp completeness.
-
D
Create an AWS Glue DynamicFrame that uses a custom data quality operator to profile the sensor data. Use Amazon SageMaker Data Wrangler transforms to validate timestamps and temperature ranges.
Reveal answer details
Close answer details
A company stores customer data in an Amazon S3 bucket. Multiple teams in the company want to use the customer data for downstream analysis. The company needs to ensure that the teams do not have access to personally identifiable information (PII) about the customers. Which solution will meet this requirement with LEAST operational overhead?
-
A
Use Amazon Macie to create and run a sensitive data discovery job to detect and remove PII.
-
B
Use S3 Object Lambda to access the data, and use Amazon Comprehend to detect and remove PII.
-
C
Use Amazon Kinesis Data Firehose and Amazon Comprehend to detect and remove PII.
-
D
Use an AWS Glue DataBrew job to store the PII data in a second S3 bucket. Perform analysis on the data that remains in the original S3 bucket.
Reveal answer details
Close answer details
A company wants to analyze sales records that the company stores in a MySQL database. The company wants to correlate the records with sales opportunities identified by Salesforce. The company receives 2 GB erf sales records every day. The company has 100 GB of identified sales opportunities. A data engineer needs to develop a process that will analyze and correlate sales records and sales opportunities. The process must run once each night. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Use Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to fetch both datasets. Use AWS Lambda functions to correlate the datasets. Use AWS Step Functions to orchestrate the process.
-
B
Use Amazon AppFlow to fetch sales opportunities from Salesforce. Use AWS Glue to fetch sales records from the MySQL database. Correlate the sales records with the sales opportunities. Use Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to orchestrate the process.
-
C
Use Amazon AppFlow to fetch sales opportunities from Salesforce. Use AWS Glue to fetch sales records from the MySQL database. Correlate the sales records with sales opportunities. Use AWS Step Functions to orchestrate the process.
-
D
Use Amazon AppFlow to fetch sales opportunities from Salesforce. Use Amazon Kinesis Data Streams to fetch sales records from the MySQL database. Use Amazon Managed Service for Apache Flink to correlate the datasets. Use AWS Step Functions to orchestrate the process.
Reveal answer details
Close answer details
Correct answerC
ExplanationProblem Analysis: The company processes 2 GB of daily sales records and 100 GB of Salesforce sales opportunities . The goal is to analyze and correlate the two datasets with low operational overhead . The process must run once nightly . Key Considerations: Amazon AppFlowsimplifies data integration with Salesforce. AWS Gluecan extract data from MySQL and perform ETL operations. Step Functionscan orchestrate workflows with minimal manual intervention. Apache Airflow and Flink add complexity, which conflicts with the requirement for low operational overhead. Solution Analysis: Option A: MWAA + Lambda + Step Functions Requires custom Lambda code for dataset correlation, increasing development and operational complexity. Option B: AppFlow + Glue + MWAA MWAA adds orchestration overhead compared to the simpler Step Functions. Option C: AppFlow + Glue + Step Functions AppFlow fetches Salesforce data, Glue extracts MySQL data, and Step Functions orchestrate the entire process. Minimal setup and operational overhead, making it the best choice. Option D: AppFlow + Kinesis + Flink + Step Functions Using Kinesis and Flink for batch processing introduces unnecessary complexity. Final Recommendation: Use Amazon AppFlow to fetch Salesforce data, AWS Glue to process MySQL data, and Step Functions for orchestration.
A data engineer configures a large number of AWS Glue jobs that all start up around the same time. All the jobs run for less than 1 hour in the same subnet of the same VPC. All the AWS Glue jobs run on a G1 .X worker type. Some of the jobs occasionally fail with the following error: "The specified subnet does not have enough free addresses to satisfy the request". What is the likely root cause of the error?
-
A
There are not enough IP addresses in the subnet.
-
B
The G1 .X worker type cannot access the subnet.
-
C
AWS Glue does not have the correct IAM permissions to add additional IP addresses to the subnet.
-
D
There are not enough IP addresses in the VPC.
Reveal answer details
Close answer details
Correct answerA
ExplanationEach AWS Glue worker requires an elastic network interface (ENI) and consumes an IP address in the subnet. When a large number of Glue jobs start simultaneously, the subnet can run out of available IP addresses. This causes the error "The specified subnet does not have enough free addresses." The root cause is insufficient IPs in the subnet, not the VPC overall.
Question 5
Multiple choice
A company uses an Amazon QuickSight dashboard to monitor usage of one of the company's applications. The company uses AWS Glue jobs to process data for the dashboard. The company stores the data in a single Amazon S3 bucket. The company adds new data every day. A data engineer discovers that dashboard queries are becoming slower over time. The data engineer determines that the root cause of the slowing queries is long-running AWS Glue jobs. Which actions should the data engineer take to improve the performance of the AWS Glue jobs? (Choose two.)
-
A
Partition the data that is in the S3 bucket. Organize the data by year, month, and day.
-
B
Increase the AWS Glue instance size by scaling up the worker type.
-
C
Convert the AWS Glue schema to the DynamicFrame schema class.
-
D
Adjust AWS Glue job scheduling frequency so the jobs run half as many times each day.
-
E
Modify the IAM role that grants access to AWS glue to grant access to all S3 features.
Reveal answer details
Close answer details
Correct answersA, B
ExplanationPartitioning the data in the S3 bucket can improve the performance of AWS Glue jobs by reducing the amount of data that needs to be scanned and processed. By organizing the data by year, month, and day, the AWS Glue job can use partition pruning to filter out irrelevant data and only read the data that matches the query criteria. This can speed up the data processing and reduce the cost of running the AWS Glue job. Increasing the AWS Glue instance size by scaling up the worker type can also improve the performance of AWS Glue jobs by providing more memory and CPU resources for the Spark execution engine. This can help the AWS Glue job handle larger data sets and complex transformations more efficiently. The other options are either incorrect or irrelevant, as they do not affect the performance of the AWS Glue jobs. Converting the AWS Glue schema to the DynamicFrame schema class does not improve the performance, but rather provides additional functionality and flexibility for data manipulation. Adjusting the AWS Glue job scheduling frequency does not improve the performance, but rather reduces the frequency of data updates. Modifying the IAM role that grants access to AWS Glue does not improve the performance, but rather affects the security and permissions of the AWS Glue service. References: Optimising Glue Scripts for Efficient Data Processing: Part 1 (Section: Partitioning Data in S3) Best practices to optimize cost and performance for AWS Glue streaming ETL jobs (Section:Development tools) Monitoring with AWS Glue job run insights (Section: Requirements) AWS Certified Data Engineer - Associate DEA-C01 Complete Study Guide (Chapter 5, page 133)
Question 6
Multiple choice
A company has five offices in different AWS Regions. Each office has its own human resources (HR) department that uses a unique IAM role. The company stores employee records in a data lake that is based on Amazon S3 storage. A data engineering team needs to limit access to the records. Each HR department should be able to access records for only employees who are within the HR department's Region. Which combination of steps should the data engineering team take to meet this requirement with the LEAST operational overhead? (Choose two.)
-
A
Use data filters for each Region to register the S3 paths as data locations.
-
B
Register the S3 path as an AWS Lake Formation location.
-
C
Modify the IAM roles of the HR departments to add a data filter for each department's Region.
-
D
Enable fine-grained access control in AWS Lake Formation. Add a data filter for each Region.
-
E
Create a separate S3 bucket for each Region. Configure an IAM policy to allow S3 access. Restrict access based on Region.
Reveal answer details
Close answer details
Correct answersB, D
ExplanationAWS Lake Formation is a service that helps you build, secure, and manage data lakes on Amazon S3. You can use AWS Lake Formation to register the S3 path as a data lake location, and enable fine-grained access control to limit access to the records based on the HR department's Region. You can use data filters to specify which S3 prefixes or partitions each HR department can access, and grant permissions to the IAM roles of the HR departments accordingly. This solution will meet the requirement with the least operational overhead, as it simplifies the data lake management and security, and leverages the existing IAM roles of the HR departments. The other options are not optimal for the following reasons: Option A: Use data filters for each Region to register the S3 paths as data locations. This option is not possible, as data filters are not used to register S3 paths as data locations, but to grant permissions to access specific S3 prefixes or partitions within a data location. Moreover, this option does not specify how to limit access to the records based on the HR department's Region. Option C: Modify the IAM roles of the HR departments to add a data filter for each department's Region. This option is not possible, as data filters are not added to IAMroles, but to permissions granted by AWS Lake Formation. Moreover, this option does not specify how to register the S3 path as a data lake location, or how to enable fine-grained access control in AWS Lake Formation. Option E: Create a separate S3 bucket for each Region. Configure an IAM policy to allow S3 access. Restrict access based on Region. This option is not recommended, as it would require more operational overhead to create and manage multiple S3 buckets, and to configure and maintain IAM policies for each HR department. Moreover, this option does not leverage the benefits of AWS Lake Formation, such as data cataloging, data transformation, and data governance.
A media company wants to improve a system that recommends media content to customer based on user behavior and preferences. To improve the recommendation system, the company needs to incorporate insights from third-party datasets into the company's existing analytics platform. The company wants to minimize the effort and time required to incorporate third-party datasets. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Use API calls to access and integrate third-party datasets from AWS Data Exchange.
-
B
Use API calls to access and integrate third-party datasets from AWS
-
C
Use Amazon Kinesis Data Streams to access and integrate third-party datasets from AWS CodeCommit repositories.
-
D
Use Amazon Kinesis Data Streams to access and integrate third-party datasets from Amazon Elastic Container Registry (Amazon ECR).
Reveal answer details
Close answer details
Correct answerA
ExplanationAWS Data Exchange is a service that makes it easy to find, subscribe to, and use third-party data in the cloud. It provides a secure and reliable way to access and integrate data from various sources, such as data providers, public datasets, or AWS services. Using AWS Data Exchange, you can browse and subscribe to data products that suit your needs, and then use API calls or the AWS Management Console to export the data to Amazon S3, where you can use it with your existing analytics platform. This solution minimizes the effort and time required to incorporate third-party datasets, as you do not need to set up and manage data pipelines, storage, or access controls. You also benefit from the data quality and freshness provided by the data providers, who can update their data products as frequently as needed. The other options are not optimal for the following reasons: Option B: Use API calls to access and integrate third-party datasets from AWS. This option is vague and does not specify which AWS service or feature is used to access and integrate third-party datasets. AWS offers a variety of services and features that can help with data ingestion, processing, and analysis, but not all of them are suitable for the given scenario. For example, AWS Glue is a serverless data integration service that canhelp you discover, prepare, and combine data from various sources, but it requires you to create and run data extraction, transformation, and loading (ETL) jobs, which can add operational overhead. Option C: Use Amazon Kinesis Data Streams to access and integrate third-party datasets from AWS CodeCommit repositories. This option is not feasible, as AWS CodeCommit is a source control service that hosts secure Git-based repositories, not a data source that can be accessed by Amazon Kinesis Data Streams. Amazon Kinesis Data Streams is a service that enables you to capture, process, and analyze data streams in real time, such as clickstream data, application logs, or IoT telemetry. It does not support accessing and integrating data from AWS CodeCommit repositories, which are meant for storing and managing code, not data . Option D: Use Amazon Kinesis Data Streams to access and integrate third-party datasets from Amazon Elastic Container Registry (Amazon ECR). This option is also not feasible, as Amazon ECR is a fully managed container registry service that stores, manages, and deploys container images, not a data source that can be accessed by Amazon Kinesis Data Streams. Amazon Kinesis Data Streams does not support accessing and integrating data from Amazon ECR, which is meant for storing and managing container images, not data. References: 1: AWS Data Exchange User Guide 2: AWS Data Exchange FAQs 3: AWS Glue Developer Guide AWS CodeCommit User Guide Amazon Kinesis Data Streams Developer Guide Amazon Elastic Container Registry User Guide Build a Continuous Delivery Pipeline for Your Container Images with Amazon ECR as Source
An ecommerce company collects daily customer transaction logs in CSV format and stores the logs in Amazon S3. The company uses Amazon Athena to scan a subset of attributes from the logs on the same day the company receives each log. Query times are increasing because of increasing transaction volume. The company wants to improve query performance. Which solution will meet these requirements with the SHORTEST query times?
-
A
Convert the CSV logs into multiple ORC files for better parallelism in Athena. Partition by date in Amazon S3. Use columnar pushdown filters.
-
B
Convert the CSV logs to JSON. Partition by date in Amazon S3. Use Athena with dynamic filtering to reduce data scans.
-
C
Convert the CSV logs to Avro. Partition by date in Amazon S3. Use Athena with projection-based partitioning.
-
D
Convert the CSV logs to a single Apache Parquet file for each day Partition the data by date in Amazon S3. Use Athena with predicate pushdown filters.
Reveal answer details
Close answer details
A data engineer must maintain and monitor a data pipeline on AWS that processes streaming data from Internet of Things (IoT) devices. The pipeline uses Amazon Kinesis Data Streams to ingest data and Amazon Data Firehose to deliver data to an Amazon S3 bucket. The data engineer needs to monitor the health of the pipeline. Which solution will meet these requirements with the LEAST operational effort?
-
A
Use Amazon CloudWatch Logs to manually review logs that are generated by Kinesis Data Streams and Firehose.
-
B
Configure Amazon CloudWatch alarms to monitor k ey metrics such as IncomingBytes, OutgoingBytes, and DeliveryToS3.Success for Kinesis Data Streams and Firehose
-
C
Use an AWS Lambda function to run daily checks on the status of the Kinesis Data Streams and Firehose. Configure the Lambda function to use Amazon Simple Notification Service (Amazon SNS) to send notifications.
-
D
Use Amazon Managed Service for ApacheFlink to perform near real-time anomaly detection on the streaming data and to invoke alerts if unusual patterns are detected.
Reveal answer details
Close answer details
Question 10
Single choice
A company uses an Amazon S3 Standard bucket to maintain a self-managed transactional data lake that uses Apache Iceberg tables. The data lake ingests data both in real time and in batches. Users report slow performance for real-time tables. A data engineer reviews the real-time tables and notices that the tables are made up of many small data files The data engineer must improve the performance of the real-time tables. Which solution will meet this requirement?
-
A
Expire historic snapshots.
-
B
Archive historic snapshots.
-
C
Delete S3 objects that are not linked from the Iceberg table.
-
D
Reveal answer details
Close answer details
Question 11
Single choice
A company builds a new data pipeline to process data for business intelligence reports. Users have noticed that data is missing from the reports. A data engineer needs to add a data quality check for columns that contain null values and for referential integrity at a stage before the data is added to storage. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Use Amazon SageMaker Data Wrangler to create a Data Quality and Insights report.
-
B
Use AWS Glue ETL jobs to perform a data quality evaluation transform on the data. Use an IsComplete rule on the requested columns. Use a ReferentialItegrity rule for each join.
-
C
Use AWS Glue ETL jobs to perform a SQL transform on the data to determine whether requested column contain null values. Use a second SQL transform to check referential integrity.
-
D
Use Amazon SageMaker Data Wrangler and a custom Python transform to create custom rules to check for null values and referential integrity.
Reveal answer details
Close answer details
Correct answerB
ExplanationAWS Glue's built-in data quality evaluation transform lets you declaratively apply DQDL rules, like IsComplete for null checks and ReferentialIntegrity for joins, directly in your ETL job. This requires minimal custom code and no separate reporting or profiling infrastructure, giving you pre-load validations with the least operational overhead.
Question 12
Single choice
A data engineer needs to analyze time-sensitive sales data. The company stores the data in an Amazon S3 bucket. The data engineer uses AWS GlueData Catalog to access the data. When the data engineer performs the analysis, the data engineer notices that some records are missing or out of date. What is the likely cause of these issues?
-
A
AWS Glue Data Catalog is not up to date with the latest S3 partition changes.
-
B
IncorrectIAM roles are assigned to the AWS Glue jobs.
-
C
Versioning is not enabled on the S3 bucket.
-
D
The AWS Glue job schedules overlap with one another.
Reveal answer details
Close answer details
Question 13
Single choice
A company needs a solution to store and query product data that has variable attributes. The solution must support unpredictable and high-volume queries with single-digit millisecond latency, even during sudden traffic spikes. The solution must retrieve items by a primary identifier named Product ID. The solution must allow flexible queries by secondary attributes named Category and Brand. Which solutionwill meet these requirements?
-
A
Use an Amazon DynamoDB table with on-demand capacity to store product data. Store products by primary key. Use global secondary indexes (GSIs) to store secondary attributes.
-
B
Use Amazon Aurora with a Multi-AZ deployment to store product data. Use read replicas. Create indexes for primary and secondary attributes.
-
C
Use an Amazon OpenSearch Serverless cluster with dynamic scaling to store product data. Index product data by primary and secondary attributes.
-
D
Use Amazon ElastiCache (Redis OSS) and Amazon S3 to store product data. Use Amazon Athena to run flexible secondary attribute queries.
Reveal answer details
Close answer details
Question 14
Single choice
A company uses AWS Glue Apache Spark jobs to handle extract, transform, and load (ETL) workloads. The company has enabled logging and monitoring for all AWS Glue jobs. One of the AWS Glue jobs begins to fail. A data engineer investigates the error and wants to examine metrics for all individual stages within the job. How can the data engineer acce the stage metrics?
-
A
Examine the AWS Glue job and stage details in the Spark UI.
-
B
Examine the AWS Glue job and stage metrics in Amazon CloudWatch.
-
C
Examine the AWS Glue job and stage logs in AWS CloudTrail logs.
-
D
Examine the AWS Glue job and stage details by using the run insights feature on the job.
Reveal answer details
Close answer details
Correct answerA
ExplanationAWS Glue provides a built-in Spark UI (acceible from the Glue console's job run details) that exposes per-stage metrics, such as task counts, shuffle read/write sizes, and execution times, for each Spark stage. This is the most direct way to drill down into the individual stages when troubleshooting a failing Glue Spark job.
Question 15
Single choice
A data engineer needs to build an enterprise data catalog based on the company's Amazon S3 buckets and Amazon RDS databases. The data catalog must include storage format metadata for the data in the catalog. Which solution will meet these requirements with the LEAST effort?
-
A
Use an AWS Glue crawler to scan the S3 buckets and RDS databases and build a data catalog. Use data stewards to inspect the data and update the data catalog with the data format.
-
B
Use an AWS Glue crawler to build a data catalog. Use AWS Glue crawler classifiers to recognize the format of data and store the format in the catalog.
-
C
Use Amazon Macie to build a data catalog and to identify sensitive data elements. Collect the data format information from Macie.
-
D
Use scripts to scan data elements and to assign data classifications based on the format of the data.
Reveal answer details
Close answer details
Question 16
Single choice
A company uses an Amazon Redshift provisioned cluster as its database. The Redshift cluster has five reserved ra3.4xlarge nodes and uses key distribution. A data engineer notices that one of the nodes frequently has a CPU load over 90%. SQL Queries that run on the node are queued. The other four nodes usually have a CPU load under 15% during daily operations. The data engineer wants to maintain the current number of compute nodes. The data engineer also wants to balance the load more evenly across all five compute nodes. Which solution will meet these requirements?
-
A
Change the sort key to be the data column that is most often used in a WHERE clause of the SQL SELECT statement.
-
B
Change the distribution key to the table column that has the largest dimension.
-
C
Upgrade the reserved node from ra3.4xlarqe to ra3.16xlarqe.
-
D
Change the primary key to be the data column that is most often used in a WHERE clause of the SQL SELECT statement.
Reveal answer details
Close answer details
Correct answerB
ExplanationChanging the distribution key to the table column that has the largest dimension will help to balance the load more evenly across all five compute nodes. The distribution key determines how the rows of a table are distributed among the slices of the cluster. If the distribution key is not chosen wisely, it can cause data skew, meaning some slices will have more data than others, resulting in uneven CPU load and query performance. By choosing the table column that has the largest dimension, meaning the column that has the most distinct values, as the distribution key, the data engineer can ensure that the rows are distributed more uniformly across the slices, reducing data skew and improving query performance. The other options are not solutions that will meet the requirements. Option A, changing the sort key to be the data column that is most often used in a WHERE clause of the SQL SELECT statement, will not affect the data distribution or the CPU load. The sort key determines the order in which the rows of a table are stored on disk, which can improve the performance of range-restricted queries, but not the load balancing. Option C, upgrading the reserved node from ra3.4xlarge to ra3.16xlarge, will not maintain the current number of compute nodes, as it will increase the cost and the capacity of the cluster. Option D, changing the primary key to be the data column that is most often used in a WHERE clause of the SQL SELECT statement, will not affect the data distribution or the CPU load either. The primary key is a constraint that enforces the uniqueness of the rows in a table, but it does not influence the data layout or the query optimization. References: Choosing a data distribution style Choosing a data sort key Working with primary keys
Question 17
Single choice
A company runs an Apache Spark application every night in an Amazon EMR cluster. The company uses Amazon EC2 instances to supply compute capacity for the EMR cluster. The company deployed the Spark application in cluster mode. An error occurs in the Spark application. A log for the error is stored in the application's Spark driver standard error logs. A data engineer needs to investigate the error. Where can the data engineer find this error log?
-
A
The engineer can connect to the web UI on the live cluster to see the YARN ResourceManager logs.
-
B
The engineer can connect to the persistent application UI to see the first YARN container log in the Spark UI.
-
C
The engineer can connect to the Amazon EMR console to see the Amazon EMR step logs that are archived in Amazon S3.
-
D
The engineer can connect to the primary node of the cluster by using SSH to see the Spark history server logs.
Reveal answer details
Close answer details
Correct answerC
ExplanationIn EMR cluster mode, the Spark driver runs inside the cluster and its standard error logs are captured as step logs. These logs are automatically archived to Amazon S3 and accessible from the Amazon EMR console under step logs. This is the correct location for investigating Spark driver errors.
Question 18
Single choice
A company runs a multi-tenant Amazon EMR cluster on Amazon EC2 instances. Multiple teams perform interactive query analyses and data transformations on the data in the EMR cluster. The teams can access the cluster only through EMR Studio workspaces and EMR steps. The teams need to use EMR steps to run Apache Spark jobs to fetch data from an Amazon DynamoDB table. The DynamoDB table contains confidential data that must be accessible to only one specific team. The company needs to ensure that only the appropriate team can accessthe confidential data in the EMR cluster. Which solution will meet these requirements?
-
A
Set up runtime roles for EMR steps. Most Voted
-
B
Set up AWS Lake Formation permissions.
-
C
Set up IAM roles for EMR File System (EMRFS) requests.
-
D
Set up a DynamoDB resource-based policy.
Reveal answer details
Close answer details
Question 19
Single choice
A company is developing machine learning (ML) models. A data engineer needs to apply data quality rules to training data. The company stores the training data in an Amazon S3 bucket. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Create an AWS Lambda function to check data quality and to raise exceptions in the code. Run the function when data is added to the S3 bucket. Create an Amazon CloudWatch alarm for exceptions in the code.
-
B
Create an AWS Glue DataBrew project for the data in the S3 bucket. Create a ruleset for the data quality rules. Create a profile job to run the data quality rules. Use Amazon EventBridge to run the profile job when data is added to the S3 bucket.
-
C
Create an Amazon EMR provisioned cluster. Add a Python open source data quality package to the EMR cluster. Use the Python package to write code for data quality rules and to copy the data from the S3 bucket to the EMR cluster. Copy the data from the S3 bucket to the EMR cluster. Run the data quality rules.
-
D
Create AWS Lambda functions to evaluate data quality rules. Use AWS Step Functions to orchestrate a workflow that publishes notifications when the data fails to meet data quality rules.
Reveal answer details
Close answer details
Question 20
Single choice
An insurance company stores transaction data that the company compressed with gzip. The company needs to query the transaction data for occasional audits. Which solution will meet this requirement in the MOST cost-effective way?
-
A
Store the data in Amazon Glacier Flexible Retrieval. Use Amazon S3 Glacier Select to query the data.
-
B
Store the data in Amazon S3. Use Amazon S3 Select to query the data.
-
C
Store the data in Amazon S3. Use Amazon Athena to query the data.
-
D
Store the data in Amazon Glacier Instant Retrieval. Use Amazon Athena to query the data.
Reveal answer details
Close answer details
Question 21
Single choice
A company stores objects in an Amazon S3 bucket. The company crawls the objects so that Amazon Athena can query the data. A data engineer manually moved all objects from the partition with a path prefix of status=01 to the prefix status=02. The status=01 partition location is now empty. However, the status=01 partition location still appears in the AWS Glue Data Catalog metadata. Which Athena command should the data engineer run to resolve the metadata discrepancy?
-
A
-
B
ALTER TABLE DROP PARTITION
-
C
ALTER TABLE SET TBLPROPERTIES
-
D
ALTER TABLE CHANGE COLUMN
Reveal answer details
Close answer details
Question 22
Single choice
A company stores customer records in Amazon S3. The company must not delete or modify the customer record data for 7 years after each record is created. The root user also must not have the ability to delete or modify the data. A data engineer wants to use S3 Object Lock to secure the data. Which solution will meet these requirements?
-
A
Enable governance mode on the S3 bucket. Use a default retention period of 7 years.
-
B
Enable compliance mode on the S3 bucket. Use a default retention period of 7 years.
-
C
Place a legal hold on individual objects in the S3 bucket. Set the retention period to 7 years.
-
D
Set the retention period for individual objects in the S3 bucket to 7 years.
Reveal answer details
Close answer details
Correct answerB
ExplanationThe company wants to ensure that no customer records are deleted or modified for 7 years, and even the root user should not have the ability to change the data. S3 Object Lock Compliance Mode in is the correct solution for this scenario. Option B: Enable compliance mode on the S3 bucket. Use a default retention period of 7 years.In Compliance Mode , even the root user cannot delete or modify locked objects during the retention period. This ensures that the data is protected for the entire 7-year duration as required. Compliance mode is stricter than governance mode and prevents all forms of alteration, even by privileged users. Option A (Governance Mode)still allows certain privileged users (like the root user) to bypass the lock, which does not meet the company's requirement. Option C (legal hold) and Option D (setting retention per object) do not fully address the requirement to block root user modifications.
Question 23
Single choice
A media company uploads large video files to Amazon S3 for processing. After processing, the company needs to keep the original files for 90 days in case the files require reprocessing. After 90 days, the company can delete the files to reduce storage costs. The company stores the processed videos in a different S3 bucket. Which S3 Lifecycle configuration will meet these requirements for the original files MOST cost-effectively?
-
A
Store the files in S3 Standard for 90 days. Transition the files to S3 Glacier Flexible Retrieval for long- term storage. Then expire the files.
-
B
Store the files in S3 Standard for 90 days. Enable versioning. Enable Object Lock on the files for 90 days. Then expire the files.
-
C
Store the files in S3 Standard for 90 days. Implement S3 Lifecycle management to expire the files.
-
D
Store the files in S3 Intelligent-Tiering for 90 days. Enable versioning. Add S3 Lifecycle management to expire the files.
Reveal answer details
Close answer details
Question 24
Single choice
A company needs to use an Aws Glue PySpark job to read specific data from an Amazon DynamoDB table. The company knows the partition key values for the required records. The existing processing logic of the AWS Glue PySpark job requires the data to be in DynamicFrame format. The company needs a solution to ensure that the job reads only the specified data. Which solution will meet this requirement with the MINIMUM number of read capacity units (RCUs)?
-
A
Use the AWS Glue DynamoDB ETL connector to read the DynamoDB table. Use the filter option to read the required partition key.
-
B
Perform a query on the DynamoDB table in the AWS Glue job by using only the sort key in the key condition expression. Load the data into a DynamicFrame.
-
C
Perform a scan on the DynamoDB table in the Aws Glue job. Put the data into a DynamicFrame. Filter the DynamicFrame on the partition key.
-
D
Perform a query on the DynamoDB table in the AWS Glue job. Use the partition key in the key condition expression. Put the data into a DynamicFrame.
Reveal answer details
Close answer details
Question 25
Single choice
A company uses Amazon EMR as an extract, transform, and load (ETL) pipeline to transform data that comes from multiple sources. A data engineer must orchestrate the pipeline to maximize performance. Which AWS service will meet this requirement MOST cost effectively?
-
A
-
B
Amazon Managed workflows for Apache Airflow (Amazon MWAA)
-
C
-
D
Reveal answer details
Close answer details
Question 26
Single choice
How to trigger a Lambda function only when a . csv file is uploaded to an S3 bucket with minimal overhead?
-
A
Create an S3 event notification for s3:ObjectCreated:* with a .csv suffix filter and a Lambda ARN as the destination
-
B
Use the s3:ObjectTagging:* event for objects tagged as .csv
-
C
Use the s3:* event with a .csv suffix filter
-
D
Send S3 events to Amazon SNS and subscribe the Lambda function to the topic
Reveal answer details
Close answer details
Question 27
Multiple choice
A financial company wants to implement a data mesh. The data mesh must support centralized data governance, data analysis, and data access control. The company has decided to use AWS Glue for data catalogs and extract, transform, and load (ETL) operations. Which combination of AWS services will implement a data mesh? (Choose two.)
-
A
Use Amazon Aurora for data storage. Use an Amazon Redshift provisioned cluster for data analysis.
-
B
Use Amazon S3 for data storage. Use Amazon Athena for data analysis.
-
C
Use AWS Glue DataBrewfor centralized data governance and access control.
-
D
Use Amazon RDS for data storage. Use Amazon EMR for data analysis.
-
E
Use AWS Lake Formation for centralized data governance and access control.
Reveal answer details
Close answer details
Correct answersB, E
ExplanationA data mesh is an architectural framework that organizes data into domains and treats data as products that are owned and offered for consumption by different teams. A data mesh requires a centralized layer for data governance and access control, as well as a distributed layer for data storage and analysis. AWS Glue can provide data catalogs and ETL operations for the data mesh, but it cannot provide data governance and access control by itself. Therefore, the company needs to use another AWS service for this purpose. AWS Lake Formation is a service that allows you to create, secure, and manage data lakes on AWS. It integrates with AWS Glue and other AWS services to provide centralized data governance and access control for the data mesh. Therefore, option E is correct. For data storage and analysis, the company can choose from different AWS services depending on their needs and preferences. However, one of the benefits of a data mesh is that it enables data to be stored and processed in a decoupled and scalable way. Therefore, using serverless or managed services that can handle large volumes and varieties of data is preferable. Amazon S3 is a highly scalable, durable, and secure object storage service that can store any type of data. Amazon Athena is a serverless interactive query service that can analyze data in Amazon S3 using standard SQL. Therefore, option B is a good choice for data storage and analysis in a data mesh. Option A, C, and D are not optimal because they either use relational databases that are not suitable for storing diverse and unstructured data, or they require more management and provisioning than serverless services. References: 1: What is a Data Mesh? - Data Mesh Architecture Explained - AWS 2: AWS Glue - Developer Guide 3: AWS Lake Formation - Features [4]: Design a data mesh architecture using AWS Lake Formation and AWS Glue [5]: Amazon S3 - Features [6]: Amazon Athena - Features
Question 28
Single choice
A data engineer needs Amazon Athena queries to finish faster. The data engineer notices that all the files the Athena queries use are currently stored in uncompressed .csv format. The data engineer also notices that users perform most queries by selecting a specific column. Which solution will MOST speed up the Athena query performance?
-
A
Change the data format from .csvto JSON format. Apply Snappy compression.
-
B
Compress the .csv files by using Snappy compression.
-
C
Change the data format from .csvto Apache Parquet. Apply Snappy compression.
-
D
Compress the .csv files by using gzjg compression.
Reveal answer details
Close answer details
Correct answerC
ExplanationAmazon Athena is a serverless interactive query service that allows you to analyze data in Amazon S3 using standard SQL. Athena supports various data formats, such as CSV, JSON, ORC, Avro, and Parquet. However, not all data formats are equally efficient for querying. Some data formats, such as CSV and JSON, are row-oriented, meaning that they store data as a sequence of records, each with the same fields. Row-oriented formats are suitable for loading and exporting data, but they are not optimal for analytical queries that often access only a subset of columns. Row-oriented formats also do not support compression or encoding techniques that can reduce the data size and improve the query performance. On the other hand, some data formats, such as ORC and Parquet, are column-oriented, meaning that they store data as a collection of columns, each with a specific data type. Column-oriented formats are ideal for analytical queries that often filter, aggregate, or join data by columns. Column-oriented formats also support compression and encoding techniques that can reduce the data size and improve the query performance. For example, Parquet supports dictionary encoding, which replaces repeated values with numeric codes, and run-length encoding, which replaces consecutive identical values with a single value and a count. Parquet also supports various compression algorithms, such as Snappy, GZIP, and ZSTD, that can further reduce the data size and improve the query performance. Therefore, changing the data format from CSV to Parquet and applying Snappy compression will most speed up the Athena query performance. Parquet is a column-oriented format that allows Athena to scan only the relevant columns and skip the rest, reducing the amount of data read from S3. Snappy is a compression algorithm that reduces the data size without compromising the query speed, as it is splittable and does not require decompression before reading. This solution will also reduce the cost of Athena queries, as Athena charges based on the amount of data scanned from S3. The other options are not as effective as changing the data format to Parquet and applying Snappy compression. Changing the data format from CSV to JSON and applying Snappy compression will not improve the query performance significantly, as JSON is also a row-oriented format that does not support columnar access or encoding techniques. Compressing the CSV files by using Snappy compression will reduce the data size, but it will not improve the query performance significantly, as CSV is still a row-oriented format that does not support columnar access or encoding techniques. Compressing the CSV files by using gzjg compression will reduce the data size, but it will degrade the query performance, as gzjg is not a splittable compression algorithm and requires decompression before reading.
Question 29
Single choice
A telecommunications company collects network usage data throughout each day at a rate of several thousand data points each second. The company runs an application to process the usage data in real time. The company aggregates and stores the data in an Amazon Aurora DB instance. Sudden drops in network usage usually indicate a network outage. The company must be able to identify sudden drops in network usage so the company can take immediate remedial actions. Which solution will meet this requirement with the LEAST latency?
-
A
Create an AWS Lambda function to query Aurora for drops in network usage. Use Amazon EventBridge to automatically invoke the Lambda function every minute.
-
B
Modify the processing application to publish the data to an Amazon Kinesis data stream. Create an Amazon Managed Service for Apache Flink (previously known as Amazon Kinesis Data Analytics) application to detect drops in network usage.
-
C
Replace the Aurora database with an Amazon DynamoDB table. Create an AWS Lambda function to query the DynamoDB table for drops in network usage every minute. Use DynamoDB Accelerator (DAX) between the processing application and DynamoDB table.
-
D
Create an AWS Lambda function within the Database Activity Streams feature of Aurora to detect drops in network usage.
Reveal answer details
Close answer details
Correct answerB
ExplanationThe telecommunications company needs a low-latency solution to detect sudden drops in network usage from real-time data collected throughout the day. Option B: Modify the processing application to publish the data to an Amazon Kinesis data stream. Create an Amazon Managed Service for Apache Flink (Amazon Kinesis Data Analytics) application to detect drops in network usage.Using Amazon Kinesis with Managed Service for Apache Flink (formerly Kinesis Data Analytics) is ideal for real-time stream processing with minimal latency. Flink can analyze the incoming data stream in real-time and detect anomalies, such as sudden drops in usage, which makes it the best fit for this scenario. Other options (A, C, and D) either introduce unnecessary delays (e.g., querying databases) or do not provide the same real-time, low-latency processing that is critical for this use case. References: Amazon Kinesis Data Analytics for Apache Flink Amazon Kinesis Documentation
Question 30
Single choice
A data engineer needs to create a new empty table in Amazon Athena that has the same schema as an existing table named old-table. Which SQL statement should the data engineer use to meet this requirement?
-
A
CREATE TABLE new_table AS SELECT * FROM old_tables;
-
B
INSERT INTO new_table SELECT * FROM old_table;
-
C
CREATE TABLE new_table (LIKE old_table);
-
D
CREATE TABLE new_table AS (SELECT * FROM old_table) WITH NO DATA;
Reveal answer details
Close answer details
Correct answerD
ExplanationProblem Analysis: The goal is to create a new empty table in Athena with the same schema as an existing table (old_table). The solution must avoid copying any data. Key Considerations: CREATE TABLE AS (CTAS)is commonly used in Athena for creating new tables based on an existing table. Adding the WITH NO DATA clause ensures only the schema is copied, without transferring any data. Solution Analysis: Option A: Copies both schema and data. Does not meet the requirement for an empty table. Option B: Inserts data into an existing table, which does not create a new table. Option C: Creates an empty table but does not copy the schema. Option D: Creates a new table with the same schema and ensures it is empty by using WITH NO DATA. Final Recommendation: Use D. CREATE TABLE new_table AS (SELECT * FROM old_table) WITH NO DATA to create an empty table with the same schema. References: Athena CTAS Queries CREATE TABLE Statement in Athena
Question 31
Single choice
Two data engineering teams use separate AWS accounts. Both teams request access to the same datashare in an Amazon Redshift cluster that is in a third AWS account. The datashare is named salesshare. A data engineer must use the Amazon Redshift SQL interface to grant both data engineering teams' access to the datashare. Which command or commands will meet this requirement?
-
A
GRANT USAGE ON DATASHARE salesshare TO ACCOUNTS '<account ID 1>' AND '<account ID 2>';
-
B
GRANT USAGE ON DATASHARE salesshare TO NAMESPACES '<account ID 1>' AND '<account ID 2>';
-
C
GRANT USAGE ON DATASHARE salesshare TO ACCOUNT '<account ID 1>'; GRANT USAGE ON DATASHARE salesshare TO ACCOUNT '<account ID 2>';
-
D
GRANT USAGE ON DATASHARE salesshare TO NAMESPACE '<account ID 1>'; GRANT USAGE ON DATASHARE salesshare TO NAMESPACE '<account ID 2>';
Reveal answer details
Close answer details
Question 32
Single choice
A company has a data processing pipeline that includes several dozen steps. The data processing pipeline needs to send alerts in real time when a step fails or succeeds. The data processing pipeline uses a combination of Amazon S3 buckets, AWS Lambda functions, and AWS Step Functions state machines. A data engineer needs to create a solution to monitor the entire pipeline. Which solution will meet these requirements?
-
A
Configure the Step Functions state machines to store notifications in an Amazon S3 bucket when the state machines finish running. Enable S3 event notifications on the S3 bucket.
-
B
Configure the AWS Lambda functions to store notifications in an Amazon S3 bucket when the state machines finish running. Enable S3 event notifications on the S3 bucket.
-
C
Use AWS CloudTrail to send a message to an Amazon Simple Notification Service (Amazon SNS) topic that sends notifications when a state machine fails to run or succeeds to run.
-
D
Configure an Amazon EventBridge rule to react when the execution status of a state machine changes. Configure the rule to send a message to an Amazon Simple Notification Service (Amazon SNS) topic that sends notifications.
Reveal answer details
Close answer details
Correct answerD
ExplanationAmazon EventBridge can monitor the execution status of AWS Step Functions state machines and trigger specific actions based on state changes, such as when a state machine succeeds or fails. By configuring an EventBridge rule to capture these execution status changes and forward the details to an Amazon SNS topic, real-time notifications can be sent to alert users. This solution ensures a scalable and event-driven approach to monitoring the entire data processing pipeline in real time.
Question 33
Single choice
A company receives a data file from a partner each day in an Amazon S3 bucket. The company uses a daily AW5 Glue extract, transform, and load (ETL) pipeline to clean and transform each data file. The output of the ETL pipeline is written to a CSV file named Dairy.csv in a second 53 bucket. Occasionally, the daily data file is empty or is missing values for required fields. When the file is missing data, the company can use the previous day's CSV file. A data engineer needs to ensure that the previous day's data file is overwritten only if the new daily file is complete and valid. Which solution will meet these requirements with the LEAST effort?
-
A
Invoke an AWS Lambda function to check the file for missing data and to fill in missing values in required fields.
-
B
Configure the AWS Glue ETL pipeline to use AWS Glue Data Quality rules. Develop rules in Data Quality Definition Language (DQDL) to check for missing values in required files and empty files.
-
C
Use AWS Glue Studio to change the code in the ETL pipeline to fill in any missing values in the required fields with the most common values for each field.
-
D
Run a SQL query in Amazon Athena to read the CSV file and drop missing rows. Copy the corrected CSV file to the second S3 bucket.
Reveal answer details
Close answer details
Correct answerB
ExplanationProblem Analysis: The company runs a daily AWS Glue ETL pipeline to clean and transform files received in an S3 bucket. If a file is incomplete or empty , the previous day's file should be retained. Need a solution to validate files before overwriting the existing file. Key Considerations: Automate data validation with minimal human intervention. Use built-in AWS Glue capabilities for ease of integration. Ensure robust validation for missing or incomplete data. Solution Analysis: Option A: Lambda Function for Validation Lambda can validate files, but it would require custom code. Does not leverage AWS Glue's built-in features, adding operational complexity. Option B: AWS Glue Data Quality Rules AWS Glue Data Quality allows defining Data Quality Definition Language (DQDL) rules. Rules can validate if required fields are missing or if the file is empty. Automatically integrates into the existing ETL pipeline. If validation fails, retain the previous day's file. Option C: AWS Glue Studio with Filling Missing Values Modifying ETL code to fill missing values with most common values risks introducing inaccuracies. Does not handle empty files effectively. Option D: Athena Query for Validation Athena can drop rows with missing values, but this is a post-hoc solution. Requires manual intervention to copy the corrected file to S3, increasing complexity. Final Recommendation: Use AWS Glue Data Quality to define validation rules in DQDL for identifying missing or incomplete data. This solution integrates seamlessly with the ETL pipeline and minimizes manual effort. Implementation Steps: Enable AWS Glue Data Quality in the existing ETL pipeline. Define DQDL Rules , such as: Check if a file is empty. Verify required fields are present and non-null. Configure the pipeline to proceed with overwriting only if the file passes validation. In case of failure, retain the previous day's file. References: AWS Glue Data Quality Overview Defining DQDL Rules AWS Glue Studio Documentation
Question 34
Single choice
A company uses Amazon S3 as a data lake. The company sets up a data warehouse by using a multi-node Amazon Redshift cluster. The company organizes the data files in the data lake based on the data source of each data file. The company loads all the data files into one table in the Redshift cluster by using a separate COPY command for each data file location. This approach takes a long time to load all the data files into the table. The company must increase the speed of the data ingestion. The company does not want to increase the cost of the process. Which solution will meet these requirements?
-
A
Use a provisioned Amazon EMR cluster to copy all the data files into one folder. Use a COPY command to load the data into Amazon Redshift.
-
B
Load all the data files in parallel into Amazon Aurora. Run an AWS Glue job to load the data into Amazon Redshift.
-
C
Use an AWS Glue job to copy all the data files into one folder. Use a COPY command to load the data into Amazon Redshift.
-
D
Create a manifest file that contains the data file locations. Use a COPY command to load the data into Amazon Redshift.
Reveal answer details
Close answer details
Correct answerD
ExplanationThe company is facing performance issues loading data into Amazon Redshift because it is issuing separate COPY commands for each data file location. The most efficient way to increase the speed of data ingestion into Redshift without increasing the cost is to use a manifest file . Option D: Create a manifest file that contains the data file locations. Use a COPY command to load the data into Amazon Redshift.A manifest file provides a list of all the data files, allowing the COPY command to load all files in parallel from different locations in Amazon S3. This significantly improves the loading speed without adding costs, as it optimizes the data loading process in a single COPY operation. Other options (A, B, C) involve additional steps that would either increase the cost (provisioning clusters, using Glue, etc.) or do not address the core issue of needing a unified and efficient COPY process.
Question 35
Single choice
A company stores sensitive data in an Amazon Redshift table. The company needs to give specific users the ability to access the sensitive data. The company must not create duplication in the data. Customer support users must be able to see the last four characters of the sensitive data. Audit users must be able to see the full value of the sensitive data. No other users can have the ability to access the sensitive information. Which solution will meet these requirements?
-
A
Create a dynamic data masking policy to allow access based on each user role. Create IAM roles that have specific access permissions. Attach the masking policy to the column that contains sensitive data.
-
B
Enable metadata security on the Redshift cluster. Create IAM users and IAM roles for the customer support users and the audit users. Grant the IAM users and IAM roles permissions to view the metadata in the Redshift cluster.
-
C
Create a row-level security policy to allow access based on each user role. Create IAM roles that have specific access permissions. Attach the security policy to the table.
-
D
Create an AWS Glue job to redact the sensitive data and to load the data into a new Redshift table.
Reveal answer details
Close answer details
Correct answerA
ExplanationAmazon Redshift's dynamic data masking lets you define masking policies on sensitive columns without duplicating data. You attach a masking policy that exposes only the last four characters to customer support IAM roles, while audit IAM roles see the full values. This meets the requirement for role-based column-level access with no data duplication.
Question 36
Single choice
Files from multiple data sources arrive in an Amazon S3 bucket on a regular basis. A data engineer wants to ingest new les into Amazon Redshift in near real time when the new les arrive in the S3 bucket. Which solution will meet these requirements?
-
A
Use the query editor v2 to schedule a COPY command to load new les into Amazon Redshift.
-
B
Use the zero-ETL integration between Amazon Aurora and Amazon Redshift to load new les into Amazon Redshift.
-
C
Use AWS Glue job bookmarks to extract, transform, and load (ETL) load new les into Amazon Redshift.
-
D
Use S3 Event notifications to invoke an AWS Lambda function that loads new les into Amazon Redshift.
Reveal answer details
Close answer details
Question 37
Single choice
A company needs a solution to manage costs for an existing Amazon DynamoDB table. The company also needs to control the size of the table. The solution must not disrupt any ongoing read or write operations. The company wants to use a solution that automatically deletes data from the table after 1 month. Which solution will meet these requirements with the LEAST ongoing maintenance?
-
A
Use the DynamoDB TTL feature to automatically expire data based on timestamps.
-
B
Configure a scheduled Amazon EventBridge rule to invoke an AWS Lambda function to check for data that is older than 1 month. Configure the Lambda function to delete old data.
-
C
Configure a stream on the DynamoDB table to invoke an AWS Lambda function. Configure the Lambda function to delete data in the table that is older than 1 month.
-
D
Use an AWS Lambda function to periodically scan the DynamoDB table for data that is older than 1 month. Configure the Lambda function to delete old data.
Reveal answer details
Close answer details
Correct answerA
ExplanationThe requirement is to manage the size of an Amazon DynamoDB table by automatically deleting data older than 1 month without disrupting ongoing read or write operations. The simplest and most maintenance-free solution is to use DynamoDB Time-to-Live (TTL) . Option A: Use the DynamoDB TTL feature to automatically expire data based on timestamps. DynamoDB TTL allows you to specify an attribute (e.g., a timestamp) that defines when items in the table should expire. After the expiration time, DynamoDB automatically deletes the items, freeing up storage space and keeping the table size under control without manual intervention or disruptions to ongoing operations. Other options involve higher maintenance and manual scheduling or scanning operations, which increase complexity unnecessarily compared to the native TTL feature. References: DynamoDB Time-to-Live (TTL)
Question 38
Multiple choice
A company uses Amazon RDS for MySQL as the database for a critical application. The database workload is mostly writes, with a small number of reads. A data engineer notices that the CPU utilization of the DB instance is very high. The high CPU utilization is slowing down the application. The data engineer must reduce the CPU utilization of the DB Instance. Which actions should the data engineer take to meet this requirement? (Choose two.)
-
A
Use the Performance Insights feature of Amazon RDS to identify queries that have high CPU utilization. Optimize the problematic queries.
-
B
Modify the database schema to include additional tables and indexes.
-
C
Reboot the RDS DB instance once each week.
-
D
Upgrade to a larger instance size.
-
E
Implement caching to reduce the database query load.
Reveal answer details
Close answer details
Question 39
Single choice
A data engineer must manage the ingestion of real-time streaming data into AWS. The data engineer wants to perform real-time analytics on the incoming streaming data by using time-based aggregations over a window of up to 30 minutes. The data engineer needs a solution that is highly fault tolerant. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Use an AWS Lambda function that includes both the business and the analytics logic to perform time-based aggregations over a window of up to 30 minutes for the data in Amazon Kinesis Data Streams.
-
B
Use Amazon Managed Service for Apache Flink (previously known as Amazon Kinesis Data Analytics) to analyze the data that might occasionally contain duplicates by using multiple types of aggregations.
-
C
Use an AWS Lambda function that includes both the business and the analytics logic to perform aggregations for a tumbling window of up to 30 minutes, based on the event timestamp.
-
D
Use Amazon Managed Service for Apache Flink (previously known as Amazon Kinesis Data Analytics) to analyze the data by using multiple types of aggregations to perform time-based analytics over a window of up to 30 minutes.
Reveal answer details
Close answer details
Question 40
Single choice
A company stores customer data in an Amazon S3 bucket. The company must permanently delete all customer data that is older than 7 years. Which solution will meet this requirement?
-
A
Configure an S3 Lifecycle policy to permanently delete objects that are older than 7 years.
-
B
Use Amazon Athena to query the S3 bucket for objects that are older than 7 years. Configure Athena to delete the results.
-
C
Configure an S3 Lifecycle policy to move objects that are older than 7 years to S3 Glacier Deep Archive.
-
D
Configure an S3 Lifecycle policy to enable S3 Object Lock on all objects that are older than 7 years.
Reveal answer details
Close answer details
Question 41
Single choice
A retail company is expanding its operations globally. The company needs to use Amazon QuickSight to accurately calculate currency exchange rates for financial reports. The company has an existing dashboard that includes a visual that is based on an analysis of a dataset that contains global currency values and exchange rates. A data engineer needs to ensure that exchange rates are calculated with a precision of four decimal places. The calculations must be precomputed. The data engineer must materialize results in QuickSight super-fast, parallel, in-memory calculation engine (SPICE). Which solution will meet these requirements?
-
A
Define and create the calculated field in the dataset.
-
B
Define and create the calculated field in the analysis.
-
C
Define and create the calculated field in the visual.
-
D
Define and create the calculated field in the dashboard.
Reveal answer details
Close answer details
Question 42
Single choice
A gaming company uses Amazon Kinesis Data Streams to collect clickstream data. The company uses Amazon Kinesis Data Firehose delivery streams to store the data in JSON format in Amazon S3. Data scientists at the company use Amazon Athena to query the most recent data to obtain business insights. The company wants to reduce Athena costs but does not want to recreate the data pipeline. Which solution will meet these requirements with the LEAST management effort?
-
A
Change the Firehose output format to Apache Parquet. Provide a custom S3 object YYYYMMDD prefix expression and specify a large buffer size. For the existing data, create an AWS Glue extract, transform, and load (ETL) job. Configure the ETL job to combine small JSON files, convert the JSON files to large Parquet files, and add the YYYYMMDD prefix. Use the ALTER TABLE ADD PARTITION statement to reflect the partition on the existing Athena table.
-
B
Create an Apache Spark job that combines JSON files and converts the JSON files to Apache Parquet files. Launch an Amazon EMR ephemeral cluster every day to run the Spark job to create new Parquet files in a different S3 location. Use the ALTER TABLE SET LOCATION statement to reflect the new S3 location on the existing Athena table.
-
C
Create a Kinesis data stream as a delivery destination for Firehose. Use Amazon Managed Service for Apache Flink (previously known as Amazon Kinesis Data Analytics) to run Apache Flink on the Kinesis data stream. Use Flink to aggregate the data and save the data to Amazon S3 in Apache Parquet format with a custom S3 object YYYYMMDD prefix. Use the ALTER TABLE ADD PARTITION statement to reflect the partition on the existing Athena table.
-
D
Integrate an AWS Lambda function with Firehose to convert source records to Apache Parquet and write them to Amazon S3. In parallel, run an AWS Glue extract, transform, and load (ETL) job to combine the JSON files and convert the JSON files to large Parquet files. Create a custom S3 object YYYYMMDD prefix. Use the ALTER TABLE ADD PARTITION statement to reflect the partition on the existing Athena table.
Reveal answer details
Close answer details
Correct answerA
ExplanationStep 1: Understanding the Problem The company collects clickstream data via Amazon Kinesis Data Streams and stores it in JSON format in Amazon S3 using Kinesis Data Firehose. They use Amazon Athena to query the data, but they want to reduce Athena costs while maintaining the same data pipeline. Since Athena charges based on the amount of data scanned during queries, reducing the data size (by converting JSON to a more efficient format like Apache Parquet ) is a key solution to lowering costs. Step 2: Why Option A is Correct Option Aprovides a straightforward way to reduce costs with minimal management overhead : Changing the Firehose output format to Parquet: Parquet is a columnar data format, which is more compact and efficient than JSON for Athena queries. It significantly reduces the amount of data scanned, which in turn reduces Athena query costs. Custom S3 Object Prefix (YYYYMMDD): Adding a date-based prefix helps in partitioning the data, which further improves query efficiency in Athena by limiting the data scanned to only relevant partitions. AWS Glue ETL Job for Existing Data: To handle existing data stored in JSON format, a one-time AWS Glue ETL job can combine small JSON files, convert them to Parquet, and apply the YYYYMMDD prefix. This ensures consistency in the S3 bucket structure and allows Athena to efficiently query historical data. ALTER TABLE ADD PARTITION: This command updates Athena's table metadata to reflect the new partitions, ensuring that future queries target only the required data. Step 3: Why Other Options Are Not Ideal Option B (Apache Spark on EMR)introduces higher management effort by requiring the setup of Apache Spark jobs and an Amazon EMR cluster . While it achieves the goal of converting JSON to Parquet, it involves running and maintaining an EMR cluster, which adds operational complexity. Option C (Kinesis and Apache Flink)is a more complex solution involving Apache Flink , which adds a real-time streaming layer to aggregate data. Although Flink is a powerful tool for stream processing, it adds unnecessary overhead in this scenario since the company already uses Kinesis Data Firehose for batch delivery to S3. Option D (AWS Lambda with Firehose)suggests using AWS Lambda to convert records in real time. While Lambda can work in some cases, it's generally not the best tool for handling large-scale data transformations like JSON-to-Parquet conversion due to potential scaling and invocation limitations. Additionally, running parallel Glue jobs further complicates the setup. Step 4: How Option A Minimizes Costs By using Apache Parquet , Athena queries become more efficient, as Athena will scan significantly less data, directly reducing query costs. Firehosenatively supports Parquet as an output format, so enabling this conversion in Firehose requires minimal effort. Once set, new data will automatically be stored in Parquet format in S3, without requiring any custom coding or ongoing management. The AWS Glue ETL job for historical data ensures that existing JSON files are also converted to Parquet format, ensuring consistency across the data stored in S3. Conclusion: Option A meets the requirement to reduce Athena costs without recreating the data pipeline, using Firehose's native support for Apache Parquet and a simple one-time AWS Glue ETL job for existing data. This approach involves minimal management effort compared to the other solutions.
Question 43
Single choice
A retail company has a customer data hub in an Amazon S3 bucket. Employees from many countries use the data hub to support company-wide analytics. A governance team must ensure that the company's data analysts can access data only for customers who are within the same country as the analysts. Which solution will meet these requirements with the LEAST operational effort?
-
A
Create a separate table for each country's customer data. Provide access to each analyst based on the country that the analyst serves.
-
B
Register the S3 bucket as a data lake location in AWS Lake Formation. Use the Lake Formation row-level security features to enforce the company's access policies.
-
C
Move the data to AWS Regions that are close to the countries where the customers are. Provide access to each analyst based on the country that the analyst serves.
-
D
Load the data into Amazon Redshift. Create a view for each country. Create separate IAM roles for each country to provide access to data from each country. Assign the appropriate roles to the analysts.
Reveal answer details
Close answer details
Correct answerB
ExplanationAWS Lake Formation is a service that allows you to easily set up, secure, and manage data lakes. One of the features of Lake Formation is row-level security, which enables you to control access to specific rows or columns of data based on the identity or role of the user. This feature is useful for scenarios where you need to restrict access to sensitive or regulated data, such as customer data from different countries. By registering the S3 bucket as a data lake location in Lake Formation, you can use the Lake Formation console or APIs to define and apply row-level security policies to the data in the bucket. You can also use Lake Formation blueprints to automate the ingestion and transformation of data from various sources into the data lake. This solution requires theleast operational effort compared to the other options, as it does not involve creating or moving data, or managing multiple tables, views, or roles. References: AWS Lake Formation Row-Level Security AWS Certified Data Engineer - Associate DEA-C01 Complete Study Guide, Chapter 4: Data Lakes and Data Warehouses, Section 4.2: AWS Lake Formation
Question 44
Multiple choice
A company has a data processing pipeline that runs multiple SQL queries in sequence against an Amazon Redshift cluster. The company merges with a second company. The original company modifies a query that aggregates sales revenue data to join sales tables from both companies. The sales table for the first company is named Table S1. The sales table for the second company is named Table S2. Table S1 contains 10 billion records. Table S2 contains 900 million records. The query becomes slow after the modification. A data engineer must improve the query performance. Which solutions will meet these requirements? (Choose two.)
-
A
Use the KEY distribution style for both sales tables. Select a low cardinality column to use for the join.
-
B
Use the KEY distribution style for both sales tables. Select a high cardinality column to use for the join.
-
C
Use the EVEN distribution style for Table S1. Use the ALL distribution style for Table S2.
-
D
Use the Amazon Redshift query optimizer to review and select optimizations to implement.
-
E
Use Amazon Redshift Advisor to review and select optimizations to implement.
Reveal answer details
Close answer details
Correct answersB, E
ExplanationChoosing KEY distribution on both tables with a high-cardinality join column colocates matching rows across nodes and avoids data skew, improving join performance. Redshift Advisor provides automated, actionable recommendations (e.g., distribution and sort keys, stats) to further optimize the slow query with minimal effort.
Question 45
Single choice
A company needs to set up a data catalog and metadata management for data sources that run in the AWS Cloud. The company will use the data catalog to maintain the metadata of all the objects that are in a set of data stores. The data stores include structured sources such as Amazon RDS and Amazon Redshift. The data stores also include semistructured sources such as JSON files and .xml files that are stored in Amazon S3. The company needs a solution that will update the data catalog on a regular basis. The solution also must detect changes to the source metadata. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Use Amazon Aurora as the data catalog. Create AWS Lambda functions that will connect to the data catalog. Configure the Lambda functions to gather the metadata information from multiple sources and to update the Aurora data catalog. Schedule the Lambda functions to run periodically.
-
B
Use the AWS Glue Data Catalog as the central metadata repository. Use AWS Glue crawlers to connect to multiple data stores and to update the Data Catalog with metadata changes. Schedule the crawlers to run periodically to update the metadata catalog.
-
C
Use Amazon DynamoDB as the data catalog. Create AWS Lambda functions that will connect to the data catalog. Configure the Lambda functions to gather the metadata information from multiple sources and to update the DynamoDB data catalog. Schedule the Lambda functions to run periodically.
-
D
Use the AWS Glue Data Catalog as the central metadata repository. Extract the schema for Amazon RDS and Amazon Redshift sources, and build the Data Catalog. Use AWS Glue crawlers for data that is in Amazon S3 to infer the schema and to automatically update the Data Catalog.
Reveal answer details
Close answer details
Correct answerB
ExplanationThis solution will meet the requirements with the least operational overhead because it uses the AWS Glue Data Catalog as the central metadata repository for data sources that run in the AWS Cloud. The AWS Glue Data Catalog is a fully managed service that provides a unified view of your data assets across AWS and on-premises data sources. It stores the metadata of your data in tables, partitions, and columns, and enables you to access and query your data using various AWS services, such as Amazon Athena, Amazon EMR, and Amazon Redshift Spectrum. You can use AWS Glue crawlers to connect to multiple data stores, such as Amazon RDS, Amazon Redshift, and Amazon S3, and to update the Data Catalog with metadata changes. AWS Glue crawlers can automatically discover the schema and partition structure of your data, and create or update the corresponding tables in the Data Catalog. You can schedule the crawlers to run periodically to update the metadata catalog, and configure them to detect changes to the source metadata, such as new columns, tables, or partitions. The other options are not optimal for the following reasons: Option A: Use Amazon Aurora as the data catalog. Create AWS Lambda functions that will connect to the data catalog. Configure the Lambda functions to gather the metadata information from multiple sources and to update the Aurora data catalog. Schedule the Lambda functions to run periodically. This option is not recommended, as it would require more operational overhead to create and manage an Amazon Aurora database as the data catalog, and to write and maintain AWS Lambda functions to gather and update the metadata information from multiple sources. Moreover, this option would not leverage the benefits of the AWS Glue Data Catalog, such as data cataloging, data transformation, and data governance. Option C: Use Amazon DynamoDB as the data catalog. Create AWS Lambda functions that will connect to the data catalog. Configure the Lambda functions to gather the metadata information from multiple sources and to update the DynamoDB data catalog. Schedule the Lambda functions to run periodically. This option is also not recommended, as it would require more operational overhead to create and manage an Amazon DynamoDB table as the data catalog, and to write and maintain AWS Lambda functions to gather and update the metadata information from multiple sources. Moreover, this option would not leverage the benefits of the AWS Glue Data Catalog, such as data cataloging, data transformation, and data governance. Option D: Use the AWS Glue Data Catalog as the central metadata repository. Extract the schema for Amazon RDS and Amazon Redshift sources, and build the Data Catalog. UseAWS Glue crawlers for data that is in Amazon S3 to infer the schema and to automatically update the Data Catalog. This option is not optimal, as it would require more manual effort to extract the schema for Amazon RDS and Amazon Redshift sources, and to build the Data Catalog. This option would not take advantage of the AWS Glue crawlers' ability to automatically discover the schema and partition structure of your data from various data sources, and to create or update the corresponding tables in the Data Catalog.
Question 46
Multiple choice
A company wants to run SQL analytics across operational data and historical S3 data without copying all operational rows into the warehouse first. The data engineer is evaluating Amazon Redshift capabilities. Which capabilities can help meet this requirement? (Choose two.)
-
A
Use Amazon Redshift federated queries to query supported operational databases.
-
B
Use Amazon Redshift Spectrum to query data stored in Amazon S3.
-
C
Use S3 Transfer Acceleration to rewrite Redshift table blocks.
-
D
Use DynamoDB TTL to expose historical S3 partitions to Redshift.
-
E
Use Amazon SNS topics as external tables.
Reveal answer details
Close answer details
Correct answersA, B
ExplanationRedshift federated queries can access supported operational databases, and Redshift Spectrum can query external data in Amazon S3. S3 Transfer Acceleration speeds some transfers but does not rewrite Redshift storage or provide query federation. DynamoDB TTL handles item expiration. SNS is a notification service, not an external table source for Redshift analytics.
Question 47
Single choice
A data engineer needs to securely transfer 5 TB of data from an on-premises data center to an Amazon S3 bucket. Approximately 5% of the data changes every day. Updates to the data need to be regularly proliferated to the S3 bucket. The data includes files that are in multiple formats. The data engineer needs to automate the transfer process and must schedule the process to run periodically. Which AWS service should the data engineer use to transfer the data in the MOST operationally efficient way?
-
A
-
B
-
C
-
D
Amazon S3 Transfer Acceleration
Reveal answer details
Close answer details
Correct answerA
ExplanationAWS DataSync is an online data movement and discovery service that simplifies and accelerates data migrations to AWS as well as moving data to and from on-premises storage, edge locations, other cloud providers, and AWS Storage services. AWS DataSync can copy data to and from various sources and targets, including Amazon S3, and handle files in multiple formats. AWS DataSync also supports incremental transfers, meaning it can detect and copy only the changes to the data, reducing the amount of data transferred and improving the performance. AWS DataSync can automate and schedule the transfer process using triggers, and monitor the progress and status of the transfers using CloudWatch metrics and events. AWS DataSync is the most operationally efficient way to transfer the data in this scenario, as it meets all the requirements and offers a serverless and scalable solution. AWS Glue, AWS Direct Connect, and Amazon S3 Transfer Acceleration are not the best options for this scenario, as they have some limitations or drawbacks compared to AWS DataSync. AWS Glue is a serverless ETL service that can extract, transform, and load data from various sources to various targets, including Amazon S3. However, AWS Glue is not designed for large-scale data transfers, as it has some quotas and limits on the number and size of files it can process. AWS Glue also does not support incremental transfers, meaning it would have to copy the entire data set every time, which would be inefficient and costly. AWS Direct Connect is a service that establishes a dedicated network connection between your on-premises data center and AWS, bypassing the public internet and improving the bandwidth and performance of the data transfer. However, AWS Direct Connect is not a data transfer service by itself, as it requires additional services or tools to copy the data, such as AWS DataSync, AWS Storage Gateway, or AWS CLI. AWS Direct Connect also has some hardware and location requirements, and charges you for the port hours and data transfer out of AWS. Amazon S3 Transfer Acceleration is a feature that enables faster data transfers to Amazon S3 over long distances, using the AWS edge locations and optimized network paths. However, Amazon S3 Transfer Acceleration is not a data transfer service by itself, as it requires additional services or tools to copy the data, such as AWS CLI, AWS SDK, or third-party software. Amazon S3 Transfer Acceleration also charges you for the data transferred over the accelerated endpoints, and does not guarantee a performance improvement for every transfer, as it depends on various factors such as the network conditions, the distance, and the object size. References: AWS DataSync AWS Glue AWS Glue quotas and limits [AWS Direct Connect] [Data transfer options for AWS Direct Connect] [Amazon S3 Transfer Acceleration] [Using Amazon S3 Transfer Acceleration]
Question 48
Single choice
A company needs to implement a workflow to process transactions. Each transaction goes through multiple levels of validation. Each validation level depends on the preceding validation level. The workflow must either process or reject each transaction within 24-hours. The workflow must run for less than 24 hours total. Which solution will meet these requirements with the LEAST operational cost?
-
A
Create a standard workflow in AWS Step Functions. Implement a Wait for Callback pattern to wait for the validation steps to finish.
-
B
Create an express workflow in AWS Step Functions. Implement a Wait for Callback pattern to wait for the validation steps to finish.
-
C
Use AWS Lambda functions to implement the workflow. Use Amazon EventBridge to invoke the validation steps.
-
D
Use Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to implement the workflow.
Reveal answer details
Close answer details
Correct answerA
ExplanationStandard Step Functions support long-running, sequential workflows and the Wait for Callback pattern without charging for idle wait time, minimizing cost while ensuring completion within 24 hours. Express would bill for long waits, Lambda +EventBridge adds complexity and limits, and MWAA has higher operational overhead and cost.
Question 49
Single choice
A team stores daily Parquet files in Amazon S3 by path pattern s3://company-data/orders/year=YYYY/ month=MM/day=DD/. Analysts query the files with Athena. New partitions are added every day, and the metadata must stay current in AWS Glue Data Catalog with minimal manual work. Which solution should the data engineer use?
-
A
Configure an AWS Glue crawler for the S3 path and schedule it to update the Data Catalog.
-
B
Create a DynamoDB TTL attribute for each S3 partition.
-
C
Run Amazon Redshift VACUUM after each file arrives.
-
D
Use AWS DMS CDC to migrate each partition to the Data Catalog.
Reveal answer details
Close answer details
Correct answerA
ExplanationAWS Glue crawlers can discover schemas and partitions in S3 and update the Data Catalog on a schedule. DynamoDB TTL does not manage catalog metadata. Redshift VACUUM maintains Redshift table storage, not Athena external partitions. AWS DMS migrates database data and does not maintain Glue partition metadata for S3 files.
Question 50
Single choice
A manufacturing company collects sensor data from its factory floor to monitor and enhance operational efficiency. The company uses Amazon Kinesis Data Streams to publish the data that the sensors collect to a data stream. Then Amazon Kinesis Data Firehose writes the data to an Amazon S3 bucket. The company needs to display a real-time view of operational efficiency on a large screen in the manufacturing facility. Which solution will meet these requirements with the LOWEST latency?
-
A
Use Amazon Managed Service for Apache Flink (previously known as Amazon Kinesis Data Analytics) to process the sensor data. Use a connector for Apache Flink to write data to an Amazon Timestream database. Use the Timestream database as a source to create a Grafana dashboard.
-
B
Configure the S3 bucket to send a notification to an AWS Lambda function when any new object is created. Use the Lambda function to publish the data to Amazon Aurora. Use Aurora as a source to create an Amazon QuickSight dashboard.
-
C
Use Amazon Managed Service for Apache Flink (previously known as Amazon Kinesis Data Analytics) to process the sensor data. Create a new Data Firehose delivery stream to publish data directly to an Amazon Timestream database. Use the Timestream database as a source to create an Amazon QuickSight dashboard.
-
D
Use AWS Glue bookmarks to read sensor data from the S3 bucket in real time. Publish the data to an Amazon Timestream database. Use the Timestream database as a source to create a Grafana dashboard.
Reveal answer details
Close answer details
Question 51
Single choice
An analytics workload in Athena scans several terabytes of CSV files each day. Most queries read only a few columns and filter by event_date. The team wants to reduce scanned data and improve query performance. Which data layout should the data engineer choose?
-
A
Convert the data to Apache Parquet and partition the S3 layout by event_date.
-
B
Combine all CSV files into one uncompressed file in a single S3 prefix.
-
C
Convert the data to JSON and remove all partition prefixes.
-
D
Store the data in plain text files with random object key prefixes only.
Reveal answer details
Close answer details
Correct answerA
ExplanationColumnar formats such as Parquet let Athena read only needed columns, and partitioning by event_date lets queries prune irrelevant S3 prefixes. One large CSV file prevents column pruning and reduces parallelism. JSON is still row-oriented for this workload and removing partitions increases scanned data. Random keys do not align with the query filter.
Question 52
Single choice
A company stores sensitive transaction data in an Amazon S3 bucket. A data engineer must implement controls to prevent accidental deletions. Which solution will meet this requirement?
-
A
Enable versioning on the S3 bucket and configure MFA delete.
-
B
Configure an S3 bucket policy rule that denies the creation of S3 delete markers.
-
C
Create an S3 Lifecycle rule that moves deleted files to S3 Glacier Deep Archive.
-
D
Set up AWS Config remediation actions to prevent users from deleting S3 objects.
Reveal answer details
Close answer details
Question 53
Single choice
A company currently stores all of its data in Amazon S3 by using the S3 Standard storage class. A data engineer examined data access patterns to identify trends. During the first 6 months, most data files are accessed several times each day. Between 6 months and 2 years, most data files are accessed once or twice each month. After 2 years, data files are accessed only once or twice each year. The data engineer needs to use an S3 Lifecycle policy to develop new data storage rules. The new storage solution must continue to provide high availability. Which solution will meet these requirements in the MOST cost-effective way?
-
A
Transition objects to S3 One Zone-Infrequent Access (S3 One Zone-IA) after 6 months. Transfer objects to S3 Glacier Flexible Retrieval after 2 years.
-
B
Transition objects to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months. Transfer objects to S3 Glacier Flexible Retrieval after 2 years.
-
C
Transition objects to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months. Transfer objects to S3 Glacier Deep Archive after 2 years.
-
D
Transition objects to S3 One Zone-Infrequent Access (S3 One Zone-IA) after 6 months. Transfer objects to S3 Glacier Deep Archive after 2 years.
Reveal answer details
Close answer details
Correct answerC
ExplanationTo achieve the most cost-effective storage solution, the data engineer needs to use an S3 Lifecycle policy that transitions objects to lower-cost storage classes based on their access patterns, and deletes them when they are no longer needed. The storage classes should also provide high availability, which means they should be resilient to the loss of data in a single Availability Zone. Therefore, the solution must include the following steps: Transition objects to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months. S3 Standard-IA is designed for data that is accessed less frequently, but requires rapid access when needed. It offers the same high durability, throughput, and low latency as S3 Standard, but with a lower storage cost and a retrieval fee. Therefore, it is suitable for data files that are accessed once or twice each month. S3 Standard-IA also provides high availability, as it stores data redundantly across multiple Availability Zones. Transfer objects to S3 Glacier Deep Archive after 2 years. S3 Glacier Deep Archive is the lowest-cost storage class that offers secure and durable storage for data that is rarely accessed and can tolerate a 12- hour retrieval time. It is ideal for long-term archiving and digital preservation. Therefore, it is suitable for data files that are accessed only once or twice each year. S3 Glacier Deep Archive also provides high availability, as it stores data across at least three geographically dispersed Availability Zones. Delete objects when they are no longer needed. The data engineer can specify an expiration action in the S3 Lifecycle policy to delete objects after a certain period of time. This will reduce the storage cost and comply with any data retention policies. Option C is the only solution that includes all these steps. Therefore, option C is the correct answer. Option A is incorrect because it transitions objects to S3 One Zone-Infrequent Access (S3 One Zone-IA) after 6 months. S3 One Zone-IA is similar to S3 Standard-IA, but it stores data in a single Availability Zone. This means it has a lower availability and durability than S3 Standard-IA, and it is not resilient to the loss of data in a single Availability Zone. Therefore, it does not provide high availability as required. Option B is incorrect because it transfers objects to S3 Glacier Flexible Retrieval after 2 years. S3 Glacier Flexible Retrieval is a storage class that offers secure and durable storage for data that is accessed infrequently and can tolerate a retrieval time of minutes to hours. It is more expensive than S3 Glacier Deep Archive, and it is not suitable for data that is accessed only once or twice each year. Therefore, it is not the most cost-effective option. Option D is incorrect because it combines the errors of option A and B. It transitions objects to S3 One Zone-IA after 6 months, which does not provide high availability, and it transfers objects to S3 Glacier Flexible Retrieval after 2 years, which is not the most cost-effective option. References: 1: Amazon S3 storage classes - Amazon Simple Storage Service 2: Amazon S3 Standard-Infrequent Access (S3 Standard-IA) - Amazon Simple Storage Service 3: Amazon S3 Glacier and S3 Glacier Deep Archive - Amazon Simple Storage Service [4]: Expiring objects - Amazon Simple Storage Service [5]: Managing your storage lifecycle - Amazon Simple Storage Service [6]: Examples of S3 Lifecycle configuration - Amazon Simple Storage Service [7]: Amazon S3 Lifecycle further optimizes storage cost savings with new features - What's New with AWS
Question 54
Single choice
A company uses a variety of AWS and third-party data stores. The company wants to consolidate all the data into a central data warehouse to perform analytics. Users need fast response times for analytics queries. The company uses Amazon QuickSight in direct query mode to visualize the data. Users normally run queries during a few hours each day with unpredictable spikes. Which solution will meet these requirements with the LEAST operational overhead?
-
A
Use Amazon Redshift Serverless to load all the data into Amazon Redshift managed storage (RMS).
-
B
Use Amazon Athena to load all the data into Amazon S3 in Apache Parquet format.
-
C
Use Amazon Redshift provisioned clusters to load all the data into Amazon Redshift managed storage (RMS).
-
D
Use Amazon Aurora PostgreSQL to load all the data into Aurora.
Reveal answer details
Close answer details
Correct answerA
ExplanationProblem Analysis: The company requires a centralized data warehouse for consolidating data from various sources. They use Amazon QuickSight in direct query mode , necessitating fast response times for analytical queries. Users query the data intermittently, with unpredictable spikes during the day. Operational overhead should be minimal. Key Considerations: The solution must support fast, SQL-based analytics. It must handle unpredictable spikes efficiently. Must integrate seamlessly with QuickSight for direct querying. Minimize operational complexity and scaling concerns. Solution Analysis: Option A: Amazon Redshift Serverless Redshift Serverless eliminates the need for provisioning and managing clusters. Automatically scales compute capacity up or down based on query demand. Reduces operational overhead by handling performance optimization. Fully integrates with Amazon QuickSight , ensuring low-latency analytics. Reduces costs as it charges only for usage, making it ideal for workloads with intermittent spikes. Option B: Amazon Athena with S3 (Apache Parquet) Athena supports querying data directly from S3 in Parquet format. While it's cost-effective, performance depends on the size and complexity of the data. It is not optimized for high-speed analytics needed by QuickSight in direct query mode. Option C: Amazon Redshift Provisioned Clusters Requires manual cluster provisioning, scaling, and maintenance. Higher operational overhead compared to Redshift Serverless. Option D: Amazon Aurora PostgreSQL Aurora is optimized for transactional databases, not data warehousing or analytics. Does not meet the requirement for fast analytics queries. Final Recommendation: Amazon Redshift Serverlessis the best choice for this use case because it provides fast analytics, integrates natively with QuickSight, and minimizes operational complexity while efficiently handling unpredictable spikes. References: Amazon Redshift Serverless Overview Amazon QuickSight and Redshift Integration Athena vs. Redshift
Question 55
Single choice
A company aggregates high-frequency sensor telemetry into an Amazon S3 data lake. Each sensor stream emits structured records every hour. The records include metadata such as sensor category, unit ID, operational state, event timestamp, and site location. The data scales up to millions of records each day. The company runs complex queries each day to uncover performance insights specific to sensor categories. Which solution will meet these requirements with the FASTEST query execution time?
-
A
Persist the data in Apache ORC format. Partition the data by date. Sort the data by sensor category.
-
B
Persist the data in CSV format. Partition the data by date. Sort the data by operational status.
-
C
Persist the data in Parquet format. Partition the data by sensor category. Sort the data by date
-
D
Persist the data in CSV format. Partition the data by date. Sort the data by sensor category.
Reveal answer details
Close answer details
Question 56
Multiple choice
A data engineer runs Amazon Athena queries on data that is in an Amazon S3 bucket. The Athena queries use AWS Glue Data Catalog as a metadata table. The data engineer notices that the Athena query plans are experiencing a performance bottleneck. The data engineer determines that the cause of the performance bottleneck is the large number of partitions that are in the S3 bucket. The data engineer must resolve the performance bottleneck and reduce Athena query planning time. Which solutions will meet these requirements? (Choose two.)
-
A
Create an AWS Glue partition index. Enable partition filtering.
-
B
Bucket the data based on a column that the data have in common in a WHERE clause of the user query
-
C
Use Athena partition projection based on the S3 bucket prefix.
-
D
Transform the data that is in the S3 bucket to Apache Parquet format.
-
E
Use the Amazon EMR S3DistCP utility to combine smaller objects in the S3 bucket into larger objects.
Reveal answer details
Close answer details
Correct answersA, C
ExplanationThe best solutions to resolve the performance bottleneck and reduce Athena query planning time are to create an AWS Glue partition index and enable partition filtering, and to use Athena partition projection based on the S3 bucket prefix. AWS Glue partition indexes are a feature that allows you to speed up query processing of highly partitioned tables cataloged in AWS Glue Data Catalog. Partition indexes are available for queries in Amazon EMR, Amazon Redshift Spectrum, and AWS Glue ETL jobs. Partition indexes are sublists of partition keys defined in the table. When you create a partition index, you specify a list of partition keys that already exist on a given table. AWS Glue then creates an index for the specified keys and stores it in the DataCatalog. When you run a query that filters on the partition keys, AWS Glue uses the partition index to quickly identify the relevant partitions without scanning the entire table metadata. This reduces the query planning time and improves the query performance. Athena partition projection is a feature that allows you to speed up query processing of highly partitioned tables and automate partition management. In partition projection, Athena calculates partition values and locations using the table properties that you configure directly on your table in AWS Glue. The table properties allow Athena to `project', or determine, the necessary partition information instead of having to do a more time-consuming metadata lookup in the AWS Glue Data Catalog. Because in-memory operations are often faster than remote operations, partition projection can reduce the runtime of queries against highly partitioned tables. Partition projection also automates partition management because it removes the need to manually create partitions in Athena, AWS Glue, or your external Hive metastore. Option B is not the best solution, as bucketing the data based on a column that the data have in common in a WHERE clause of the user query would not reduce the query planning time. Bucketing is a technique that divides data into buckets based on a hash function applied to a column. Bucketing can improve the performance of join queries by reducing the amount of data that needs to be shuffled between nodes. However, bucketing does not affect the partition metadata retrieval, which is the main cause of the performance bottleneck in this scenario. Option D is not the best solution, as transforming the data that is in the S3 bucket to Apache Parquet format would not reduce the query planning time. Apache Parquet is a columnar storage format that can improve the performance of analytical queries by reducing the amount of data that needs to be scanned and providing efficient compression and encoding schemes. However, Parquet does not affect the partition metadata retrieval, which is the main cause of the performance bottleneck in this scenario. Option E is not the best solution, as using the Amazon EMR S3DistCP utility to combine smaller objects in the S3 bucket into larger objects would not reduce the query planning time. S3DistCP is a tool that can copy large amounts of data between Amazon S3 buckets or from HDFS to Amazon S3. S3DistCP can also aggregate smaller files into larger files to improve the performance of sequential access. However, S3DistCP does not affect the partition metadata retrieval, which is the main cause of the performance bottleneck in this scenario.
Question 57
Single choice
A company currently uses a provisioned Amazon EMR cluster that includes general purpose Amazon EC2 instances. The EMR cluster uses EMR managed scaling between one to five task nodes for the company's long-running Apache Spark extract, transform, and load (ETL) job. The company runs the ETL job every day. When the company runs the ETL job, the EMR cluster quickly scales up to five nodes. The EMR cluster often reaches maximum CPU usage, but the memory usage remains under 30%. The company wants to modify the EMR cluster configuration to reduce the EMR costs to run the daily ETL job. Which solution will meet these requirements MOST cost-effectively?
-
A
Increase the maximum number of task nodes for EMR managed scaling to 10.
-
B
Change the task node type from general purpose EC2 instances to memory optimized EC2 instances.
-
C
Switch the task node type from general purpose EC2 instances to compute optimized EC2 instances.
-
D
Reduce the scaling cooldown period for the provisioned EMR cluster.
Reveal answer details
Close answer details
Correct answerC
ExplanationThe company's Apache Spark ETL job on Amazon EMR uses high CPU but low memory, meaning that compute-optimized EC2 instances would be the most cost-effective choice. These instances are designed for high-performance compute applications, where CPU usage is high, but memory needs are minimal, which is exactly the case here. Compute Optimized Instances: Compute-optimized instances, such as the C5 series, provide a higher ratio of CPU to memory, which is more suitable for jobs with high CPU usage and relatively low memory consumption. Switching from general-purpose EC2 instances to compute-optimized instances canreduce costs while improving performance, as these instances are optimized for workloads like Spark jobs that perform a lot of computation.
Question 58
Single choice
A company that operates globally must follow regulations that require data from an AWS Region to be accessible only within that Region. A data engineer is creating a data pipeline that will create resources in the Region where the data engineer works. The data pipeline should have access to data only from the Region where the data engineer works. The pipeline uses Active Directory as an identity and authentication system. The pipeline uses a custom identity broker application to verify that employees are signed in to Active Directory and to obtain temporary credentials by using the AssumeRole API operation. Which solution will meet the locality requirements with the LEAST administrative effort?
-
A
Create an IAM role that has permissions to create resources. Create a policy for each Region that ensures users can create resources only in that Region. Pass the policy as the session policy when employees obtain the temporary credentials.
-
B
Create an IAM role for data engineers in each Region separately. Instruct each data engineer to obtain temporary credentials by assuming the appropriate Region specific IAM role.
-
C
Create an IAM group for each Region. Include the required IAM policies for each IAM group. Add users to each IAM group so that when users log in by obtaining the temporary credentials, the users will receive the appropriate access based on the IAM group.
-
D
Create individual IAM policies that allow users to create resources in a specific Region. Assign the policies to each data engineer. Allow users to assume the individually assigned role when the users log in to AWS.
Reveal answer details
Close answer details
Question 59
Single choice
A company is building a data stream processing application. The application runs in an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. The application stores processed data in an Amazon DynamoDB table. The company needs the application containers in the EKS cluster to have secure access to the DynamoDB table. The company does not want to embed AWS credentials in the containers. Which solution will meet these requirements?
-
A
Store the AWS credentials in an Amazon S3 bucket. Grant the EKS containers access to the S3 bucket to retrieve the credentials.
-
B
Attach an IAM role to the EKS worker nodes. Grant the IAM role access to DynamoDB. Use the IAM role to set up IAM roles service accounts (IRSA) functionality.
-
C
Create an IAM user that has an access key to access the DynamoDB table. Use environment variables in the EKS containers to store the IAM user access key data.
-
D
Create an IAM user that has an access key to access the DynamoDB table. Use Kubernetes secrets that are mounted in a volume of the EKS cluster nodes to store the user access key data.
Reveal answer details
Close answer details
Correct answerB
ExplanationIn this scenario, the company is using Amazon Elastic Kubernetes Service (EKS) and wants secure access to DynamoDB without embedding credentials inside the application containers. The best practice is to useIAM roles for service accounts (IRSA) , which allows assigning IAM roles to Kubernetes service accounts. This lets the EKS pods assume specific IAM roles securely, without the need to store credentials in containers. IAM Roles for Service Accounts (IRSA): With IRSA, each pod in the EKS cluster can assume an IAM role that grants access to DynamoDB without needing to manage long-term credentials. The IAM role can be attached to the service account associated with the pod. This ensures least privilege access, improving security by preventing credentials from being embedded in the containers.
Question 60
Single choice
A company receives a daily file that contains customer data in .xls format. The company stores the file in Amazon S3. The daily file is approximately 2 GB in size. A data engineer concatenates the column in the file that contains customer first names and the column that contains customer last names. The data engineer needs to determine the number of distinct customers in the file. Which solution will meet this requirement with the LEAST operational effort?
-
A
Create and run an Apache Spark job in an AWS Glue notebook. Configure the job to read the S3 file and calculate the number of distinct customers.
-
B
Create an AWS Glue crawler to create an AWS Glue Data Catalog of the S3 file. Run SQL queries from Amazon Athena to calculate the number of distinct customers.
-
C
Create and run an Apache Spark job in Amazon EMR Serverless to calculate the number of distinct customers.
-
D
Use AWS Glue DataBrew to create a recipe that uses the COUNT_DISTINCT aggregate function to calculate the number of distinct customers.
Reveal answer details
Close answer details
Correct answerD
ExplanationAWS Glue DataBrew is a visual data preparation tool that allows you to clean, normalize, and transform data without writing code. You can use DataBrew to create recipes that define the steps to apply to your data, such as filtering, renaming, splitting, or aggregating columns. You can also use DataBrew to run jobs that execute the recipes on your data sources, such as Amazon S3, Amazon Redshift, or Amazon Aurora. DataBrew integrates with AWS Glue Data Catalog, which is a centralized metadata repository for your data assets. The solution that meets the requirement with the least operational effort is to use AWS Glue DataBrew to create a recipe that uses the COUNT_DISTINCT aggregate function to calculate the number of distinct customers. This solution has the following advantages: It does not require you to write any code, as DataBrew provides a graphical user interface that lets you explore, transform, and visualize your data. You can use DataBrew to concatenate the columns that contain customer first names and last names, and then use the COUNT_DISTINCT aggregate function to count the number of unique values in the resulting column. It does not require you to provision, manage, or scale any servers, clusters, or notebooks, as DataBrew is a fully managed service that handles all the infrastructure foryou. DataBrew can automatically scale up or down the compute resources based on the size and complexity of your data and recipes. It does not require you to create or update any AWS Glue Data Catalog entries, as DataBrew can automatically create and register the data sources and targets in the Data Catalog. DataBrew can also use the existing Data Catalog entries to access the data in S3 or other sources. Option A is incorrect because it suggests creating and running an Apache Spark job in an AWS Glue notebook. This solution has the following disadvantages: It requires you to write code, as AWS Glue notebooks are interactive development environments that allow you to write, test, and debug Apache Spark code using Python or Scala. You need to use the Spark SQL or the Spark DataFrame API to read the S3 file and calculate the number of distinct customers. It requires you to provision and manage a development endpoint, which is a serverless Apache Spark environment that you can connect to your notebook. You need to specify the type and number of workers for your development endpoint, and monitor its status and metrics. It requires you to create or update the AWS Glue Data Catalog entries for the S3 file, either manually or using a crawler. You need to use the Data Catalog as a metadata store for your Spark job, and specify the database and table names in your code. Option B is incorrect because it suggests creating an AWS Glue crawler to create an AWS Glue Data Catalog of the S3 file, and running SQL queries from Amazon Athena to calculate the number of distinct customers. This solution has the following disadvantages: It requires you to create and run a crawler, which is a program that connects to your data store, progresses through a prioritized list of classifiers to determine the schema for your data, and then creates metadata tables in the Data Catalog. You need to specify the data store, the IAM role, the schedule, and the output database for your crawler. It requires you to write SQL queries, as Amazon Athena is a serverless interactive query service that allows you to analyze data in S3 using standard SQL. You need to use Athena to concatenate the columns that contain customer first names and last names, and then use the COUNT(DISTINCT) aggregate function to count the number of unique values in the resulting column. Option C is incorrect because it suggests creating and running an Apache Spark job in Amazon EMR Serverless to calculate the number of distinct customers. This solution has the following disadvantages: It requires you to write code, as Amazon EMR Serverless is a service that allows you to run Apache Spark jobs on AWS without provisioning or managing any infrastructure. You need to use the Spark SQL or the Spark DataFrame API to read the S3 file and calculate the number of distinct customers. It requires you to create and manage an Amazon EMR Serverless cluster, which is a fully managed and scalable Spark environment that runs on AWS Fargate. You need to specify the cluster name, the IAM role, the VPC, and the subnet for your cluster, and monitor its status and metrics. It requires you to create or update the AWS Glue Data Catalog entries for the S3 file, either manually or using a crawler. You need to use the Data Catalog as a metadata store for your Spark job, and specify the database and table names in your code. References:
1: AWS Glue DataBrew - Features
2: Working with recipes - AWS Glue DataBrew
3: Working with data sources and data targets - AWS Glue DataBrew
[4]: AWS Glue notebooks - AWS Glue
[5]: Development endpoints - AWS Glue
[6]: Populating the AWS Glue Data Catalog - AWS Glue
[7]: Crawlers - AWS Glue
[8]: Amazon Athena - Features
[9]: Amazon EMR Serverless - Features
[10]: Creating an Amazon EMR Serverless cluster - Amazon EMR
[11]: Using the AWS Glue Data Catalog with Amazon EMR Serverless - Amazon EMR
Question 61
Single choice
A company stores historical customer data in an Amazon Redshift table. A column named Email contains null entries and values that are not email addresses. The quality of the Email column is critical for multiple downstream processes. A data engineer must create an AWS Glue Data Quality rule that fails when the percentage of valid email addresses in the Email column is less than 90%. Which component of an AWS Glue Data Quality rule will meet these requirements?
-
A
Uniqueness "Email" matches "[%@%.%]" with a threshold set to > 0.9
-
B
ColumnValues "Email" matches "[%@%.%]" with a threshold set to > 0.1
-
C
ColumnValues "Email" matches "[%@%.%]" with a threshold set to > 0.9
-
D
UniqueValueRatio "Email" matches "[%@%.%]" with a threshold set to > 0.1
Reveal answer details
Close answer details
|