πŸ”

DEA-C01 β€” questions

Page 13 of 16 Β· 313 total questions.

Topic 1 Β· Question 241

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 access the stage metrics?

  • AExamine the AWS Glue job and stage details in the Spark UI. (correct answer)
  • BExamine the AWS Glue job and stage metrics in Amazon CloudWatch.
  • CExamine the AWS Glue job and stage logs in AWS CloudTrail logs.
  • DExamine the AWS Glue job and stage details by using the run insights feature on the job.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Examine the AWS Glue job and stage details in the Spark UI.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 242

A data engineer notices slow query performance on a highly partitioned table that is in Amazon Athena. The table contains daily data for the previous 5 years, partitioned by date. The data engineer wants to improve query performance and to automate partition management. Which solution will meet these requirements?

  • AUse an AWS Lambda function that runs daily. Configure the function to manually create new partitions in AWS Glue for each day’s data.
  • BUse partition projection in Athena. Configure the table properties by using a date range from 5 years ago to the present. (correct answer)
  • CReduce the number of partitions by changing the partitioning schema from daily to monthly granularity.
  • DIncrease the processing capacity of Athena queries by allocating more compute resources.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use partition projection in Athena. Configure the table properties by using a date range from 5 years ago to the present.

Explanation

Amazon Athena runs serverless SQL queries directly on data in Amazon S3 with no infrastructure to manage. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 243 Β· Select all that apply

A data engineer is using an Apache Iceberg framework to build a data lake that contains 100 Π’Π’ of data. The data engineer wants to run AWS Glue Apache Spark jobs that use the Iceberg framework. What combination of steps will meet these requirements? (Choose two.)

  • ACreate a key named --conf for an AWS Glue job. Set Iceberg as a value for the --datalake-formats job parameter.
  • BSpecify the path to a specific version of Iceberg by using the -extra-jars job parameter. Set Iceberg as a value for the datalake-formats job parameter.
  • CSet Iceberg as a value for the --datalake-formats job parameter. (correct answer)
  • DSet the --enable-auto-scaling parameter to true. (correct answer)
  • EAdd the --job-bookmark-option: job-bookmark-enable parameter to an AWS Glue job.
Reveal answer & explanation
Correct answer: C, D

The correct answer is C, D. Option C: Set Iceberg as a value for the --datalake-formats job parameter. Option D: Set the --enable-auto-scaling parameter to true.

Topic 1 Β· Question 244

A data engineer is configuring an AWS Glue Apache Spark extract, transform, and load (ETL) job. The job contains a sort-merge join of two large and equally sized DataFrames. The job is failing with the following error: No space left on device. Which solution will resolve the error?

  • AUse the AWS Glue Spark shuffle manager. (correct answer)
  • BDeploy are Amazon Elastic Block Store (Amazon EBS) volume for the job to use.
  • CConvert the sort-merge join in the job to be a broadcast join.
  • DConvert the DataFrames to DynamicFrames, and perform a DynamicFrame join in the job.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the AWS Glue Spark shuffle manager.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 245

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?

  • ACreate a standard workflow in AWS Step Functions. Implement a Wait for Callback pattern to wait for the validation steps to finish. (correct answer)
  • BCreate an express workflow in AWS Step Functions. Implement a Wait for Callback pattern to wait for the validation steps to finish.
  • CUse AWS Lambda functions to implement the workflow. Use Amazon EventBridge to invoke the validation steps.
  • DUse Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to implement the workflow.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a standard workflow in AWS Step Functions. Implement a Wait for Callback pattern to wait for the validation steps to finish.

Explanation

AWS Step Functions coordinates multi-step workflows as a managed state machine.

Topic 1 Β· Question 246

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?

  • AThe engineer can connect to the web UI on the live cluster to see the YARN ResourceManager logs.
  • BThe engineer can connect to the persistent application UI to see the first YARN container log in the Spark UI. (correct answer)
  • CThe engineer can connect to the Amazon EMR console to see the Amazon EMR step logs that are archived in Amazon S3.
  • DThe engineer can connect to the primary node of the cluster by using SSH to see the Spark history server logs.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: The engineer can connect to the persistent application UI to see the first YARN container log in the Spark UI.

Topic 1 Β· Question 247

