Curated

Data Ingestion and Transformation (1.1–1.4)

0 votes

Questions102

  1. Question 51

    Data Ingestion and Transformation

    A pipeline release passes staging tests but awaits production approval while developers merge more changes. How should the delivery workflow ensure production receives exactly the tested release?

    Show the answer

    Correct answerB. Promote the tested, versioned artifact after approval.

    AWhy not this: The development branch can change while approval is pending.

    BWhy this is right: Using the same versioned artifact ensures production receives the release that passed staging tests.

    CWhy not this: The latest source can include changes that were never tested in staging.

    DWhy not this: Updated dependencies can change the release even when application source remains unchanged.

    Promoting the same versioned artifact preserves the identity of the release that passed staging tests. Rebuilding after approval can introduce source or dependency changes, so the resulting release might differ from the tested one.

    Open this question
  2. Question 52

    Data Ingestion and Transformation

    A transformation runs across networked workers with separate memory; the coordinator can remain healthy when a worker fails. The job must recover without restarting completed work on healthy workers. Which design BEST fits these requirements?

    Show the answer

    Correct answerC. Track task completion centrally and reassign failed workers' unfinished tasks.

    AWhy not this: Shared-memory threads do not match networked workers with separate memory, and process restarts discard healthy work.

    BWhy not this: Fixed assignments without reassignment can leave the job blocked indefinitely by a failed worker.

    CWhy this is right: Completion tracking enables unfinished tasks to move to healthy workers without restarting completed tasks.

    DWhy not this: Restarting every worker unnecessarily repeats completed work after a partial failure.

    Distributed workers can fail independently, so tracking completion and reassigning unfinished tasks allows recovery without discarding healthy workers' completed work. Restarting all workers treats a partial failure as a failure of the entire job.

    Open this question
  3. Question 53

    Data Ingestion and Transformation

    Which data structure removes records in the same order they were inserted?

    Show the answer

    Correct answerD. Queue

    AWhy not this: A hash table supports key-based access rather than first-in, first-out removal.

    BWhy not this: A stack removes the most recently inserted record first.

    CWhy not this: A binary search tree organizes records by key rather than insertion order.

    DWhy this is right: A queue removes the earliest inserted record first.

    A queue uses first-in, first-out ordering, so the earliest inserted record is removed first. A stack instead uses last-in, first-out ordering.

    Open this question
  4. Question 54

    Data Ingestion and Transformation

    A lineage catalog must represent datasets that each depend on several upstream datasets and support finding all downstream dependents. Which data structure BEST represents these relationships?

    Show the answer

    Correct answerD. A directed graph with datasets as vertices

    AWhy not this: Dataset row counts do not encode dependency relationships for traversal.

    BWhy not this: A one-parent tree cannot directly represent a dataset with several upstream dependencies.

    CWhy not this: Arrival order does not represent dependencies between datasets.

    DWhy this is right: Directed edges encode dependency direction, and vertices can have multiple upstream connections.

    A directed graph represents datasets as vertices and dependencies as directed edges, supporting traversal to downstream dependents. A rooted tree restricts each nonroot node to one parent and cannot directly represent shared dependencies.

    Open this question
  5. Question 55

    Data Ingestion and Transformation

    Developers merge data pipeline changes daily, but incompatible changes are discovered only during monthly release preparation. Which workflow change BEST implements continuous integration?

    Show the answer

    Correct answerC. Run automated builds and tests whenever changes are merged.

    AWhy not this: Scheduled deployments change release timing without adding validation when changes are integrated.

    BWhy not this: Release branches organize source versions but do not automatically detect integration failures.

    CWhy this is right: Automated validation on each merge provides rapid feedback about integration failures.

    DWhy not this: Production approval controls release authorization rather than validating integrated changes promptly.

    Continuous integration uses frequent integration with automated builds and tests to expose problems early. Version control branches organize changes but do not provide automated feedback about whether integrated changes work.

    Open this question
  6. Question 56

    Data Ingestion and Transformation

    An Amazon SQS queue buffers ETL tasks for workers, but malformed tasks repeatedly fail and consume processing capacity. How should the engineer isolate persistent failures while allowing transient failures to be retried?

    Show the answer

    Correct answerA. Configure a dead-letter queue with a suitable maxReceiveCount.

    AWhy this is right: A redrive policy moves repeatedly received messages to a dead-letter queue after the configured threshold.

    BWhy not this: Deleting before processing risks losing tasks if a worker fails and prevents retries.

    CWhy not this: A longer visibility timeout delays retries but does not remove persistently failing messages from normal processing.

    DWhy not this: Longer retention preserves messages longer but does not isolate repeatedly failing tasks.

    A dead-letter queue isolates messages after a configured number of unsuccessful receives, preserving retries for transient failures. Increasing visibility timeout delays redelivery but does not isolate persistently failing messages.

    Open this question
  7. Question 57

    Data Ingestion and Transformation

    Which AWS Glue feature coordinates ETL jobs and crawlers into a workflow with dependencies?

    Show the answer

    Correct answerD. AWS Glue workflows

    AWhy not this: Job bookmarks track previously processed data to support incremental processing.

    BWhy not this: Schema Registry manages and validates schemas for streaming data.

    CWhy not this: The Data Catalog stores table definitions and other metadata; it does not coordinate task execution.

    DWhy this is right: Glue workflows coordinate jobs and crawlers through triggers and dependencies.

    AWS Glue workflows coordinate jobs, crawlers, and triggers with dependencies. The AWS Glue Data Catalog stores metadata rather than orchestrating task execution.

    Open this question
  8. Question 58

    Data Ingestion and Transformation

    A Step Functions workflow must process an S3 JSON array exceeding 256 KiB, with one object key per item. The downstream service permits at most 20 concurrent tasks; which design meets these constraints without custom batching?

    Show the answer

    Correct answerB. Use a Distributed Map with an S3 ItemReader and MaxConcurrency set to 20.

    AWhy not this: Parallel branches do not partition the array, and passing the entire array exceeds the state payload limit.

    BWhy this is right: The S3 ItemReader handles the large input, while MaxConcurrency limits concurrent child executions to 20.

    CWhy not this: Without an explicit concurrency limit, Distributed Map can exceed the downstream service's capacity.

    DWhy not this: Inline Map requires its input array in the state payload, which cannot exceed 256 KiB.

    A Distributed Map can read a large dataset directly from S3, and MaxConcurrency limits concurrent child workflow executions. An Inline Map cannot accept an array exceeding the 256 KiB state payload limit.

    Open this question
  9. Question 59

    Data Ingestion and Transformation

    A pipeline's transformation tests pass with a mocked database writer, but deployments fail because generated records violate the destination table's constraints. Which practice would BEST detect this problem before production deployment?

    Show the answer

    Correct answerB. Test writes against a database with production-equivalent constraints.

    AWhy not this: Production alerts detect rejected writes after deployment rather than preventing the release.

    BWhy this is right: A representative database exposes incompatibilities between generated records and enforced destination constraints.

    CWhy not this: Peer review helps identify defects but does not execute writes against the destination's constraints.

    DWhy not this: Broader transformation coverage still misses destination behavior absent from the mocked writer.

    Integration tests against production-equivalent constraints validate the boundary between generated records and the destination. More tests using the same mocked writer can still miss constraints the mock does not enforce.

    Open this question
  10. Question 60

    Data Ingestion and Transformation

    A Python ingestion job compiles the same regular expression for every input record. Profiling shows compilation consumes most of the runtime; which change should the engineer make?

    Show the answer

    Correct answerB. Compile the expression once before processing records.

    AWhy not this: Larger input batches do not eliminate compilation performed for every record.

    BWhy this is right: Reusing a compiled expression eliminates redundant compilation for each record.

    CWhy not this: Moving compilation into a helper does not reduce how often it executes.

    DWhy not this: More workers retain redundant compilation and introduce distributed execution overhead.

    Compiling the unchanged expression once eliminates repeated work in the measured bottleneck. Additional workers might reduce elapsed time, but they retain the unnecessary compilation work and add execution overhead.

    Open this question
  11. Question 61

    Data Ingestion and Transformation

    Which Lambda settings directly control a function's maximum concurrent executions and its allocated CPU capacity, respectively? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Reserved concurrencyD. Memory allocation

    AWhy this is right: Reserved concurrency sets an upper bound on concurrent executions and reserves that capacity for the function.

    BWhy not this: Timeout limits how long an invocation can run, not its concurrency or allocated CPU capacity.

    CWhy not this: Maximum event age limits how long asynchronous events remain eligible for processing.

    DWhy this is right: Lambda allocates CPU capacity in proportion to the function's configured memory.

    EWhy not this: Ephemeral storage size controls local scratch space, not CPU allocation or the concurrency limit.

    Reserved concurrency sets a function's concurrency limit, while Lambda allocates CPU capacity in proportion to configured memory. A timeout limits invocation duration rather than the number of concurrent executions.

    Open this question
  12. Question 62

    Data Ingestion and Transformation

    A team needs a one-time batch copy of existing Amazon RDS for PostgreSQL table rows into Amazon S3, without ongoing change replication. Which approaches can perform the copy? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersD. Run an AWS DMS full-load-only task targeting S3.E. Run a Glue JDBC batch job that writes to S3.

    AWhy not this: A CDC-only task captures changes and does not perform the required initial copy of existing rows.

    BWhy not this: Redshift COPY loads supported sources into Redshift; it does not copy RDS tables to S3.

    CWhy not this: A crawler catalogs table metadata; it does not copy table rows to S3.

    DWhy this is right: A full-load-only DMS task copies existing table data to a supported S3 target without continuing CDC.

    EWhy this is right: A Glue batch job can read PostgreSQL through JDBC and write the resulting dataset to S3.

    FWhy not this: DynamoDB Streams captures changes to DynamoDB tables, not RDS tables.

    A DMS full-load-only task copies existing rows to S3 without ongoing replication, and a Glue JDBC batch job can read the tables and write their data to S3. A CDC-only task captures changes rather than copying the existing table contents.

    Open this question
  13. Question 63

    Data Ingestion and Transformation

    Which client reads records from topics in an Amazon Managed Streaming for Apache Kafka (Amazon MSK) cluster?

    Show the answer

    Correct answerD. An Apache Kafka consumer

    AWhy not this: A Glue crawler discovers metadata rather than acting as a Kafka record consumer.

    BWhy not this: A Kafka producer writes records to topics rather than reading them.

    CWhy not this: The Kinesis Client Library reads Kinesis data streams, not Kafka topics.

    DWhy this is right: Amazon MSK supports Kafka consumers that subscribe to topics and read records.

    An Apache Kafka consumer subscribes to topics and reads their records from Amazon MSK. A Kafka producer writes records to topics rather than consuming them.

    Open this question
  14. Question 64

    Data Ingestion and Transformation

    An AWS Glue Spark job must read a multi-terabyte Amazon Redshift table for batch transformation. The extraction must use Redshift's parallel export capability rather than transfer the table through a JDBC result set; which approach meets this requirement?

    Show the answer

    Correct answerA. Use the Glue Redshift connector with an S3 temporary directory.

    AWhy this is right: The connector uses Redshift UNLOAD and temporary S3 storage to read large datasets efficiently.

    BWhy not this: Spectrum reads external data in S3; it does not export an internal Redshift table to Spark.

    CWhy not this: COPY loads data into Redshift rather than exporting a Redshift table for Glue.

    DWhy not this: Partitioning can parallelize JDBC queries, but their results still travel through JDBC.

    The Glue Redshift connector uses UNLOAD to export data in parallel to S3 before Spark reads it. Partitioned generic JDBC reads still transfer query results through JDBC rather than using Redshift's parallel export.

    Open this question
  15. Question 65

    Data Ingestion and Transformation

    An analytics team needs to ingest records from Amazon Kinesis Data Streams directly into Amazon Redshift without staging them in Amazon S3. Which approach meets this requirement?

    Show the answer

    Correct answerA. Create a streaming ingestion materialized view.

    AWhy this is right: Redshift streaming ingestion uses a materialized view to ingest records directly from Kinesis.

    BWhy not this: COPY does not support a Kinesis data stream as a direct source.

    CWhy not this: A crawler discovers metadata; it does not ingest streaming records into Redshift.

    DWhy not this: Redshift Spectrum queries external data in S3, not records directly from Kinesis.

    A Redshift streaming ingestion materialized view reads Kinesis records directly without S3 staging. COPY loads supported batch sources; it does not read a Kinesis stream directly.

    Open this question
  16. Question 66

    Data Ingestion and Transformation

    A supported AWS Glue Spark batch job runs nightly with the STANDARD execution class. Its start time and completion time are flexible; which change reduces compute charges without changing its transformation logic?

    Show the answer

    Correct answerC. Switch the job to the FLEX execution class.

    AWhy not this: More workers increase concurrent compute consumption and do not inherently reduce total cost.

    BWhy not this: An always-running streaming job introduces continuous processing charges for a nightly batch workload.

    CWhy this is right: FLEX provides lower-cost execution for supported jobs that tolerate variable execution timing.

    DWhy not this: A higher timeout changes the permitted duration, not the compute pricing.

    AWS Glue FLEX offers lower-cost processing for jobs that tolerate variable start and execution times. Adding workers can shorten runtime but does not inherently lower total compute charges.

    Open this question
  17. Question 67

    Data Ingestion and Transformation

    An AWS Glue job times out when connecting to a private Amazon RDS database through JDBC. The driver, URL, and credentials are valid; which configuration should the engineer check first?

    Show the answer

    Correct answerA. The connection's VPC subnet, routing, and security groups

    AWhy this is right: The connection's network settings must permit traffic between Glue network interfaces and the database port.

    BWhy not this: A rotation interval does not explain a timeout when the current credentials are valid.

    CWhy not this: Output serialization settings do not control connectivity to the JDBC source.

    DWhy not this: Data Catalog update permissions do not establish network access to the database.

    A private JDBC source requires a working network path from Glue to the database, including appropriate subnet routing and security groups. Data Catalog permissions control metadata access, not database network connectivity.

    Open this question
  18. Question 68

    Data Ingestion and Transformation

    An AWS Glue job combines S3 orders with RDS customer history containing nonoverlapping effective-date ranges for each customer. Every order must retain the customer's region at purchase time, including orders with no matching history; which integration is appropriate?

    Show the answer

    Correct answerB. Left join on customer ID and the order timestamp within the history's effective range.

    AWhy not this: The earliest region may be historically wrong, and a full outer join also introduces unmatched history records.

    BWhy this is right: The left join preserves all orders, and the time condition selects the historically valid customer record.

    CWhy not this: The most recent customer region may differ from the region valid when an older order was placed.

    DWhy not this: An inner join removes orders that have no matching customer history.

    A left join preserves unmatched orders, while the effective-date condition selects the region valid at purchase time. An inner temporal join finds the historical region but drops orders without matching history.

    Open this question
  19. Question 69

    Data Ingestion and Transformation

    Which interface lets a desktop analytics tool connect to Amazon Redshift through an installed database driver and a data source name (DSN)?

    Show the answer

    Correct answerC. Open Database Connectivity (ODBC)

    AWhy not this: The Redshift Data API uses API requests rather than a locally installed ODBC driver and DSN.

    BWhy not this: The Data Catalog stores metadata rather than providing the tool's database connection interface.

    CWhy this is right: ODBC uses database drivers and can use a DSN to identify connection settings.

    DWhy not this: The S3 REST API accesses objects rather than providing a DSN-based database connection.

    ODBC provides driver-based database connectivity and supports DSN configuration. The Redshift Data API executes SQL through an API without requiring an ODBC driver or DSN.

    Open this question
  20. Question 70

    Data Ingestion and Transformation

    An Amazon ECS service on EC2 processes independent records using multithreaded, CPU-bound tasks. Which changes can increase processing throughput during sustained ingestion peaks? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Use compute-optimized instances for the service's EC2 capacity.C. Scale the service task count based on queue backlog.E. Increase task CPU allocations and provide matching host capacity.

    AWhy not this: Consolidation without additional CPU capacity can increase contention rather than improve throughput.

    BWhy this is right: Compute-optimized instances provide host resources suited to CPU-intensive processing.

    CWhy this is right: Independent records allow additional tasks to process the backlog concurrently.

    DWhy not this: Additional memory does not address the stated CPU bottleneck.

    EWhy this is right: Multithreaded tasks can use additional allocated CPU when sufficient host capacity is available.

    More task CPU, additional parallel tasks, and compute-optimized host capacity can improve CPU-bound throughput. Increasing memory alone does not relieve a CPU bottleneck.

    Open this question
  21. Question 71

    Data Ingestion and Transformation

    An AWS Glue batch job uses bookmarks to ingest new S3 objects daily. An engineer must reprocess only the input tracked between two successful job runs into a separate destination, without changing the next daily run's bookmark. Which configuration is BEST?

    Show the answer

    Correct answerB. Pause bookmarks and specify the bookmark run-ID range.

    AWhy not this: Retries address failed executions, not selection of previously processed input.

    BWhy this is right: Bookmark pause supports a run-ID range while leaving saved bookmark state unchanged.

    CWhy not this: Disabling bookmarks reads the source without restricting input to the tracked run-ID range.

    DWhy not this: Resetting changes saved bookmark progress and affects what the next daily run processes.

    Pausing bookmarks with a run-ID range reprocesses the tracked input for that range without advancing bookmark state. Resetting the bookmark changes the saved progress used by subsequent daily runs.

    Open this question
  22. Question 72

    Data Ingestion and Transformation

    A Lambda function processes uploads under incoming/ and writes results under processed/ in the same S3 bucket. Which S3 event notification configuration starts processing promptly without triggering the function on its own output?

    Show the answer

    Correct answerD. ObjectCreated events with an incoming/ prefix filter

    AWhy not this: Filtering for processed/ selects the function's output rather than source uploads.

    BWhy not this: ObjectRemoved events report deletions rather than new uploads.

    CWhy not this: A filename suffix does not exclude output objects that use the same suffix.

    DWhy this is right: The incoming/ prefix selects source uploads and excludes objects written under processed/.

    An incoming/ prefix filter invokes the function for source uploads while excluding results written under processed/. A suffix filter alone does not separate input and output locations and can allow recursive invocations.

    Open this question
  23. Question 73

    Data Ingestion and Transformation

    An Apache Airflow ingestion DAG was paused for three days. Each daily data interval must run separately after it resumes, with no overlapping DAG runs; which configuration meets these requirements?

    Show the answer

    Correct answerC. Enable catchup and set max_active_runs to 1.

    AWhy not this: Task retries repeat failed tasks; they do not create runs for missed data intervals.

    BWhy not this: Disabling catchup does not automatically create a separate run for each missed interval.

    CWhy this is right: Catchup creates missed interval runs, while max_active_runs=1 restricts the DAG to one active run.

    DWhy not this: Limiting active tasks does not prevent multiple DAG runs from being active.

    Catchup schedules missed data intervals, and max_active_runs=1 prevents overlapping runs of the DAG. Limiting active tasks controls task concurrency, not the number of active DAG runs.

    Open this question
  24. Question 74

    Data Ingestion and Transformation

    An ingestion job pulls records from a third-party REST API that returns results in pages, each with a cursor for the next page. During large pulls, the API starts answering some page requests with HTTP 429 Too Many Requests. How should the job continue so that it collects every record once?

    Show the answer

    Correct answerA. Retry the same page request with exponential backoff and jitter, then keep following the next-page cursor.

    AWhy this is right: Backing off with jitter respects the API's rate limit, and retrying the same cursor keeps the sequence complete without duplicates.

    BWhy not this: Restarting from the first page collects records again and may never finish if throttling recurs.

    CWhy not this: Immediate retries keep the request rate high, so the API keeps throttling the client.

    DWhy not this: Skipping a throttled page loses its records, and a cursor-based API does not expose page numbers to jump ahead.

    HTTP 429 means the client is sending too fast. Waiting with exponential backoff and jitter lets the API recover, and retrying the same cursor keeps the pull complete without duplicates. Restarting from page one reloads records already collected, and immediate retries keep the client throttled.

    Open this question
  25. Question 75

    Data Ingestion and Transformation

    An ingestion client receives HTTP 401 from a vendor API because its OAuth 2.0 access token has expired. The client has a valid refresh token; what should it do next?

    Show the answer

    Correct answerD. Obtain a new access token from the token endpoint.

    AWhy not this: A refresh token is used at the token endpoint, not as the data API's bearer access token.

    BWhy not this: An IP allowlist change does not resolve an expired OAuth access token.

    CWhy not this: Waiting can address throttling, but it does not renew an expired access token.

    DWhy this is right: The token endpoint can exchange a valid refresh token for a new access token.

    A valid refresh token can obtain a new access token from the authorization server's token endpoint. Sending the refresh token directly to the data API misuses a credential intended for token renewal.

    Open this question
  26. Question 76

    Data Ingestion and Transformation

    An incident service and an audit service must each receive every pipeline failure alert and retain pending alerts while offline. Which design meets these requirements?

    Show the answer

    Correct answerB. Subscribe a separate SQS queue for each service to one SNS topic.

    AWhy not this: An SQS queue does not natively forward each message to multiple services.

    BWhy this is right: Each queue receives its own copy and retains pending alerts independently while its consumer is offline.

    CWhy not this: Direct HTTPS delivery does not provide each service with a durable queue for pending alerts.

    DWhy not this: Consumers sharing a queue compete for messages; each service would not receive every alert.

    SNS fanout to separate SQS queues gives each service its own durable copy and independent consumption. Consumers sharing one SQS queue compete for messages instead of each receiving every alert.

    Open this question
  27. Question 77

    Data Ingestion and Transformation

    A Step Functions workflow must pause for five minutes before checking an ETL job's status. Which state provides this delay without running compute?

    Show the answer

    Correct answerD. Wait state

    AWhy not this: A Pass state passes or transforms data without introducing a timed delay.

    BWhy not this: A Parallel state executes branches concurrently rather than introducing a timed delay.

    CWhy not this: A Task state invokes work; it is not the built-in mechanism for a compute-free delay.

    DWhy this is right: A Wait state pauses workflow execution for a duration or until a specified timestamp.

    A Wait state delays workflow execution for a specified duration or until a timestamp without running compute. A Pass state forwards input to output without performing work, but does not introduce a timed delay.

    Open this question
  28. Question 78

    Data Ingestion and Transformation

    An SNS topic receives JSON pipeline alerts with a severity field but no message attributes. An SQS subscription must receive only critical alerts without publisher changes; which configuration meets this requirement?

    Show the answer

    Correct answerB. Set a subscription filter policy matching severity to critical, with MessageBody scope.

    AWhy not this: MessageAttributes scope evaluates message attributes, not fields within the JSON message body.

    BWhy this is right: MessageBody scope lets the subscription filter match the severity field in the JSON payload.

    CWhy not this: A queue access policy controls access to the queue; it does not filter messages by JSON body fields.

    DWhy not this: A topic access policy controls access to the topic rather than filtering individual subscription deliveries.

    An SNS subscription filter policy with MessageBody scope evaluates fields in a JSON message body before delivery. MessageAttributes scope cannot match the severity field because the publisher sends no message attributes.

    Open this question
  29. Question 79

    Data Ingestion and Transformation

    An AWS Glue job converts CSV customer records to Parquet. Customer identifiers such as 00127 must retain their leading zeros; what should the engineer do?

    Show the answer

    Correct answerB. Define the identifier column as a string before writing

    AWhy not this: Compression changes physical storage size, not the identifier's logical type or value.

    BWhy this is right: Reading and writing identifiers as strings preserves leading zeros as part of their values.

    CWhy not this: Partitioning organizes output records but does not prevent numeric conversion from removing zeros.

    DWhy not this: Integer conversion treats leading zeros as insignificant and removes them.

    A string schema preserves the identifier's original characters, including leading zeros. Casting to an integer discards those zeros; compression and partitioning do not correct that loss.

    Open this question
  30. Question 80

    Data Ingestion and Transformation

    A Spark job converts JSON orders containing arrays of line-item objects to Parquet. Downstream readers support nested Parquet fields and require one record per order with typed, queryable line items; which transformation BEST meets these requirements?

    Show the answer

    Correct answerB. Retain line items as an array of structs when writing

    AWhy not this: Serialization preserves one order row but replaces typed nested fields with text that readers must parse.

    BWhy this is right: An array of structs preserves item types and nesting while retaining one record per order.

    CWhy not this: Normalization separates items from orders instead of retaining them within each order record.

    DWhy not this: Exploding creates multiple rows for an order with multiple items, violating the required record shape.

    Parquet supports nested arrays and structs, preserving typed line items within each order record. Exploding the array makes individual line items separate rows and breaks the required one-record-per-order shape.

    Open this question
  31. Question 81

    Data Ingestion and Transformation

    An AWS Glue Spark job joins two large tables, clickstream and orders, on customer_id. The Spark UI shows a few tasks in the join stage running far longer than the rest and failing with executor out-of-memory errors, because a handful of customer_id values hold most of the rows. Which change MOST directly addresses the cause?

    Show the answer

    Correct answerA. Salt the skewed join keys before the join

    AWhy this is right: Salting splits each hot key's rows across many partitions, so no single task has to hold them all.

    BWhy not this: More workers add parallelism, but each hot key's rows still land in one partition handled by one task.

    CWhy not this: Fewer shuffle partitions make each partition larger and worsen the memory pressure.

    DWhy not this: A large table is too big to broadcast, so copying it to every executor would move the memory problem to all of them.

    The failures come from data skew: every row for a hot key lands in one partition, so one task holds far more data than its executor's memory. Salting adds a random suffix to those keys so their rows split across many partitions. More workers do not change how many rows one partition gets.

    Open this question
  32. Question 82

    Data Ingestion and Transformation

    Which service provides serverless Apache Spark ETL jobs without requiring engineers to provision or manage a cluster?

    Show the answer

    Correct answerA. AWS Glue

    AWhy this is right: AWS Glue supplies a serverless Spark runtime for ETL jobs.

    BWhy not this: EMR on EC2 supports Spark but requires provisioned cluster capacity.

    CWhy not this: Redshift provides warehouse-based SQL processing, not serverless Apache Spark ETL jobs.

    DWhy not this: Lambda runs event-driven functions rather than providing a managed distributed Spark runtime.

    AWS Glue provides serverless Spark jobs for extract, transform, and load processing. Amazon EMR on Amazon EC2 supports Spark but uses provisioned clusters rather than the requested serverless execution model.

    Open this question
  33. Question 83

    Data Ingestion and Transformation

    An AWS Glue Spark batch job has widely varying parallelism across stages and runs with enough scheduling slack to tolerate delayed starts and interruptions. The job supports both Flex execution and Auto Scaling; which configuration BEST reduces compute costs without changing its transformations?

    Show the answer

    Correct answerB. Flex execution with Auto Scaling enabled

    AWhy not this: Auto Scaling addresses changing demand, but Standard execution misses the savings available through Flex.

    BWhy this is right: Flex suits delay-tolerant processing, and Auto Scaling reduces excess workers during lower-demand stages.

    CWhy not this: Standard pricing and a fixed worker allocation miss both available cost optimizations.

    DWhy not this: Flex reduces the compute rate, but a fixed worker allocation retains excess capacity during lower-demand stages.

    Flex execution offers lower-cost compute for time-flexible jobs, while Auto Scaling adjusts workers as demand changes. Standard execution with Auto Scaling addresses variable demand but does not provide Flex execution's pricing benefit.

    Open this question
  34. Question 84

    Data Ingestion and Transformation

    What defines distributed computing in a data processing system?

    Show the answer

    Correct answerB. Coordinating work across networked computers to complete a task.

    AWhy not this: Successive stages on one computer describe local sequential processing.

    BWhy this is right: Cooperating networked computers are the defining feature of distributed computing.

    CWhy not this: Adding memory to one computer is vertical scaling rather than distributed computing.

    DWhy not this: Multiple threads in one process provide local concurrency, not computation across networked computers.

    Distributed computing coordinates work across multiple networked computers. Multithreading provides concurrency within a process but does not by itself distribute work across computers.

    Open this question
  35. Question 85

    Data Ingestion and Transformation

    A production DynamoDB table was created manually and is not managed by any CloudFormation stack. An engineer must bring it under stack management without recreating it or interrupting access, then deploy future configuration changes from a version-controlled template; which approach meets these requirements?

    Show the answer

    Correct answerA. Import the table using a matching resource definition, then apply subsequent stack updates.

    AWhy this is right: Resource import adopts the existing table so subsequent configuration changes can use version-controlled stack updates.

    BWhy not this: A replacement table does not bring the original table under management and introduces an unnecessary migration.

    CWhy not this: Standard stack creation attempts to create the declared resource; matching its name does not import an existing table.

    DWhy not this: A parameter can reference the table, but it does not bring the table's configuration under stack management.

    CloudFormation resource import brings an existing supported resource under stack management without recreating it. Merely declaring an existing table's name in a standard stack creation does not adopt the table and can cause a name conflict.

    Open this question
  36. Question 86

    Data Ingestion and Transformation

    An engineer has a SAM template and Python Lambda source code with dependencies listed in requirements.txt. Which SAM CLI operation prepares the function code and dependencies as build artifacts for packaging and deployment?

    Show the answer

    Correct answerC. Build the application with AWS SAM.

    AWhy not this: SAM validation checks the template rather than preparing function dependencies.

    BWhy not this: SAM package uploads artifacts and updates their template references rather than building dependencies.

    CWhy this is right: SAM build prepares the function code and installs declared dependencies into build artifacts.

    DWhy not this: SAM sync updates a development application in AWS rather than serving as the artifact preparation operation.

    SAM build prepares function code and dependencies as build artifacts. SAM package uploads local artifacts and produces a template that references them; it does not replace the dependency build step.

    Open this question
  37. Question 87

    Data Ingestion and Transformation

    A Lambda function processes Kinesis records 101–110 in order and reports only record 105 as failed using an enabled ReportBatchItemFailures configuration. With batch bisection disabled, which records does Lambda retry?

    Show the answer

    Correct answerD. Records 105–110

    AWhy not this: The failed record remains unprocessed and must be included in the retry.

    BWhy not this: The records before the reported failure do not need to be retried when the partial response is valid.

    CWhy not this: Partial batch reporting advances the checkpoint but does not independently acknowledge every later record.

    DWhy this is right: Lambda retries from the lowest reported failed sequence number through the remaining records in the batch.

    For a Kinesis partial batch response, Lambda uses the lowest reported failed sequence number as the checkpoint and retries from that record onward. Reporting an individual failure does not restrict the retry to only that record.

    Open this question
  38. Question 88

    Data Ingestion and Transformation

    Which Amazon EventBridge configuration invokes an ingestion Lambda function when matching events arrive on an event bus?

    Show the answer

    Correct answerB. A rule with an event pattern and Lambda target

    AWhy not this: A rate expression invokes a target at recurring intervals rather than in response to matching events.

    BWhy this is right: An event pattern selects matching events, and the rule routes them to the Lambda target.

    CWhy not this: An archive retains events for possible replay; it does not configure the live Lambda invocation.

    DWhy not this: An event bus policy controls who can publish events, not which events invoke a target.

    An EventBridge rule matches incoming events against an event pattern and routes matches to its target. EventBridge Scheduler invokes targets according to a schedule, not when matching events arrive.

    Open this question
  39. Question 89

    Data Ingestion and Transformation

    A Kinesis producer sends many tiny records and reaches the per-shard write record-rate limit while remaining well below the byte-rate limit. Without adding shards, which change best reduces throttling?

    Show the answer

    Correct answerC. Enable Kinesis Producer Library aggregation

    AWhy not this: PutRecords batches API submissions but does not reduce the number of Kinesis records counted against the shard limit.

    BWhy not this: Consumer polling frequency affects reads, not the producer's per-shard write record rate.

    CWhy this is right: Aggregation combines multiple user records into fewer Kinesis records, reducing record-rate pressure.

    DWhy not this: Enhanced fan-out provides dedicated consumer read throughput; it does not increase producer write capacity.

    Kinesis Producer Library aggregation packs multiple user records into fewer Kinesis records, reducing the per-shard record rate. PutRecords batching reduces API calls but each record in the request still counts toward the shard's record-rate limit.

    Open this question
  40. Question 90

    Data Ingestion and Transformation

    AWS Glue jobs use replaceable network interfaces in two dedicated private subnets to reach an on-premises database over a Site-to-Site VPN without address translation. The firewall accepts only IPv4 CIDRs; which source allowlist supports interface replacement while exposing the smallest address range?

    Show the answer

    Correct answerC. The two dedicated Glue subnet CIDR blocks

    AWhy not this: The VPN path does not translate traffic through the public NAT gateways, so these are not the observed sources.

    BWhy not this: The VPC CIDR accommodates replacement but exposes more source addresses than the dedicated subnet CIDRs.

    CWhy this is right: These CIDRs cover replacement interface addresses while limiting access to the dedicated source subnets.

    DWhy not this: Replacement interfaces can receive different private addresses, making the current /32 entries insufficient.

    Without address translation, the database firewall sees the Glue network interfaces' private addresses. Allowing the two dedicated subnet CIDRs accommodates replacement interfaces without allowing the entire VPC; current interface /32 entries would become stale.

    Open this question
  41. Question 91

    Data Ingestion and Transformation

    What does fan-in mean in a streaming ingestion pipeline?

    Show the answer

    Correct answerD. Combining multiple producers into one stream

    AWhy not this: Reducing requests after reaching a limit describes throttling management.

    BWhy not this: Distributing a stream to multiple consumers describes fan-out.

    CWhy not this: Reading older retained records describes replay.

    DWhy this is right: Fan-in brings records from multiple producers into a common stream.

    Fan-in combines data from multiple producers into a common stream. Fan-out distributes a stream to multiple consumers instead.

    Open this question
  42. Question 92

    Data Ingestion and Transformation

    An Amazon Managed Service for Apache Flink application suppresses duplicate event IDs for one hour using keyed state. After a failure, which recovery approach preserves duplicate detection for IDs remembered at the recovery point?

    Show the answer

    Correct answerB. Restore keyed state and source positions from a consistent checkpoint

    AWhy not this: More parallel tasks do not recover the event IDs lost with operator state.

    BWhy this is right: A consistent checkpoint restores both remembered IDs and the corresponding source progress.

    CWhy not this: Source positions alone do not restore the remembered IDs required for duplicate detection.

    DWhy not this: Starting at the latest records with empty state loses remembered IDs and can skip unprocessed input.

    Stateful duplicate detection depends on remembered event IDs, so recovery must restore keyed state consistently with source positions. Restoring source positions alone recovers reading progress but loses the history needed to recognize duplicates.

    Open this question
  43. Question 93

    Data Ingestion and Transformation

    A Kinesis Data Streams stream has 24-hour retention and no archive. A consumer was offline for 36 hours; what happens when it attempts to replay from its last processed position?

    Show the answer

    Correct answerC. The expired records are unavailable for replay

    AWhy not this: TRIM_HORIZON starts at the oldest retained record, not at records already removed.

    BWhy not this: Increasing retention does not recover records that have already expired.

    CWhy this is right: Records that aged out of retention cannot be replayed from the stream without another retained copy.

    DWhy not this: A saved position tracks progress; it does not prevent records from expiring.

    Replay is limited to records still retained in the stream or preserved elsewhere. A saved position identifies progress but does not preserve records beyond retention; TRIM_HORIZON starts at the oldest record still available.

    Open this question
  44. Question 94

    Data Ingestion and Transformation

    Fraud detection and analytics applications consume an Amazon MSK topic, each using several workers. Each application must receive every record while dividing partitions among its own workers; which configuration meets this requirement?

    Show the answer

    Correct answerA. Assign a separate consumer group to each application

    AWhy this is right: Each group independently consumes the topic and distributes its partitions among that application's workers.

    BWhy not this: A shared group divides partitions across both applications, so neither application necessarily receives every record.

    CWhy not this: Exclusive partition subsets prevent each application from receiving the complete topic.

    DWhy not this: A group per worker delivers the full topic to each worker rather than sharing work within an application.

    Separate consumer groups let each application consume the complete topic while sharing partition assignments among its workers. One shared group divides records across both applications instead of delivering every record to each application.

    Open this question
  45. Question 95

    Data Ingestion and Transformation

    Which AWS capability lets applications run SQL against Amazon Redshift through HTTPS without managing persistent database connections?

    Show the answer

    Correct answerD. Amazon Redshift Data API

    AWhy not this: A JDBC driver uses driver-based database connections rather than exposing the managed HTTPS interface described.

    BWhy not this: Spectrum queries external data from Redshift; it is not an HTTPS interface for application SQL requests.

    CWhy not this: The Data Catalog stores metadata used to discover and query data; it does not execute Redshift SQL through an application API.

    DWhy this is right: The Data API lets applications submit SQL over HTTPS without managing persistent database connections.

    The Amazon Redshift Data API accepts SQL requests through an HTTPS interface and manages database connections. A JDBC driver provides database connectivity but requires the application to manage driver-based connections.

    Open this question
  46. Question 96

    Data Ingestion and Transformation

    A data lake expands from 20 TB to 80 TB of retained data and adds audio recordings alongside existing relational tables. Which conclusions describe these changes? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Data volume increased because more data is retained.D. Data variety increased because audio adds a different data form.

    AWhy this is right: Increasing retained data from 20 TB to 80 TB increases the amount of data and therefore its volume.

    BWhy not this: Stored bytes describe volume; they do not establish the rate at which data arrives or needs processing.

    CWhy not this: A shared storage location does not remove differences between relational tables and audio recordings.

    DWhy this is right: Adding audio to relational tables introduces another data form and increases variety.

    EWhy not this: Volume measures the amount of data, not the number of storage systems.

    Volume measures the amount of data, while variety describes its different forms and structures. Increased retained storage does not establish higher velocity, which concerns how quickly data arrives or must be processed.

    Open this question
  47. Question 97

    Data Ingestion and Transformation

    A pipeline uses an LLM to extract invoice fields as JSON, but some responses contain invalid dates or missing required fields. What should the engineer add before loading the records?

    Show the answer

    Correct answerA. A schema and field-validation step that routes failures for review

    AWhy this is right: Explicit validation checks each response against required fields and value rules before admitting it to the destination.

    BWhy not this: A higher token limit can address truncated output, not missing-field or date-validation requirements.

    CWhy not this: Format conversion with an inferred schema does not enforce required invoice fields or valid date values.

    DWhy not this: More context may improve extraction but does not check whether each generated record satisfies the required constraints.

    Schema and field validation detect missing required fields and invalid values before loading, allowing failures to be reviewed. Converting output to Parquet changes its representation but does not establish that extracted values meet business requirements.

    Open this question
  48. Question 98

    Data Ingestion and Transformation

    A Bedrock pipeline must answer questions using frequently revised internal manuals, cite supporting passages, and withhold answers when evidence is missing. Without retraining the model, which design BEST meets these requirements?

    Show the answer

    Correct answerB. Retrieve current passages, include them in the prompt, and validate supporting citations before releasing answers.

    AWhy not this: Fine-tuning requires training, can become stale, and does not establish passage-level support for generated claims.

    BWhy this is right: Current retrieved evidence supports freshness, while citation validation and withholding unsupported answers enforce grounding.

    CWhy not this: Links added after generation do not establish that the linked passages support the generated claims.

    DWhy not this: Falling back to model knowledge violates the requirement to withhold answers when supporting evidence is missing.

    Retrieval-augmented generation supplies current source passages without retraining; evidence validation and withholding unsupported answers address grounding requirements. Retrieval alone is insufficient if the model can replace missing evidence with its own knowledge.

    Open this question
  49. Question 99

    Data Ingestion and Transformation

    An API Gateway REST API must expose Athena reports whose queries take several minutes. Which design avoids keeping an HTTP request open while still letting clients retrieve completed results?

    Show the answer

    Correct answerB. Return a query identifier immediately and provide endpoints for status checks and paginated results.

    AWhy not this: Caching can help repeated requests, but a cache miss still requires the long-running query to finish within the request.

    BWhy this is right: A query identifier separates submission from execution, while status and result endpoints support later retrieval.

    CWhy not this: Waiting retains the long-running HTTP request and risks an API integration timeout.

    DWhy not this: A longer Lambda timeout does not eliminate the original REST API integration's timeout constraints.

    An asynchronous API returns a query identifier, allowing clients to poll for completion and retrieve results separately. Increasing a Lambda timeout does not remove the integration timeout constraints of the original API request.

    Open this question
  50. Question 100

    Data Ingestion and Transformation

    An ingestion client connects to a publicly accessible Amazon RDS for PostgreSQL database from the fixed public IPv4 address 198.51.100.27. Which inbound security group rule allows database access from only that address?

    Show the answer

    Correct answerD. Allow TCP port 5432 from 198.51.100.27/32

    AWhy not this: The 0.0.0.0/0 source allows connections from any IPv4 address.

    BWhy not this: The /24 range includes other addresses, allowing more sources than required.

    CWhy not this: The source is restricted correctly, but port 443 is for HTTPS rather than the default PostgreSQL listener.

    DWhy this is right: The /32 restricts access to the client's single public address on the default PostgreSQL port.

    An IPv4 /32 specifies one address, and PostgreSQL uses TCP port 5432 by default. A /24 allows an entire address range rather than only the client's address.

    Open this question