DEA-C01 sample exam questions
15 exam-style questions for AWS DEA-C01: Data Engineer Associate, with answers and explanations. Take them as a timed practice exam first if you want a score out of 1000.
- A company uses an on-premises Microsoft SQL Server database to store financial transaction data. The company migrates the transaction data from the on-premises database to AWS at the end of each month. The company has noticed that the cost to migrate data from the on-premises database to an Amazon RDS for SQL Server database has increased recently.
The company requires a cost-effective solution to migrate the data to AWS. The solution must cause minimal downtown for the applications that access the database.
Which AWS service should the company use to meet these requirements?- AAWS Lambda
- BAWS Database Migration Service (AWS DMS)
- CAWS Direct Connect
- DAWS DataSync
Show answer
Correct answer: B
WhyAWS DMS migrates databases to RDS with minimal downtime, and it can keep replicating changes. Lambda would need custom code, Direct Connect is only a link, and DataSync moves files rather than database transactions.
- A
- A company has a production AWS account that runs company workloads. The company's security team created a security AWS account to store and analyze security logs from the production AWS account. The security logs in the production AWS account are stored in Amazon CloudWatch Logs.
The company needs to use Amazon Kinesis Data Streams to deliver the security logs to the security AWS account.
Which solution will meet these requirements?- ACreate a destination data stream in the production AWS account. In the security AWS account, create an IAM role that has cross-account permissions to Kinesis Data Streams in the production AWS account.
- BCreate a destination data stream in the security AWS account. Create an IAM role and a trust policy to grant CloudWatch Logs the permission to put data into the stream. Create a subscription filter in the security AWS account.
- CCreate a destination data stream in the production AWS account. In the production AWS account, create an IAM role that has cross-account permissions to Kinesis Data Streams in the security AWS account.
- DCreate a destination data stream in the security AWS account. Create an IAM role and a trust policy to grant CloudWatch Logs the permission to put data into the stream. Create a subscription filter in the production AWS account.
Show answer
Correct answer: D
WhyThe stream belongs in the security account, an IAM role lets CloudWatch Logs put data into it, and the subscription filter is created in the production account where the logs are. A filter in the security account would have no logs to read, and a stream in production does not deliver the data to the security account.
- A
- A company is planning to upgrade its Amazon Elastic Block Store (Amazon EBS) General Purpose SSD storage from gp2 to gp3. The company wants to prevent any interruptions in its Amazon EC2 instances that will cause data loss during the migration to the upgraded storage.
Which solution will meet these requirements with the LEAST operational overhead?- ACreate snapshots of the gp2 volumes. Create new gp3 volumes from the snapshots. Attach the new gp3 volumes to the EC2 instances.
- BCreate new gp3 volumes. Gradually transfer the data to the new gp3 volumes. When the transfer is complete, mount the new gp3 volumes to the EC2 instances to replace the gp2 volumes.
- CChange the volume type of the existing gp2 volumes to gp3. Enter new values for volume size, IOPS, and throughput.
- DUse AWS DataSync to create new gp3 volumes. Transfer the data from the original gp2 volumes to the new gp3 volumes.
Show answer
Correct answer: C
WhyAn existing gp2 volume can be changed to gp3 in place through Elastic Volumes, with no detachment or interruption. Snapshots, new volumes and data transfers all take more work and can cause disruption.
- A
- A company is developing an application that runs on Amazon EC2 instances. Currently, the data that the application generates is temporary. However, the company needs to persist the data, even if the EC2 instances are terminated.
A data engineer must launch new EC2 instances from an Amazon Machine Image (AMI) and configure the instances to preserve the data.
Which solution will meet this requirement?- ALaunch new EC2 instances by using an AMI that is backed by an EC2 instance store volume that contains the application data. Apply the default settings to the EC2 instances.
- BLaunch new EC2 instances by using an AMI that is backed by a root Amazon Elastic Block Store (Amazon EBS) volume that contains the application data. Apply the default settings to the EC2 instances.
- CLaunch new EC2 instances by using an AMI that is backed by an EC2 instance store volume. Attach an Amazon Elastic Block Store (Amazon EBS) volume to contain the application data. Apply the default settings to the EC2 instances.
- DLaunch new EC2 instances by using an AMI that is backed by an Amazon Elastic Block Store (Amazon EBS) volume. Attach an additional EC2 instance store volume to contain the application data. Apply the default settings to the EC2 instances.
Show answer
Correct answer: C
WhyA separately attached EBS volume persists by default after an instance terminates, because delete on termination is off for added volumes. A root EBS volume is deleted by default, and instance store data is lost on termination.
- A
- An application consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue. The application experiences occasional downtime. As a result of the downtime, messages within the queue expire and are deleted after 1 day. The message deletions cause data loss for the application.
Which solutions will minimize data loss for the application? (Choose two.)- AIncrease the message retention period
- BIncrease the visibility timeout.
- CAttach a dead-letter queue (DLQ) to the SQS queue.
- DUse a delay queue to delay message delivery
- EReduce message processing time.
Show answer
Correct answer: A, E
WhyA longer retention period keeps messages through downtime, and faster processing clears a backlog before messages expire. A dead-letter queue receives messages that fail processing, not those that simply expire. A longer visibility timeout and a delay queue do not prevent expiry.
- A
- A company stores employee data in Amazon Resdshift. A table names Employee uses columns named Region ID, Department ID, and Role ID as a compound sort key.
Which queries will MOST increase the speed of query by using a compound sort key of the table? (Choose two.)- ASelect *from Employee where Region ID=’North America’;
- BSelect *from Employee where Region ID=’North America’ and Department ID=20;
- CSelect *from Employee where Department ID=20 and Region ID=’North America’;
- DSelect *from Employee where Role ID=50;
- ESelect *from Employee where Region ID=’North America’ and Role ID=50;
Show answer
Correct answer: B, C
WhyA compound sort key works best when queries filter on its leading columns, so filtering on both Region ID and Department ID helps most, and the order in the WHERE clause does not matter. Filtering only on Region ID uses less of the key, and skipping Department ID or Region ID loses most of the benefit.
- A
- A data engineer needs to onboard a new data producer into AWS. The data producer needs to migrate data products to AWS.
The data producer maintains many data pipelines that support a business application. Each pipeline must have service accounts and their corresponding credentials. The data engineer must establish a secure connection from the data producer's on-premises data center to AWS. The data engineer must not use the public internet to transfer data from an on-premises data center to AWS.
Which solution will meet these requirements?- AInstruct the new data producer to create Amazon Machine Images (AMIs) on Amazon Elastic Container Service (Amazon ECS) to store the code base of the application. Create security groups in a public subnet that allow connections only to the on-premises data center.
- BCreate an AWS Direct Connect connection to the on-premises data center. Store the service account credentials in AWS Secrets manager.
- CCreate a security group in a public subnet. Configure the security group to allow only connections from the CIDR blocks that correspond to the data producer. Create Amazon S3 buckets than contain presigned URLS that have one-day expiration dates.
- DCreate an AWS Direct Connect connection to the on-premises data center. Store the application keys in AWS Secrets Manager. Create Amazon S3 buckets that contain presigned URLS that have one-day expiration dates.
Show answer
Correct answer: B
WhyAWS Direct Connect avoids the public internet, and Secrets Manager securely stores service account credentials. Public subnets do not avoid the internet, and presigned URLs in S3 are unnecessary and do not manage these credentials.
- A
- A data engineer is launching an Amazon EMR cluster. The data that the data engineer needs to load into the new cluster is currently in an Amazon S3 bucket. The data engineer needs to ensure that data is encrypted both at rest and in transit.
The data that is in the S3 bucket is encrypted by an AWS Key Management Service (AWS KMS) key. The data engineer has an Amazon S3 path that has a Privacy Enhanced Mail (PEM) file.
Which solution will meet these requirements?- ACreate an Amazon EMR security configuration. Specify the appropriate AWS KMS key for at-rest encryption for the S3 bucket. Create a second security configuration. Specify the Amazon S3 path of the PEM file for in-transit encryption. Create the EMR cluster, and attach both security configurations to the cluster.
- BCreate an Amazon EMR security configuration. Specify the appropriate AWS KMS key for local disk encryption for the S3 bucket. Specify the Amazon S3 path of the PEM file for in-transit encryption. Use the security configuration during EMR cluster creation.
- CCreate an Amazon EMR security configuration. Specify the appropriate AWS KMS key for at-rest encryption for the S3 bucket. Specify the Amazon S3 path of the PEM file for in-transit encryption. Use the security configuration during EMR cluster creation.
- DCreate an Amazon EMR security configuration. Specify the appropriate AWS KMS key for at-rest encryption for the S3 bucket. Specify the Amazon S3 path of the PEM file for in-transit encryption. Create the EMR cluster, and attach the security configuration to the cluster.
Show answer
Correct answer: C
WhyA single EMR security configuration can hold both the KMS key for S3 at-rest encryption and the PEM file path for in-transit encryption, and it is specified when the cluster is created. Only one security configuration can apply to a cluster, it cannot be attached after creation, and local disk encryption does not cover S3.
- A
- A data engineer is using Amazon QuickSight to build a dashboard to report a company’s revenue in multiple AWS Regions. The data engineer wants the dashboard to display the total revenue for a Region, regardless of the drill-down levels shown in the visual.
Which solution will meet these requirements?- ACreate a table calculation.
- BCreate a simple calculated field.
- CCreate a level-aware calculation - aggregate (LAC-A) function.
- DCreate a level-aware calculation - window (LAC-W) function.
Show answer
Correct answer: C
WhyA level-aware aggregate calculation computes at a chosen level, such as Region, before other aggregations, so the total does not change with drill-down. Table calculations and simple fields follow the visual, and LAC-W is for window functions over the data.
- A
- A data engineer created a table named cloudtrail_logs in Amazon Athena to query AWS CloudTrail logs and prepare data for audits. The data engineer needs to write a query to display errors with error codes that have occurred since the beginning of 2024. The query must return the 10 most recent errors.
Which query will meet these requirements?- Aselect count (*) as TotalEvents, eventname, errorcode, errormessage from cloudtrail_logswhere errorcode is not nulland eventtime >= '2024-01-01T00:00:00Z' group by eventname, errorcode, errormessageorder by TotalEvents desclimit 10;
- Bselect count (*) as TotalEvents, eventname, errorcode, errormessage from cloudtrail_logs where eventtime >= '2024-01-01T00:00:00Z' group by eventname, errorcode, errormessage order by TotalEvents desc limit 10;
- Cselect count (*) as TotalEvents, eventname, errorcode, errormessage from cloudtrail_logswhere eventtime >= '2024-01-01T00:00:00Z' group by eventname, errorcode, errormessageorder by eventname asc
- Dselect count (*) as TotalEvents, eventname, errorcode, errormessage from cloudtrail_logs
Show answer
Correct answer: A
WhyThis is the only complete query that filters to rows with an error code and to 2024 onward, with a limit of 10. It orders by count, so it returns the most frequent errors rather than strictly the most recent, but the other options are less suitable.
- A
- A company wants to migrate a data warehouse from Teradata to Amazon Redshift.
Which solution will meet this requirement with the LEAST operational effort?- AUse AWS Database Migration Service (AWS DMS) Schema Conversion to migrate the schema. Use AWS DMS to migrate the data.
- BUse the AWS Schema Conversion Tool (AWS SCT) to migrate the schema. Use AWS Database Migration Service (AWS DMS) to migrate the data.
- CUse AWS Database Migration Service (AWS DMS) to migrate the data. Use automatic schema conversion.
- DManually export the schema definition from Teradata. Apply the schema to the Amazon Redshift database. Use AWS Database Migration Service (AWS DMS) to migrate the data.
Show answer
Correct answer: B
WhyAWS SCT converts a Teradata schema for Redshift, and AWS DMS can then help move the data. DMS Schema Conversion has more limited coverage of this source, automatic conversion is not available for this path, and manual schema work takes longer.
- A
- 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.
- DConfigure an AWS Glue crawler to run on a set schedule.
Show answer
Correct answer: D
WhyA scheduled Glue crawler adds new partitions and picks up schema changes. Partition projection needs a fixed schema configuration and does not detect changes, DataBrew is for preparation, and Lambda needs custom code.
- A
- A company stores Apache Parquet files in an Amazon S3 data lake. The data lake receives thousands of files from multiple sources every hour. The files range in size from 50 KB to 100 KB.
The company is evaluating the implementation of Apache Iceberg tables for the data lake. The company is using AWS Glue Data Catalog as part of the evaluation. The company needs a solution to optimize query performance in Iceberg. The solution must ensure that Iceberg table performance does not degrade when more files are added over time.
Which solution will meet these requirements?- AUse an AWS Glue job to compact the files into a standard size of 512 MB at the end of each day. Run an AWS Glue crawler to update the Data Catalog.
- BConfigure the Data Catalog to automatically compact the files every minute.
- CConfigure Iceberg table properties to enable automatic compaction based on thresholds for file size and the number of files.
- DImplement a partition strategy in Amazon S3. Run an AWS Glue crawler to update the Data Catalog every 5 minutes.
Show answer
Correct answer: C
WhyAutomatic compaction based on file size and file count thresholds keeps small files under control without a fixed schedule. A daily Glue job leaves many small files all day, compaction cannot be set to run every minute, and partitions and crawlers do not fix small files.
- A
- A company is setting up a new Amazon SageMaker Unified Studio domain. Each of the company's business units needs isolated control over its own assets, projects, and metadata. Specific datasets must be shareable with other business units upon approval. The company also requires centralized user authentication and identity mapping.
Which solution will meet these requirements?- AConfigure each business unit as a domain unit with delegated ownership and fine-grained permissions policies. Give users the ability to share assets across domain units with explicit access control. Assign API keys to users for authentication to access the domain portal.
- BConfigure business units as separate domain units with owner permissions. Restrict projects exclusively to owners to prevent data sharing between domains. Configure AWS IAM Identity Center for centralized authentication. Map user profiles to their respective domain units.
- CConfigure business units to be represented as separate domains. Establish isolated environments with no shared administrative policies. Configure AWS IAM Identity Center for centralized authentication. Delegate administration at the domain level.
- DConfigure each business unit as a separate domain unit to manage permissions on assets, projects, and metadata. Configure AWS IAM Identity Center for centralized authentication. Map user profiles to their respective domain units. Enable cross-business unit sharing through access requests. Instruct domain unit owners to approve or deny the requests.
Show answer
Correct answer: D
WhyDomain units per business unit give isolated control, IAM Identity Center centralizes sign-in, and access requests allow approved sharing. API keys do not provide centralized authentication, restricting projects to owners prevents sharing, and separate domains make sharing and administration harder.
- A
- A legal company is building a data pipeline to power an application that will handle peak traffic during business hours. The application will provide information about relevant laws and available lawyers. The legal document database will be updated one time each day.
The application must display up-to-date lawyer availability from a calendar database and provide complex full-text search of legal documents. The company wants to use AWS Glue for extract, transform, and load (ETL) processes. Lawyer availability information must be current within 5 minutes of any schedule changes.
Which solution will meet these requirements with the LEAST operational overhead?- AUse AWS Step Functions to orchestrate AWS Glue jobs with time-based triggers and event-based triggers. Store processed data in Amazon S3. Use Amazon RDS for the search functionality.
- BUse AWS Step Functions to orchestrate AWS Glue jobs with time-based triggers and event-based triggers. Store processed data in Amazon S3. Use Amazon OpenSearch Service for full-text search capabilities.
- CUse AWS Glue workflows with time-based triggers and event-based triggers. Store processed data in Amazon DynamoDB. Create a custom search solution by using AWS Lambda functions.
- DUse Amazon EventBridge to schedule all AWS Glue jobs. Store processed data in Amazon RDS. Use Amazon Kendra for full-text search capabilities.
Show answer
Correct answer: B
WhyStep Functions coordinates Glue jobs on a schedule and on events, and OpenSearch Service provides full-text search of legal documents. RDS is not designed for complex full-text search, a custom Lambda search takes much more work, and scheduling alone does not support the 5-minute update.
- A