A company processes 500 GB of audience and advertising data daily, storing CSV files in Amazon S3 with schemas registered in AWS Glue Data Catalog. They need to convert these files to Apache Parquet format and store them in an S3 bucket. The solution requires a long-running workflow with 15 GiB memory capacity to process the data concurrently, followed by a correlation process that begins only after the first two processes complete. Which solution will meet these requirements with the LEAST operational overhead?

  • AUse Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to orchestrate the workflow by using AWS Glue. Configure AWS Glue to begin the third process after the first two processes have finished.
  • BUse Amazon EMR to run each process in the workflow. Create an Amazon Simple Queue Service (Amazon SQS) queue to handle messages that indicate the completion of the first two processes. Configure an AWS Lambda function to process the SQS queue by running the third process.
  • CUse AWS Glue workflows to run the first two processes in parallel. Ensure that the third process starts after the first two processes have finished. (correct answer)
  • DUse AWS Step Functions to orchestrate a workflow that uses multiple AWS Lambda functions. Ensure that the third process starts after the first two processes have finished.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use AWS Glue workflows to run the first two processes in parallel. Ensure that the third process starts after the first two processes have finished.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 248

A company uses an organization in AWS Organizations to manage multiple AWS accounts. The company uses an enhanced fanout data stream in Amazon Kinesis Data Streams to receive streaming data from multiple producers. The company runs the data stream in an account named Account A. The company wants to use an AWS Lambda function in an account named Account Π’ to process the data from the data stream. The company creates a Lambda execution role in Account Π’ that has permissions to access data from the data stream in Account A. What additional step must the company take to meet this requirement?

  • ACreate a service control policy (SCP) to grant the data stream read access to the cross-account Lambda execution role. Attach the SCP to Account A.
  • BAdd a resource-based policy to the data stream to allow read access for the cross-account Lambda execution role. (correct answer)
  • CCreate a service control policy (SCP) to grant the data stream read access to the cross-account Lambda execution role. Attach the SCP to Account B.
  • DAdd a resource-based policy to the cross-account Lambda function to grant the data stream read access to the function.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Add a resource-based policy to the data stream to allow read access for the cross-account Lambda execution role.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 249

A company needs to use Amazon Athena to analyze data that is in an Amazon S3 bucket. A data engineer needs to configure AWS Glue table partitions for year, month, and day. The data engineer needs to create the partitions every day to adjust to schema changes in the data. Which solution will meet these requirements?

  • AUse AWS Glue DataBrew to create the partitions for the AWS Glue table.
  • BUse an AWS Lambda function to create the partitions for the AWS Glue table.
  • CSet partition projection properties for the AWS Glue table. (correct answer)
  • DConfigure an AWS Glue crawler to run on a set schedule.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Set partition projection properties for the AWS Glue table.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 250

A data engineer is building a solution to detect sensitive information that is stored in a data lake across multiple Amazon S3 buckets. The solution must detect personally identifiable information (PII) that is in a proprietary data format. Which solution will meet these requirements with the LEAST operational overhead?

  • AUse the AWS Glue Detect PII transform with specific patterns.
  • BUse Amazon Made with managed data identifiers. (correct answer)
  • CUse an AWS Lambda function with custom regular expressions.
  • DUse Amazon Athena with a SQL query to match the custom formats.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Amazon Made with managed data identifiers.

Topic 1 Β· Question 251

A ride-sharing company stores records for all rides in an Amazon DynamoDB table. The table includes the following columns and types of values: The table currently contains billions of items. The table is partitioned by RideID and uses TripStartTime as the sort key. The company wants to use the data to build a personal interface to give drivers the ability to view the rides that each driver has completed, based on RideStatus. The solution must access the necessary data without scanning the entire table. Which solution will meet these requirements?

  • ACreate a local secondary index (LSI) on DriverID.
  • BCreate a global secondary index (GSI) that uses RiderID as the partition key and RideStatus as the sort key.
  • CCreate a global secondary index (GSI) that uses DriverID as the partition key and RideStatus as the sort key. (correct answer)
  • DCreate a filter expression that uses RiderID and RideStatus.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a global secondary index (GSI) that uses DriverID as the partition key and RideStatus as the sort key.

Topic 1 Β· Question 252

