CertifyDeck

DEA-C01 · Sample questions

DEA-C01 sample questions with answers and explanations

10 real questions from the CertifyDeck DEA-C01 bank, spread across the domains of the official AWS Certified Data Engineer - Associate skills outline, with the correct answer and a full explanation of why the other options are wrong. They are original questions written from the public syllabus, not exam dumps, and they are the same style you will find in the practice tests and mock exams.

  1. Question 1Domain: Data Security and GovernanceMedium

    A company runs a PostgreSQL database on Amazon EC2 instances for a reporting pipeline. The data engineering team wants to stop being responsible for guest operating system patching. The application on Amazon EC2 must also authenticate to the database with its instance profile instead of a stored password. The database must remain PostgreSQL. Which solution will meet these requirements?

    • A.Migrate the tables to Amazon DynamoDB and grant the application role access through IAM policies.
    • B.Migrate to Amazon RDS for PostgreSQL and keep the database passwords in AWS Secrets Manager.
    • C.Keep PostgreSQL on Amazon EC2 and use AWS Systems Manager to patch the guest operating system on a schedule.
    • D.Migrate to Amazon RDS for PostgreSQL and enable IAM database authentication for the application.
    Show answer and explanation

    Correct answer: D. Migrate to Amazon RDS for PostgreSQL and enable IAM database authentication for the application.

    Explanation

    On Amazon EC2 (infrastructure as a service) the customer patches the guest operating system, whereas Amazon RDS applies operating system updates as part of its maintenance. RDS for PostgreSQL also supports IAM database authentication, where the application uses an authentication token and its instance profile credentials instead of a password. Keeping passwords in Secrets Manager moves the database to a managed service but still relies on a password, which the requirement rules out.

    Official references

  2. Question 2Domain: Data Security and GovernanceMedium

    An Amazon Redshift table stores customer card numbers. Members of the support role must see only the last four digits, while members of the fraud role must see the full values. The stored data must not be altered, and existing SQL queries must keep working unchanged. Which solution will meet these requirements?

    • A.Run an AWS Glue job that writes a copy of the table with masked card numbers for the support role.
    • B.Grant the support role SELECT on every column of the table except the card number column.
    • C.Attach a row-level security policy to the table that applies to the support role.
    • D.Attach a dynamic data masking policy that partially redacts the card number column for the support role.
    Show answer and explanation

    Correct answer: D. Attach a dynamic data masking policy that partially redacts the card number column for the support role.

    Explanation

    Redshift dynamic data masking changes how sensitive data is shown at query time without transforming it in the database, and masking policies can partially redact a column for specific roles while other roles see the full value, with no change to SQL queries. Excluding the column with a column-level grant hides it completely, so support users could not see the last four digits. A masked copy of the table adds a second dataset and forces the support queries to target a different table.

    Official references

  3. Question 3Domain: Data Store ManagementEasy

    A data engineer runs a multi-step maintenance procedure on an Amazon Redshift table. While the procedure runs, other sessions must not read the table or load data into it, and the restriction must end automatically when the procedure finishes. What should the data engineer do?

    • A.Run the procedure inside a transaction block that begins with a LOCK command on the table.
    • B.Run PG_TERMINATE_BACKEND for every other open session before the procedure starts.
    • C.Use SNAPSHOT isolation so that concurrent sessions read only data that was committed before the procedure.
    • D.Query the STV_LOCKS table before each step and cancel any session that is accessing the table.
    Show answer and explanation

    Correct answer: A. Run the procedure inside a transaction block that begins with a LOCK command on the table.

    Explanation

    In Amazon Redshift, LOCK takes an ACCESS EXCLUSIVE table lock that makes reads and writes from other sessions wait, and it is released when the transaction that contains it completes, so it must run inside a transaction block. SNAPSHOT isolation still lets other sessions read a committed snapshot of the table, so it does not block access. Terminating or cancelling sessions only removes current users and does not stop new sessions from reading or loading the table.

    Official references

  4. Question 4Domain: Data Store ManagementMedium

    A data engineer creates an AWS Glue crawler that uses a JDBC connection to an Amazon Redshift cluster. The crawler must create Data Catalog tables for every table in the sales schema of the analytics database, and for no other schema. Which include path should the data engineer specify?

    • A.analytics/%
    • B.sales/%
    • C.%/sales/%
    • D.analytics/sales/%
    Show answer and explanation

    Correct answer: D. analytics/sales/%

    Explanation

    For engines that support schemas, such as Amazon Redshift, the JDBC include path is database/schema/table, and the percent sign can replace the schema or the table, so analytics/sales/% selects every table in that schema only. With Amazon Redshift, analytics/% creates tables for all schemas in the database. The percent sign cannot replace the database name, and sales/% would treat sales as the database.

    Official references

  5. Question 5Domain: Data Store ManagementMedium

    A data engineer manages an Amazon S3 dataset that is queried with Amazon Athena. The data is partitioned by year, month, day and hour, which produces many small files. Most queries filter on a range of days, and a few queries filter on specific hours. The data engineer must improve overall query performance. What should the data engineer do?

    • A.Keep the hourly partitions and add an AWS Glue partition index on the hour column to speed up lookups.
    • B.Keep the hourly partitions and convert the files to uncompressed CSV so that Athena spends less time decoding.
    • C.Partition by day only, store the data in Parquet, and keep the records sorted by timestamp in each file.
    • D.Add a minute-level partition key so that the queries that filter on specific hours scan even less data.
    Show answer and explanation

    Correct answer: C. Partition by day only, store the data in Parquet, and keep the records sorted by timestamp in each file.

    Explanation

    Athena guidance is to partition for the most common queries rather than rare ones: partitioning by day and keeping records sorted by timestamp in a columnar format is almost as efficient for hourly filters and avoids the many small files that too many partition keys create. A minute-level key fragments the data further, and a partition index speeds up partition lookups but does nothing about the small files that hurt the common day-range queries.

    Official references

  6. Question 6Domain: Data Operations and SupportMedium

    An Amazon Quick Sight SPICE dataset is built from an Amazon Redshift table that holds three years of orders. Only orders from the last few days are inserted or modified, but the nightly full refresh takes a long time because it reloads every row. The data must stay in SPICE. Which solution will reduce the amount of data queried and transferred during each refresh?

    • A.Configure an incremental refresh on the order date column with a look-back window of a few days.
    • B.Schedule full refreshes more often during the day so that each refresh has fewer changes to load.
    • C.Switch the dataset to direct query mode so that each visual reads the latest rows from Redshift.
    • D.Refresh the dataset by providing a new manifest file that lists only the most recent order data.
    Show answer and explanation

    Correct answer: A. Configure an incremental refresh on the order date column with a look-back window of a few days.

    Explanation

    For SQL-based sources such as Amazon Redshift, an incremental refresh queries only the rows inside a look-back window defined on a date column, deletes the SPICE data in that window, and replaces it with the inserts, deletions and changes from the source. A full refresh reloads every row no matter how often it runs. Manifest files apply to Amazon S3 datasets, and direct query mode removes the data from SPICE, which breaks a stated requirement.

    Official references

  7. Question 7Domain: Data Operations and SupportEasy

    A data engineer opens a large transactions dataset in an AWS Glue DataBrew project to design a cleaning recipe. The source files are ordered by transaction date, oldest first, and the project view shows only records from several years ago. The engineer wants the interactive sample to represent the whole dataset. What should the data engineer do?

    • A.Run a recipe job on the full dataset before opening the project again.
    • B.Increase the size of the sample while keeping the first n rows sampling type.
    • C.Define the dataset so that it includes only the files from the most recent month.
    • D.Change the sampling type of the project to a random selection of rows.
    Show answer and explanation

    Correct answer: D. Change the sampling type of the project to a random selection of rows.

    Explanation

    A DataBrew project works on a sample of the dataset, by default the first rows, so a file ordered by date shows only the oldest records. A random sample draws rows from across the dataset and better represents it. A larger first-n sample still starts at the oldest rows, a recipe job does not change the project sample, and limiting the dataset to the latest month makes the sample unrepresentative in the other direction.

    Official references

  8. Question 8Domain: Data Ingestion and TransformationMedium

    A data engineer writes a Python job that loads millions of items into an Amazon DynamoDB table in provisioned capacity mode by calling BatchWriteItem directly. Every call returns successfully, but a validation step shows that some items are missing from the table during peak loads. What should the data engineer do to meet these requirements?

    • A.Read UnprocessedItems from each response and retry those items with exponential backoff between the retry attempts.
    • B.Set the maximum number of SDK retries to zero so that throttled requests fail fast and the job moves to the next batch.
    • C.Resend the complete batch in a tight loop as soon as a call returns, until the table contains all of the items in the batch.
    • D.Replace each BatchWriteItem call with a TransactWriteItems call so that all of the items in a group are written together.
    Show answer and explanation

    Correct answer: A. Read UnprocessedItems from each response and retry those items with exponential backoff between the retry attempts.

    Explanation

    A batch operation tolerates the failure of individual requests and returns them in UnprocessedItems, most often because of throttling, so the job must retry those items, and DynamoDB strongly recommends exponential backoff because immediate retries can be throttled again. Resending the whole batch at once repeats successful writes and keeps hitting the same capacity limit. TransactWriteItems makes a group all-or-nothing but does not remove throttling, and disabling retries makes failures more likely.

    Official references

  9. Question 9Domain: Data Ingestion and TransformationEasy

    A data engineer runs AWS Glue 4.0 Spark jobs on G.1X workers for pre-production testing and for occasional one-time data loads. These jobs are not time-sensitive and can tolerate a slower start. The data engineer wants to reduce the cost of these job runs. Which solution will meet these requirements?

    • A.Keep the standard execution class with dedicated resources and set a shorter job timeout.
    • B.Change the jobs to the G.8X worker type so that each run completes with fewer workers.
    • C.Set the execution class of these jobs to flexible so that they run as Flex job runs.
    • D.Convert the jobs to AWS Glue Spark Streaming jobs that run continuously in the background.
    Show answer and explanation

    Correct answer: C. Set the execution class of these jobs to flexible so that they run as Flex job runs.

    Explanation

    The flexible execution class is intended for non-urgent jobs such as pre-production jobs, testing and one-time data loads, and it is supported on AWS Glue 3.0 or later with G.1X or G.2X workers, so it fits these jobs and lowers their cost. The standard execution class is meant for time-sensitive workloads that need fast startup and dedicated resources, so it does not reduce cost, and a shorter timeout only risks failed runs. Larger G.8X workers and continuously running streaming jobs add capacity and cost instead of reducing it.

    Official references

  10. Question 10Domain: Data Ingestion and TransformationMedium

    An AWS Step Functions Standard workflow has a Task state whose Resource is arn:aws:states:::glue:startJobRun, followed by a state that validates the output of the AWS Glue job. The validation state often runs before the Glue job has finished and then fails. What is the cause of this issue?

    • A.The state machine role lacks the glue:GetJobRun permission needed to start the job run.
    • B.The Glue job has job bookmarks enabled, so it returns before it processes the new data.
    • C.Standard workflows support only the Request Response pattern for AWS Glue integrations.
    • D.The Task uses Request Response rather than the Run a Job (.sync) pattern.
    Show answer and explanation

    Correct answer: D. The Task uses Request Response rather than the Run a Job (.sync) pattern.

    Explanation

    With the Request Response pattern, Step Functions moves to the next state as soon as it receives the HTTP response to StartJobRun, so validation starts while the job is still running. Using arn:aws:states:::glue:startJobRun.sync applies the Run a Job pattern, which waits for the job to complete. Standard workflows do support .sync for AWS Glue; only Express workflows are limited to Request Response. Job bookmarks only track processed data, and a missing permission would make the task fail rather than advance early.

    Official references

How to use these DEA-C01 sample questions

Answer each question before opening the explanation, and write down why you discarded the other options. On DEA-C01, most mistakes come from choosing an option that is technically possible but does not meet every requirement in the scenario.

These 10 questions are a taste of the format, not a diagnostic. To know which domains you fail, practice by domain for free and take a timed mock exam that mirrors the official weights and duration.

Practice DEA-C01 with hundreds more questions

Start for free, no sign-up or card. Every question includes an explanation like the ones above, and the mock exam reproduces the official DEA-C01 format.