A company stores information about its subscribers in an Amazon S3 bucket. The company runs an analysis every time a subscriber ends their subscription. The company uses AWS Lambda functions to respond to events from the S3 bucket by performing analyses. The Lambda functions clean data from the S3 bucket and initiate an AWS Glue workflow. The Lambda functions have 128 MB of memory and 512 MB of ephemeral storage. The Lambda functions have a timeout of 15 seconds. All three functions successfully finish running. However, CPU usage is often near 100%, which causes slow performance. The company wants to improve the performance of the functions and reduce the total runtime of the pipeline. Which solution will meet these requirements?

  • AIncrease the memory of the Lambda functions to 512 MB. (correct answer)
  • BIncrease the number of retries by using the Maximum Retry Attempts setting.
  • CConfigure the Lambda functions to run in the company's VPC.
  • DIncrease the timeout value for the Lambda functions from 15 seconds to 30 seconds.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Increase the memory of the Lambda functions to 512 MB.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead.

Topic 1 Β· Question 253

A company uses a data stream in Amazon Kinesis Data Streams to collect transactional data from multiple sources. The company uses an AWS Glue extract, transform, and load (ETL) pipeline to look for outliers in the data from the stream. When the workflow detects an outlier, it sends a notification to an Amazon Simple Notification Service (Amazon SNS) topic. The SNS topic initiates a second workflow to retrieve logs for the outliers and stores the logs in an Amazon S3 bucket. The company experiences delays in the notifications to the SNS topic during periods when the data stream is processing a high volume of data. When the company examines Amazon CloudWatch logs, the company notices a high value for the glue.driver.BlockManager.disk.diskSpaceUsed_MB metric when the traffic is high. The company must resolve this issue. Which solution will meet this requirement with the LEAST operational effort?

  • AIncrease the number of data processing units (DPUs) in AWS Glue ETL jobs.
  • BUse Amazon EMR to manage the ETL pipeline instead of AWS Glue.
  • CUse AWS Step Functions to orchestrate a parallel workflow state.
  • DEnable auto scaling for the AWS Glue ETL jobs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable auto scaling for the AWS Glue ETL jobs.

Explanation

Auto Scaling adjusts capacity automatically to match demand, improving availability and cost efficiency. AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 254

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.)

  • AUse the KEY distribution style for both sales tables. Select a low cardinality column to use for the join.
  • BUse the KEY distribution style for both sales tables. Select a high cardinality column to use for the join.
  • CUse the EVEN distribution style for Table S1. Use the ALL distribution style for Table S2.
  • DUse the Amazon Redshift query optimizer to review and select optimizations to implement. (correct answer)
  • EUse Amazon Redshift Advisor to review and select optimizations to implement.
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the Amazon Redshift query optimizer to review and select optimizations to implement.

Explanation

Amazon Redshift is a managed petabyte-scale data warehouse for complex analytical queries.

Topic 1 Β· Question 255 Β· Select all that apply

A gaming company uses AWS Glue to perform read and write operations on Apache Iceberg tables for real-time streaming data. The data in the Iceberg tables is in Apache Parquet format. The company is experiencing slow query performance. Which solutions will improve query performance? (Choose two.)

  • AUse AWS Glue Data Catalog to generate column-level statistics for the Iceberg tables on a schedule. (correct answer)
  • BUse AWS Glue Data Catalog to automatically compact the Iceberg tables. (correct answer)
  • CUse AWS Glue Data Catalog to automatically optimize indexes for the Iceberg tables.
  • DUse AWS Glue Data Catalog to enable copy-on-write for the Iceberg tables.
  • EUse AWS Glue Data Catalog to generate views for the Iceberg tables.
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Use AWS Glue Data Catalog to generate column-level statistics for the Iceberg tables on a schedule. Option B: Use AWS Glue Data Catalog to automatically compact the Iceberg tables.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 256

A data engineer at a company is optimizing extract, transform, and load (ETL) workflows. The current architecture uses Amazon EMR and Apache Spark for large-scale transformations and AWS Glue for other ETL tasks. The workflows load processed data into an Amazon S3 based data lake. The company wants to move to a fully managed serverless solution that can orchestrate multiple ETL jobs and automate execution. The new solution must continue to use Spark to process data. The company needs to orchestrate and automate the ETL workflows with minimal manual intervention. Which solution will meet these requirements?

  • AMigrate all ETL jobs to AWS Glue. Use AWS Glue workflows to orchestrate the pipeline. (correct answer)
  • BConfigure AWS Step Functions and Amazon EventBridge to orchestrate and invoke ETL workflows in AWS Glue and Amazon EMR.
  • CConfigure AWS Lambda functions to process Amazon S3 event notifications for data transformation tasks when new data is uploaded.
  • DUse Amazon Managed Workflows for Apache Airflow automatic scheduling to orchestrate the Spark-based ETL jobs.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Migrate all ETL jobs to AWS Glue. Use AWS Glue workflows to orchestrate the pipeline.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 257

A company needs to aggregate and filter a large amount of streaming data in real-time with low latency. The company needs to store the data in Amazon S3 for analysis. Which solution will meet these requirements in the MOST operationally efficient way?

  • AUse Amazon Kinesis Data Streams with provisioned capacity and AWS Lambda functions to perform custom transformations and to integrate with Amazon S3.
  • BUse Amazon Data Firehose with built-in data transformations. Deliver the data directly to Amazon S3. (correct answer)
  • CUse Amazon Kinesis Data Streams and Amazon Managed Service for Apache Flink to perform complex processing and to integrate with Amazon S3.
  • DUse Amazon Data Firehose and AWS Lambda functions to perform custom transformations and to deliver the data to Amazon S3.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Amazon Data Firehose with built-in data transformations. Deliver the data directly to Amazon S3.

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 258

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?

  • ACreate 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.
  • BCreate 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. (correct answer)
  • CCreate 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.
  • DCreate 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 & explanation
Correct answer: B

The correct answer is B. Option 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 da...

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. Amazon EventBridge routes events between services with rules, enabling event-driven, decoupled architectures. AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 259

A retail company stores point-of-sale transaction data in an Amazon RDS for MySQL database. The company maintains historical sales analytics in Amazon Redshift. The company needs to create daily reports that combine the current day's transactions with historical sales patterns for trend analysis. The company requires a solution that provides near real-time insights while minimizing data transfer costs and maintenance overhead. Which solution will meet these requirements?

  • AConfigure AWS Database Migration Service (AWS DMS) to continuously replicate data from RDS for MySQL to Amazon Redshift. Use Redshift queries to create consolidated reports.
  • BImplement Amazon Redshift federated queries to directly access RDS for MySQL data and join it with existing Redshift tables in a single query. (correct answer)
  • CUse AWS Glue to create an extract, transform, and load (ETL) pipeline that runs every hour to copy incremental data from RDS for MySQL to Amazon Redshift. Generate reports.
  • DExport RDS for MySQL data to an Amazon S3 bucket on a regular schedule. Use the COPY command to load the data into Amazon Redshift staging tables. Join the data with historical data.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Implement Amazon Redshift federated queries to directly access RDS for MySQL data and join it with existing Redshift tables in a single query.

Explanation

Amazon RDS is a managed relational database that handles patching, backups and failover. Amazon Redshift is a managed petabyte-scale data warehouse for complex analytical queries. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 260

A company needs to implement a data mesh architecture in which domains for trading, risk, and compliance teams each have own their data. The teams need to share specific views with one another. The teams have over 1,000 tables across 50 databases in AWS Glue Data Catalog. All three teams use Amazon Athena to perform on-demand analysis. The teams use Amazon Redshift to generate complex reports. The compliance team must audit all data access. Access to personally identifiable information (PII) data must be restricted. The company requires a scalable solution to meet the team requirements. The solution must provide the ability to perform analysis across team domains. Which solution will meet these requirements?

  • ACreate views in Athena for on-demand analysis. Use the Athena views in Amazon Redshift to perform cross-domain analytics. Use AWS CloudTrail to audit data access. Use AWS Lake Formation to establish fine-grained access control. (correct answer)
  • BUse AWS Glue Data Catalog views to perform analysis. Use AWS CloudTrail logs to audit data access. Use AWS Lake Formation to manage access permissions. Use security definer views to mask PII.
  • CUse AWS Lake Formation to set up cross-domain access to tables. Set up fine-grained access controls.
  • DCreate materialized views and enable Amazon Redshift datashares for each domain. Configure cross-domain access policies.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create views in Athena for on-demand analysis. Use the Athena views in Amazon Redshift to perform cross-domain analytics. Use AWS CloudTrail to audit data access. Use AWS Lake Formation to establish fine-grained acces...

Explanation

Amazon Redshift is a managed petabyte-scale data warehouse for complex analytical queries. Amazon Athena runs serverless SQL queries directly on data in Amazon S3 with no infrastructure to manage. AWS Lake Formation builds and secures data lakes quickly.

Showing questions 241–260 of 313 Β· Page 13 of 16