Curated

Data Ingestion and Transformation (1.1–1.4)

0 votes

Questions102

  1. Question 1

    Data Ingestion and Transformation

    A Lambda function serves synchronous ingestion requests with strict latency requirements. After idle periods, initialization delays cause latency spikes; which configuration should the engineer use to keep execution environments initialized?

    Show the answer

    Correct answerB. Configure provisioned concurrency on an alias

    AWhy not this: Additional ephemeral storage provides more temporary disk space, not preinitialized execution environments.

    BWhy this is right: Provisioned concurrency maintains initialized environments for the configured concurrency level.

    CWhy not this: A longer timeout permits longer execution but does not prevent initialization delays.

    DWhy not this: Reserved concurrency controls capacity allocation and maximum concurrency but does not keep environments initialized.

    Provisioned concurrency keeps a configured number of execution environments initialized and ready for requests. Reserved concurrency reserves concurrency capacity and sets a limit, but does not preinitialize environments.

    Open this question
  2. Question 2

    Data Ingestion and Transformation

    A Python transformation repeatedly checks whether each incoming customer ID appears in a large list of allowed IDs. Order and duplicate entries are irrelevant; which change will MOST reduce membership-check runtime?

    Show the answer

    Correct answerD. Build a set once and check membership in it

    AWhy not this: Sorting repeatedly adds overhead, and the standard membership operation still searches a list linearly.

    BWhy not this: Copying adds work and leaves the linear-time membership check unchanged.

    CWhy not this: Tuple membership checks remain linear despite the tuple being immutable.

    DWhy this is right: A set supports average constant-time membership checks, and building it once amortizes the conversion cost.

    Python sets provide average constant-time membership checks, whereas list membership checks take linear time. Converting the list to a tuple does not change the linear search required for membership checks.

    Open this question
  3. Question 3

    Data Ingestion and Transformation

    An AWS Glue Spark job joins a 2 TB fact dataset to a filtered lookup dataset that fits comfortably in each executor's memory. Profiling shows shuffle traffic dominates runtime; which change should the engineer make?

    Show the answer

    Correct answerD. Broadcast the filtered lookup dataset

    AWhy not this: Caching helps when data is reused but does not remove the join's shuffle traffic.

    BWhy not this: Repartitioning by the join key redistributes records and does not eliminate the expensive fact-data shuffle.

    CWhy not this: Reducing partition counts does not eliminate the join shuffle and can reduce parallelism.

    DWhy this is right: Broadcasting the small lookup dataset enables local joins without shuffling the large fact dataset.

    A broadcast join distributes the small lookup dataset to executors, avoiding a shuffle of the large fact dataset. Repartitioning both datasets still requires redistributing records across the network.

    Open this question
  4. Question 4

    Data Ingestion and Transformation

    Which language directly expresses relational joins and grouped aggregations declaratively through SELECT statements?

    Show the answer

    Correct answerB. SQL

    AWhy not this: Bash is a shell scripting language, not a relational query language with SELECT statements.

    BWhy this is right: SQL directly supports declarative relational operations such as JOIN and GROUP BY.

    CWhy not this: Java is a general-purpose language; SELECT statements belong to SQL rather than Java syntax.

    DWhy not this: PowerShell supports scripting and object pipelines, not relational SELECT statements.

    SQL uses declarative SELECT statements to join tables and aggregate rows into groups. Bash can orchestrate data-processing tools but does not natively express relational queries using SELECT statements.

    Open this question
  5. Question 5

    Data Ingestion and Transformation

    An AWS Glue Spark batch job reads millions of small JSON files from Amazon S3 with a Spark DataFrame (spark.read.json), and the driver runs out of memory while tracking the file tasks. Which change most directly reduces this overhead?

    Show the answer

    Correct answerC. Read the files through a DynamicFrame with groupFiles set to inPartition.

    AWhy not this: Bookmarks track processing progress; they do not reduce file-task overhead for files that must be read.

    BWhy not this: Crawler frequency affects metadata discovery, not the number of tasks used to process input files.

    CWhy this is right: A DynamicFrame read that groups files within partitions creates far fewer input tasks, reducing driver overhead.

    DWhy not this: Recursive reading includes nested paths; it does not consolidate small files into fewer tasks.

    A plain Spark DataFrame read creates a task for each small file, and the driver must track them all. Reading through an AWS Glue DynamicFrame with groupFiles set to inPartition combines small files within each S3 partition into groups, so far fewer tasks are created; for DynamicFrame reads, AWS Glue turns grouping on automatically when there are more than 50,000 input files. Job bookmarks track previously processed data but do not group files within a batch.

    Open this question
  6. Question 6

    Data Ingestion and Transformation

    A Redshift batch load must read only an approved list of S3 files and fail if any listed file is missing. Unrelated files share the same prefix. Which COPY configuration meets both requirements?

    Show the answer

    Correct answerC. Use a manifest with every entry marked mandatory: true.

    AWhy not this: A shared prefix can include unrelated files; MAXERROR controls tolerated data errors, not an exact file list.

    BWhy not this: A shared prefix can include unrelated files, and IGNOREALLERRORS does not enforce required file presence.

    CWhy this is right: The manifest limits the load to listed files, and mandatory: true requires every listed file to exist.

    DWhy not this: The manifest selects the files, but mandatory: false allows missing entries to be skipped.

    A manifest specifies the exact files to load, and mandatory: true makes COPY fail if a listed file is missing. A manifest with mandatory: false selects the files but permits missing entries to be skipped.

    Open this question
  7. Question 7

    Data Ingestion and Transformation

    A company must copy Salesforce opportunity records into Amazon S3 every night, retrieving only the records changed since the previous run. The team does not want to write or host any code. Which approach meets these requirements?

    Show the answer

    Correct answerC. Create an Amazon AppFlow flow from Salesforce to Amazon S3 that runs on a daily schedule with incremental transfer.

    AWhy not this: AWS DMS reads from database sources and does not offer Salesforce as a source endpoint.

    BWhy not this: A crawler records table metadata in the Data Catalog; it does not copy changed records into S3.

    CWhy this is right: A scheduled AppFlow flow with incremental transfer copies only changed Salesforce records to S3 without custom code.

    DWhy not this: A scheduled Lambda function could call the API, but it requires writing and maintaining code.

    Amazon AppFlow is a managed, no-code integration service with a Salesforce source connector and an Amazon S3 destination. A schedule-triggered flow can use incremental transfer, which pulls only records whose change timestamp is later than the previous run. AWS DMS migrates databases and does not support Salesforce as a source, a crawler only records metadata, and a Lambda function requires custom code.

    Open this question
  8. Question 8

    Data Ingestion and Transformation

    A pipeline consumes DynamoDB Streams records to compare item attributes before and after each update. Which stream view type provides the required data?

    Show the answer

    Correct answerA. NEW_AND_OLD_IMAGES

    AWhy this is right: NEW_AND_OLD_IMAGES includes both item states needed to compare attributes across an update.

    BWhy not this: NEW_IMAGE includes the item after modification but omits its previous state.

    CWhy not this: KEYS_ONLY includes key attributes but not the complete item states needed for comparison.

    DWhy not this: OLD_IMAGE includes the item before modification but omits its resulting state.

    NEW_AND_OLD_IMAGES includes the item attributes before and after a modification. NEW_IMAGE provides only the resulting item, so it cannot independently support the comparison.

    Open this question
  9. Question 9

    Data Ingestion and Transformation

    A pipeline must run independent 45-minute AWS Glue jobs concurrently, retry only a failed job, and start aggregation after every job succeeds. Which orchestration design meets these requirements with the least custom code?

    Show the answer

    Correct answerB. A Step Functions Standard workflow with Parallel branches, Glue .sync tasks, and task-level retries

    AWhy not this: Request-response tasks finish after job submission, so the branches do not wait for successful Glue job completion.

    BWhy this is right: Glue .sync waits for job completion, Parallel joins the branches, and task-level retries rerun only the failed task.

    CWhy not this: Polling, completion tracking, and retry coordination require custom code that Step Functions can replace.

    DWhy not this: Express workflows have a five-minute maximum duration and do not support the .sync integration pattern.

    Standard workflows support long-running Glue .sync tasks; Parallel waits for its branches, and task-level retries isolate failures. Request-response tasks complete when Glue accepts the start request, not when the jobs finish.

    Open this question
  10. Question 10

    Data Ingestion and Transformation

    A pipeline task occasionally fails because of temporary service throttling. Which change BEST improves resilience?

    Show the answer

    Correct answerC. Retry with exponential backoff

    AWhy not this: Disabling retries makes temporary throttling more likely to cause a permanent pipeline failure.

    BWhy not this: A longer timeout helps slow operations but does not recover a request that fails because of throttling.

    CWhy this is right: Progressively delayed retries give the service time to recover without immediately repeating the same request load.

    DWhy not this: Higher concurrency can increase request pressure and make throttling worse.

    Exponential backoff spaces out retry attempts, allowing temporary throttling to subside. Increasing the execution timeout does not retry a request that has already failed.

    Open this question
  11. Question 11

    Data Ingestion and Transformation

    A team has Apache Airflow DAGs that coordinate AWS Glue jobs and Python tasks with task dependencies and scheduled runs. Which managed service should the team choose to retain these DAGs with the fewest changes?

    Show the answer

    Correct answerA. Amazon Managed Workflows for Apache Airflow

    AWhy this is right: Amazon MWAA provides managed Apache Airflow and supports existing Airflow DAGs and operators.

    BWhy not this: EventBridge Scheduler invokes targets on schedules but does not execute Airflow DAGs or manage their task dependencies.

    CWhy not this: Glue workflows coordinate Glue jobs and crawlers but require replacing the existing Airflow orchestration definitions.

    DWhy not this: Step Functions requires translating the DAGs into state machine definitions rather than retaining the Airflow definitions.

    Amazon MWAA runs Apache Airflow, preserving its DAG-based orchestration model. AWS Glue workflows coordinate Glue resources but do not directly run existing Airflow DAG definitions.

    Open this question
  12. Question 12

    Data Ingestion and Transformation

    An AWS Glue Spark job must read a database that requires a vendor JDBC driver absent from Glue's built-in drivers. Network access and credentials are already configured. What should the engineer configure?

    Show the answer

    Correct answerA. A custom JDBC driver JAR in Amazon S3 and its driver class

    AWhy this is right: The driver JAR and class provide the vendor-specific JDBC implementation needed to connect.

    BWhy not this: An ODBC configuration does not supply the JDBC implementation required by this Spark job.

    CWhy not this: Table classification controls metadata discovery, not the database connection driver.

    DWhy not this: A schema registry manages schemas rather than database connectivity drivers.

    AWS Glue supports custom JDBC drivers supplied through a driver JAR in Amazon S3 and a driver class name. A crawler discovers metadata but does not replace the JDBC driver required to establish the connection.

    Open this question
  13. Question 13

    Data Ingestion and Transformation

    An Amazon ECS transformation task repeatedly exceeds its hard memory limit and is terminated. Which change most directly addresses the failure?

    Show the answer

    Correct answerC. Increase the container's memory limit

    AWhy not this: More task instances do not change the memory limit of an individual container.

    BWhy not this: More CPU does not increase the memory available to the container.

    CWhy this is right: A higher memory limit accommodates the working set that caused the termination.

    DWhy not this: Log retention affects stored logs, not the container's runtime memory.

    Increasing the memory limit allows the container to accommodate its working set. Increasing the task count does not increase the memory available to each container.

    Open this question
  14. Question 14

    Data Ingestion and Transformation

    An Amazon EKS transformation service uses a Horizontal Pod Autoscaler. During ingestion peaks, additional Pods remain Pending because existing nodes lack requested CPU capacity; the node group's maximum size has room to grow. Which change BEST enables the service to scale?

    Show the answer

    Correct answerB. Configure Cluster Autoscaler for the node group

    AWhy not this: A lower utilization target can request more Pods without resolving the node capacity shortage.

    BWhy this is right: Cluster Autoscaler can expand the node group to provide capacity for unschedulable Pods.

    CWhy not this: Larger CPU requests make Pods harder to schedule on the existing nodes.

    DWhy not this: A higher replica limit does not provide capacity for Pods that are already Pending.

    Cluster Autoscaler can add nodes when Pods cannot be scheduled because of insufficient resources. Raising the Horizontal Pod Autoscaler's replica limit creates more Pods but does not supply node capacity.

    Open this question
  15. Question 15

    Data Ingestion and Transformation

    Two sources contain nonoverlapping sales records with identical schemas. Which operation combines every record into one dataset without removing duplicates?

    Show the answer

    Correct answerA. UNION ALL

    AWhy this is right: UNION ALL appends all rows from compatible datasets without deduplication.

    BWhy not this: GROUP BY forms groups for aggregation rather than preserving every source record.

    CWhy not this: An inner join matches rows using a condition rather than appending every source row.

    DWhy not this: SELECT DISTINCT removes duplicate rows, contrary to the requirement.

    UNION ALL appends rows from compatible datasets and preserves duplicates. INNER JOIN combines matching rows across columns rather than appending all source records.

    Open this question
  16. Question 16

    Data Ingestion and Transformation

    An AWS Glue job must enrich orders from Amazon S3 with customer attributes from Amazon RDS. The sources use different customer identifiers, and a mapping table relates them. Which approach correctly matches the records?

    Show the answer

    Correct answerB. Map the identifiers, then join the customer attributes

    AWhy not this: The source identifiers are different, so direct equality does not establish customer identity.

    BWhy this is right: Resolving identifiers through the mapping table enables a reliable enrichment join.

    CWhy not this: Independent aggregation does not reconcile identities or enrich individual orders.

    DWhy not this: A union appends rows; it does not attach customer attributes to matching orders.

    The mapping table establishes a common identity so the job can join each order to the correct customer. Directly joining unrelated source identifiers can produce missing or incorrect matches.

    Open this question
  17. Question 17

    Data Ingestion and Transformation

    An AWS Step Functions workflow receives a validation result containing a Boolean field named valid. How should the workflow route valid records to transformation and invalid records to quarantine without additional compute?

    Show the answer

    Correct answerB. Use a Choice state with a rule on the valid field.

    AWhy not this: A Pass state can pass or transform data but cannot conditionally select the next state.

    BWhy this is right: A Choice state evaluates the Boolean field and routes execution to the appropriate destination.

    CWhy not this: A Map state repeats processing over a collection rather than selecting a destination from a Boolean result.

    DWhy not this: A Parallel state executes branches concurrently; it does not select a branch by evaluating the valid field.

    A Choice state evaluates data and routes execution to the matching next state without additional compute. A Parallel state runs its branches concurrently rather than selecting a destination based on a validation result.

    Open this question
  18. Question 18

    Data Ingestion and Transformation

    A serverless pipeline must pause for external validation for up to 12 hours, resume only after explicit approval, and fail if approval misses that deadline. Which AWS Step Functions design choices meet these requirements? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersB. Set the validation task's TimeoutSeconds to 43200.C. Use a task with the .waitForTaskToken pattern.E. Use a Standard Workflow.F. Have the validator call SendTaskSuccess with the task token.

    AWhy not this: A Wait state resumes after a time interval or timestamp, not after confirmation of external approval.

    BWhy this is right: A 43,200-second task timeout fails the waiting task if approval does not arrive within 12 hours.

    CWhy this is right: The callback integration pattern pauses the task until an external participant returns its task token.

    DWhy not this: Express Workflows have a five-minute maximum duration and do not support the callback integration pattern.

    EWhy this is right: Standard Workflows support callback tasks and executions lasting up to one year.

    FWhy this is right: SendTaskSuccess returns the task token and completes the waiting task after approval.

    Standard Workflows support long-running callback tasks: the task token links explicit approval to the waiting task, and TimeoutSeconds enforces the deadline. Express Workflows have a five-minute maximum duration and do not support callback tasks; a Wait state cannot confirm approval.

    Open this question
  19. Question 19

    Data Ingestion and Transformation

    Which AWS service can deliver pipeline failure alerts directly to confirmed email subscribers?

    Show the answer

    Correct answerA. Amazon SNS

    AWhy this is right: Amazon SNS topics support confirmed email subscriptions for delivering published alerts.

    BWhy not this: AWS Step Functions orchestrates workflows but requires a notification service to deliver email alerts.

    CWhy not this: Amazon SQS provides message queues for consumers to poll, not direct email delivery.

    DWhy not this: AWS Glue workflows coordinate Glue jobs and crawlers rather than directly delivering email alerts.

    Amazon SNS supports email subscriptions to topics and delivers published alerts to confirmed subscribers. Amazon SQS stores messages for consumers to retrieve; it does not directly deliver email notifications.

    Open this question
  20. Question 20

    Data Ingestion and Transformation

    Which services can schedule ingestion workflows to run at recurring times? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Amazon Managed Workflows for Apache AirflowB. Amazon EventBridge Scheduler

    AWhy this is right: Amazon MWAA runs Apache Airflow workflows that can have recurring schedules.

    BWhy this is right: EventBridge Scheduler invokes targets according to recurring rate or cron schedules.

    CWhy not this: S3 Event Notifications respond to bucket events, not recurring clock times.

    DWhy not this: DynamoDB Streams captures item-level changes rather than scheduling workflows.

    EventBridge Scheduler supports recurring schedules, and Amazon MWAA runs scheduled Apache Airflow workflows. S3 Event Notifications and DynamoDB Streams respond to data changes rather than recurring clock times.

    Open this question
  21. Question 21

    Data Ingestion and Transformation

    An ingestion job must start daily at 8:00 a.m. New York local time, including across daylight saving time changes. Which configuration meets this requirement without seasonal updates?

    Show the answer

    Correct answerC. An EventBridge Scheduler cron schedule using the America/New_York time zone

    AWhy not this: A 24-hour interval does not adjust its local execution time when daylight saving time changes.

    BWhy not this: A fixed 13:00 UTC schedule matches 8:00 a.m. during standard time but shifts to 9:00 a.m. during daylight saving time.

    CWhy this is right: A cron schedule evaluated in America/New_York maintains the required local time across daylight saving time changes.

    DWhy not this: A fixed 12:00 UTC schedule matches 8:00 a.m. during daylight saving time but shifts to 7:00 a.m. during standard time.

    EventBridge Scheduler evaluates cron schedules in a specified time zone and adjusts for daylight saving time. A fixed UTC cron expression or a 24-hour rate does not maintain 8:00 a.m. New York time across clock changes.

    Open this question
  22. Question 22

    Data Ingestion and Transformation

    A pipeline must send Amazon S3 object-creation events to an existing Amazon SQS FIFO queue without custom forwarding code. Which event configuration meets this requirement?

    Show the answer

    Correct answerD. Enable S3 events in EventBridge and route Object Created events to the FIFO queue.

    AWhy not this: S3 Event Notifications do not support SNS FIFO topics as destinations.

    BWhy not this: S3 Event Notifications do not support SQS FIFO queues as direct destinations.

    CWhy not this: CreateBucket represents bucket creation, not creation of objects within a bucket.

    DWhy this is right: EventBridge can match S3 Object Created events and deliver them to an SQS FIFO target with a configured message group ID.

    S3 can publish events to EventBridge, whose rules can target SQS FIFO queues. Direct S3 Event Notifications do not support SQS FIFO queues or SNS FIFO topics; CreateBucket events do not represent object creation.

    Open this question
  23. Question 23

    Data Ingestion and Transformation

    An ingestion job reads a paginated API that can return empty pages with continuation tokens and HTTP 429 responses with Retry-After headers. The job must resume after failures without skipping unwritten pages; which approach meets these requirements?

    Show the answer

    Correct answerC. Follow continuation tokens, honor Retry-After, and save each token after writing its page.

    AWhy not this: Saving the next token before the current page is written can cause that page to be skipped after a failure.

    BWhy not this: An empty page can still have a continuation token, so stopping can omit subsequent records.

    CWhy this is right: Token-based completion, server-directed retries, and post-write checkpoints prevent premature termination and skipped unwritten pages.

    DWhy not this: Immediate retries disregard Retry-After and can prolong throttling or exhaust retry attempts.

    Continue until the API provides no continuation token, honor Retry-After, and checkpoint only after the page is durably written. Checkpointing before writing can skip a page after a failure; an empty page alone does not indicate completion.

    Open this question
  24. Question 24

    Data Ingestion and Transformation

    Which properties distinguish Apache Parquet from CSV when converting an analytics dataset? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Column-oriented storageD. Embedded schema with data types

    AWhy this is right: Parquet organizes data by column, allowing readers to access selected columns efficiently.

    BWhy not this: CSV typically requires readers to infer types or obtain them from an external schema.

    CWhy not this: Comma-delimited text records describe CSV, not Parquet's binary columnar layout.

    DWhy this is right: Parquet files include schema metadata that describes fields and their data types.

    Parquet stores data by column and includes schema information with data types. Comma-delimited records and plain-text values without embedded type metadata describe CSV rather than Parquet.

    Open this question
  25. Question 25

    Data Ingestion and Transformation

    Each uploaded Amazon S3 object needs an independent Python transformation that takes 20 seconds and uses 512 MB of memory. Which service meets these requirements with the least infrastructure management?

    Show the answer

    Correct answerD. An AWS Lambda function

    AWhy not this: An ECS service on EC2 requires managing container hosts rather than using an infrastructure-free event handler.

    BWhy not this: A Redshift cluster is designed for warehouse processing, not independent Python execution for each S3 upload.

    CWhy not this: An EMR on EC2 cluster adds cluster management for a small transformation that does not require distributed processing.

    DWhy this is right: Lambda can handle S3 upload events, and the stated execution time and memory fit its supported limits.

    AWS Lambda supports short, independent transformations triggered by S3 events without managing servers. Amazon EMR supports distributed processing but adds unnecessary cluster management for this workload.

    Open this question
  26. Question 26

    Data Ingestion and Transformation

    An Amazon EMR cluster runs restartable Spark batch jobs and stores intermediate data in HDFS on core nodes. Which purchasing strategy reduces compute costs while minimizing the risk of losing HDFS data to Spot interruptions?

    Show the answer

    Correct answerB. Use On-Demand Instances for core nodes and Spot Instances for task nodes.

    AWhy not this: Core nodes store HDFS data, so using Spot for them exposes that data to interruption risk.

    BWhy this is right: On-Demand core nodes protect HDFS availability while Spot task nodes reduce the cost of restartable computation.

    CWhy not this: On-Demand capacity avoids Spot interruptions but misses the cost savings available for restartable task-node computation.

    DWhy not this: Spot capacity throughout the cluster reduces prices but puts HDFS-bearing core nodes at risk of interruption.

    Task nodes provide compute without storing HDFS data, so Spot task nodes offer savings without directly risking HDFS blocks. Spot core nodes can lower costs but expose HDFS storage to interruptions.

    Open this question
  27. Question 27

    Data Ingestion and Transformation

    Data already resides in Amazon Redshift, and a nightly transformation must execute conditional SQL updates across several tables as one transaction. The team must avoid exporting data and minimize processing outside the warehouse; which implementation best fits?

    Show the answer

    Correct answerC. Use a default-mode Redshift stored procedure with one transaction.

    AWhy not this: Committing after each update allows partial results if a later update fails.

    BWhy not this: Spark processing moves work outside the warehouse, and separate JDBC writes do not establish one shared transaction.

    CWhy this is right: A default-mode stored procedure supports conditional SQL and transactional updates within Redshift.

    DWhy not this: EMR adds external processing, and separate JDBC writes cannot guarantee atomic updates across all target tables.

    A default-mode Redshift stored procedure can execute conditional SQL and keep the updates in one transaction without moving data out of the warehouse. Separate JDBC writes or per-table commits do not provide the required all-or-nothing transaction.

    Open this question
  28. Question 28

    Data Ingestion and Transformation

    An AWS Glue Spark job writes each day's output to Amazon S3 as Parquet. Every run produces tens of thousands of files of a few kilobytes each, and Amazon Athena queries on the output have become slow. Which change most directly addresses the problem?

    Show the answer

    Correct answerC. Reduce the number of Spark partitions with coalesce before writing.

    AWhy not this: More workers increase parallelism and can produce even more output files rather than fewer.

    BWhy not this: Bookmarks track which input data has been processed; they do not change output file sizes.

    CWhy this is right: Fewer Spark partitions at write time produce fewer, larger output files that query engines read efficiently.

    DWhy not this: Changing to uncompressed CSV leaves the file count unchanged and makes scans larger and slower.

    Spark writes at least one file per partition, so a DataFrame with thousands of partitions produces thousands of tiny files that slow query planning and S3 reads. Coalescing to fewer partitions before the write produces fewer, larger files. More workers add parallelism and can increase the file count.

    Open this question
  29. Question 29

    Data Ingestion and Transformation

    Which artifact declaratively defines AWS resources and their configuration for deployment as infrastructure as code?

    Show the answer

    Correct answerD. An AWS CloudFormation template

    AWhy not this: A dashboard visualizes operational information rather than declaring resources for deployment.

    BWhy not this: A Glue transformation script defines data-processing logic rather than infrastructure resources.

    CWhy not this: An execution history records workflow events rather than defining deployable infrastructure.

    DWhy this is right: A CloudFormation template declares resources and properties that CloudFormation provisions.

    A CloudFormation template declares AWS resources and their configuration for deployment. A Glue transformation script processes data rather than declaring the infrastructure that hosts the pipeline.

    Open this question
  30. Question 30

    Data Ingestion and Transformation

    A team updates a CloudFormation stack containing an S3 data bucket. It must preview proposed changes, block bucket replacement during updates, and retain the bucket if it is removed from the template; which actions together meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Set the bucket resource's DeletionPolicy attribute to Retain.D. Apply a stack policy denying Update:Replace for the bucket resource.F. Create and review a change set before executing the stack update.

    AWhy this is right: DeletionPolicy: Retain preserves the bucket when its resource definition is removed from the template.

    BWhy not this: Termination protection blocks stack deletion but does not block resource deletion or replacement during an update.

    CWhy not this: UpdateReplacePolicy: Retain keeps the old physical bucket when a replacement happens; it does not stop the replacement.

    DWhy this is right: Denying Update:Replace prevents stack updates from replacing the protected bucket.

    EWhy not this: Drift detection reports differences between deployed resources and the stack's current template, not the changes a new template would make.

    FWhy this is right: A change set exposes proposed resource changes for review before the team executes the update.

    Change sets preview changes, a stack policy can deny bucket replacement, and DeletionPolicy: Retain preserves a bucket removed from the template. Termination protection prevents stack deletion, not resource deletion or replacement during stack updates; UpdateReplacePolicy: Retain keeps the old bucket after a replacement but does not prevent the replacement; drift detection compares deployed resources with the current template rather than previewing a proposed update.

    Open this question
  31. Question 31

    Data Ingestion and Transformation

    A transformation change passes syntax checks but incorrectly converts null amounts to zero. Which practice would BEST detect this defect before deployment?

    Show the answer

    Correct answerB. Add unit tests with null inputs and explicit expected outputs.

    AWhy not this: Production logging aids diagnosis after deployment rather than automatically preventing this defect.

    BWhy this is right: Tests that assert expected null behavior expose the incorrect conversion before deployment.

    CWhy not this: A semantic defect can produce incorrect data without causing the job to fail.

    DWhy not this: Release tags identify versions but do not validate transformation behavior.

    Unit tests verify transformation behavior against expected results, including null-handling edge cases. Syntax checks cannot establish semantic correctness, and production failure alarms may miss a job that succeeds while producing incorrect values.

    Open this question
  32. Question 32

    Data Ingestion and Transformation

    A nightly Bash script runs an extract command, pipes its output through gzip into a file, and then uploads that file to Amazon S3. The script must exit with a nonzero status when any command fails, including the extract command at the start of the pipeline, so a failed extract is never uploaded. Which setting meets this requirement?

    Show the answer

    Correct answerC. set -eo pipefail

    AWhy not this: Exit-on-error alone sees only the pipeline's last command, so a failed extract followed by a successful gzip does not stop the script.

    BWhy not this: Tracing prints each command as it runs but does not stop the script on a failure.

    CWhy this is right: Exit-on-error with pipefail makes any failing command in the pipeline stop the script before the upload.

    DWhy not this: This option treats unset variables as errors; it does not detect a failed command in a pipeline.

    By default a pipeline's exit status is that of its last command, so a failed extract followed by a successful gzip looks like success. The pipefail option makes the pipeline fail when any command in it fails, and set -e then stops the script before the upload. set -e alone misses failures earlier in a pipeline.

    Open this question
  33. Question 33

    Data Ingestion and Transformation

    A Lambda function processes Kinesis Data Streams records in batches. One malformed record repeatedly fails an entire batch; which event source mapping setting automatically splits failed batches to isolate the problem?

    Show the answer

    Correct answerB. Enable BisectBatchOnFunctionError

    AWhy not this: Tumbling windows support stateful processing across invocations, not failed-batch isolation.

    BWhy this is right: Splitting failed batches into smaller batches helps isolate the record causing the function error.

    CWhy not this: The parallelization factor controls concurrent batches per shard, not splitting batches after errors.

    DWhy not this: The batching window controls how long records accumulate before invocation, not how failures are isolated.

    BisectBatchOnFunctionError splits a failed batch into smaller batches for retry, helping isolate a problematic record. Increasing the parallelization factor increases concurrent processing but does not split failed batches.

    Open this question
  34. Question 34

    Data Ingestion and Transformation

    Which Lambda resource polls an Amazon Kinesis data stream and invokes a function with batches of records?

    Show the answer

    Correct answerC. An event source mapping

    AWhy not this: A function URL provides an HTTP endpoint; it does not poll Kinesis.

    BWhy not this: A resource-based policy grants access permissions but does not read or deliver stream records.

    CWhy this is right: An event source mapping reads records from Kinesis and invokes the associated Lambda function.

    DWhy not this: An asynchronous destination routes invocation results rather than reading records from Kinesis.

    A Lambda event source mapping polls a Kinesis data stream and invokes the function with record batches. An asynchronous destination routes invocation results; it does not poll a stream.

    Open this question
  35. Question 35

    Data Ingestion and Transformation

    A VPC-connected Lambda ingestion function accesses a public vendor database from private subnets in two Availability Zones, each routed through its own public NAT gateway. The vendor requires fixed source IPv4 allowlist entries; which addresses should the engineer provide?

    Show the answer

    Correct answerC. The Elastic IP addresses associated with both NAT gateways

    AWhy not this: Database endpoint addresses identify the destination, not the source addresses the vendor must allow.

    BWhy not this: Lambda interface addresses are private and are translated by the NAT gateways before traffic reaches the vendor.

    CWhy this is right: Each NAT gateway presents its associated Elastic IP address to the vendor over the internet.

    DWhy not this: Private subnet CIDRs are not the public source addresses observed by the vendor database.

    The vendor sees the Elastic IP address of the NAT gateway used for each connection, so both addresses must be allowlisted. Lambda network interface addresses are private and are not the source addresses seen across the internet.

    Open this question
  36. Question 36

    Data Ingestion and Transformation

    A DynamoDB BatchWriteItem request succeeds but returns entries in UnprocessedItems during a traffic spike. What should the ingestion application do next?

    Show the answer

    Correct answerA. Retry only unprocessed items with exponential backoff

    AWhy this is right: Retrying only unprocessed writes with increasing delays allows recovery without repeating completed work.

    BWhy not this: Immediate full-batch retries add pressure and repeat writes that DynamoDB already completed.

    CWhy not this: Immediate concurrent retries can worsen throttling by increasing the request rate.

    DWhy not this: A successful BatchWriteItem response can still contain writes that were not processed.

    UnprocessedItems identifies writes that DynamoDB did not complete. Retrying those items with exponential backoff reduces pressure during throttling; immediately retrying the entire batch adds load and repeats completed writes.

    Open this question
  37. Question 37

    Data Ingestion and Transformation

    Which AWS tool lets engineers define infrastructure in TypeScript and synthesize CloudFormation templates for repeatable deployments?

    Show the answer

    Correct answerC. AWS CDK

    AWhy not this: Step Functions orchestrates workflows rather than synthesizing infrastructure templates from TypeScript.

    BWhy not this: CodeBuild can run infrastructure tooling but does not itself synthesize infrastructure definitions from TypeScript.

    CWhy this is right: AWS CDK defines infrastructure in supported programming languages and synthesizes CloudFormation templates.

    DWhy not this: AWS Glue provides data integration capabilities, not a TypeScript infrastructure synthesis framework.

    AWS CDK lets engineers define infrastructure using supported programming languages and synthesizes CloudFormation templates. CodeBuild runs build and test tasks but does not itself provide this infrastructure programming model.

    Open this question
  38. Question 38

    Data Ingestion and Transformation

    An engineer has built an AWS SAM application containing Lambda code, a Step Functions workflow, and a DynamoDB table. How should the engineer deploy the application to an AWS account?

    Show the answer

    Correct answerA. Upload deployment artifacts to Amazon S3 and deploy through AWS CloudFormation.

    AWhy this is right: SAM uses uploaded artifacts and CloudFormation to deploy the resources defined by the application.

    BWhy not this: Building prepares deployment artifacts, but copying a build directory does not provision AWS resources.

    CWhy not this: Local execution supports testing; uploading execution logs does not provision application resources.

    DWhy not this: Importing a workflow does not automatically provision the Lambda functions and DynamoDB tables it references.

    AWS SAM deployment uploads local deployment artifacts to Amazon S3 and uses CloudFormation to provision the application's resources. Building prepares code and dependencies but does not deploy resources.

    Open this question
  39. Question 39

    Data Ingestion and Transformation

    A Lambda transformation needs 4 GiB of temporary local scratch space during each invocation, but its default /tmp storage fills up. The files need not survive execution environment termination; which change meets the requirement without a network file system?

    Show the answer

    Correct answerA. Increase configured ephemeral storage to 5,120 MB.

    AWhy this is right: Configurable ephemeral storage directly increases the space available in /tmp.

    BWhy not this: Deployment package storage holds code artifacts, not invocation scratch files.

    CWhy not this: Memory allocation changes RAM and CPU allocation, not the configured /tmp capacity.

    DWhy not this: Lambda functions do not support directly attaching EBS volumes.

    Lambda provides configurable ephemeral storage in /tmp, from 512 MB to 10,240 MB. Increasing it to 5,120 MB provides sufficient scratch space; increasing function memory does not increase /tmp capacity.

    Open this question
  40. Question 40

    Data Ingestion and Transformation

    A Lambda function mounts Amazon EFS through an access point but receives permission-denied errors when creating files. IAM permits client writes, but the access point enforces UID 1001 while its root directory is owned by UID 2000 with permissions 0755; what should the engineer change?

    Show the answer

    Correct answerD. Give UID 1001 write permission on the access point directory.

    AWhy not this: Ephemeral storage capacity affects /tmp, not POSIX authorization on an EFS directory.

    BWhy not this: IAM already permits writes; it does not override the directory's POSIX permissions.

    CWhy not this: The file system is already mounted, so blocked NFS connectivity does not explain the file creation failure.

    DWhy this is right: The enforced UID must have write permission on the directory to create files there.

    EFS enforces POSIX permissions in addition to IAM authorization. With permissions 0755, only the directory owner can write, so the access point's enforced UID needs directory write permission; additional IAM permissions cannot override this restriction.

    Open this question
  41. Question 41

    Data Ingestion and Transformation

    An AWS Glue Spark join stalls because one task spills heavily to disk; 70% of input rows share one join key, and adding workers has not helped. Both datasets exceed safe broadcast memory limits. Which change BEST addresses the bottleneck while preserving join results?

    Show the answer

    Correct answerA. Salt the hot key and replicate its matching lookup rows.

    AWhy this is right: Salting spreads hot-key rows across partitions, while matching lookup-row replication preserves the join results.

    BWhy not this: Additional workers do not divide a single hot-key partition, so the straggling task remains the bottleneck.

    CWhy not this: The lookup dataset exceeds safe broadcast memory limits, and shuffle partition counts do not reduce broadcast size.

    DWhy not this: Partitioning by the unchanged key keeps all rows for that key together and preserves the skew.

    Salting distributes a disproportionately frequent key across multiple partitions; replicating its matching lookup rows preserves the join matches. Repartitioning by the unchanged key still sends its rows to the same partition.

    Open this question
  42. Question 42

    Data Ingestion and Transformation

    A pipeline must extract complaints and suggested improvements from free-text product reviews using instructions that change frequently. Which integration supports this requirement without training or hosting a model?

    Show the answer

    Correct answerD. Invoke an Amazon Bedrock foundation model with extraction instructions.

    AWhy not this: Glue mappings transform defined fields and types; they do not infer complaints and suggestions from natural language.

    BWhy not this: Textract performs document text and structure extraction, not flexible semantic interpretation of existing review text.

    CWhy not this: Training a model for each specification violates the requirement to avoid model training and adds unnecessary maintenance.

    DWhy this is right: Bedrock supports managed foundation-model inference with prompts that specify the desired extraction behavior.

    Amazon Bedrock provides managed foundation-model inference, allowing extraction behavior to change through prompts without training or hosting a model. Textract extracts text and document structure rather than interpreting review content according to changing semantic instructions.

    Open this question
  43. Question 43

    Data Ingestion and Transformation

    A pipeline receives the same number of equally sized records each day, but the delivery window shrinks from eight hours to one hour. The record schema and retention period remain unchanged. Which conclusion should guide ingestion capacity planning?

    Show the answer

    Correct answerA. Arrival velocity increases, while daily volume remains unchanged.

    AWhy this is right: The shorter delivery window increases arrival velocity without changing the total quantity delivered each day.

    BWhy not this: The schema and data types have not changed, so variety has not increased.

    CWhy not this: Equal daily record counts and sizes mean daily volume is unchanged; the shorter delivery window increases velocity.

    DWhy not this: Delivering the same quantity in less time increases, rather than decreases, the arrival rate.

    The same daily data quantity now arrives in one-eighth of the time, increasing the average arrival rate during delivery eightfold. Daily volume does not increase merely because delivery is concentrated into a shorter window.

    Open this question
  44. Question 44

    Data Ingestion and Transformation

    Which dataset is an example of unstructured data?

    Show the answer

    Correct answerC. Product photographs stored as image files

    AWhy not this: JSON uses keys and nested organization and is generally classified as semi-structured data.

    BWhy not this: A relational table organizes records into predefined columns and data types, making it structured data.

    CWhy this is right: Photographic content does not follow a predefined record schema, making it unstructured data.

    DWhy not this: Fixed-column CSV files organize values into consistent fields, making them structured data.

    Photographs contain unstructured content rather than predefined record fields. JSON documents are generally classified as semi-structured because their keys and nested organization provide structure without a fixed relational schema.

    Open this question
  45. Question 45

    Data Ingestion and Transformation

    An application needs an HTTPS API that retrieves individual records from Amazon DynamoDB by primary key. Which design provides a serverless request-response interface?

    Show the answer

    Correct answerB. Amazon API Gateway invoking AWS Lambda to read DynamoDB

    AWhy not this: Scheduled exports support batch processing, not synchronous retrieval of individual records through an HTTPS API.

    BWhy this is right: API Gateway receives HTTPS requests, and Lambda retrieves records from DynamoDB and returns responses without managed servers.

    CWhy not this: Athena queries exported datasets but does not itself provide the application's HTTPS request-response endpoint.

    DWhy not this: Firehose delivers streaming data to destinations; it does not provide a record-retrieval API.

    API Gateway exposes an HTTPS endpoint, and Lambda can retrieve the requested DynamoDB record and return it synchronously. Scheduled AWS Glue exports move data in batches rather than serving individual API requests.

    Open this question
  46. Question 46

    Data Ingestion and Transformation

    One ingestion processor calculates a running total for each customer across records. Another converts each record's temperature from Fahrenheit to Celsius independently. How should these processors be classified?

    Show the answer

    Correct answerD. The running total is stateful; the conversion is stateless.

    AWhy not this: The temperature conversion does not need information retained from earlier records.

    BWhy not this: The classifications are reversed: accumulation requires state, while an independent conversion does not.

    CWhy not this: The running total requires accumulated information from earlier records.

    DWhy this is right: The running total retains cross-record information; the temperature conversion uses only its current input.

    A running total requires retained information from earlier records, making it stateful. An independent temperature conversion is stateless because its output depends only on the current record; performing a calculation does not itself require state.

    Open this question
  47. Question 47

    Data Ingestion and Transformation

    A DynamoDB BatchWriteItem ingestion job returns unprocessed items during bursts, although table capacity is underused; most writes share one tenant partition key. Ordering is unnecessary, and the job must preserve successful writes without continually overloading the hot partition. Which approach is BEST?

    Show the answer

    Correct answerC. Distribute tenant writes across partition keys and retry unprocessed items with jittered backoff.

    AWhy not this: Additional table capacity does not resolve concentrated partition-key traffic; complete-batch retries also repeat successful writes.

    BWhy not this: More concurrent writers against the same hot partition can increase throttling rather than relieve it.

    CWhy this is right: Distributing writes addresses the hot partition, and backing off only unprocessed items avoids repeating successful writes.

    DWhy not this: Distributing writes helps, but immediate complete-batch retries repeat successful writes and can amplify bursts.

    Distributing the tenant's writes reduces partition-level contention, while jittered backoff retries only unprocessed items without amplifying bursts. Increasing table capacity alone does not resolve a concentrated partition-key workload, and resubmitting complete batches repeats successful writes.

    Open this question
  48. Question 48

    Data Ingestion and Transformation

    Several applications must independently read every record from an Amazon Kinesis Data Streams stream. Shared read throughput is causing contention; which configuration provides dedicated read throughput for each application?

    Show the answer

    Correct answerC. An enhanced fan-out consumer for each application

    AWhy not this: A shared polling consumer does not provide each application with dedicated stream read throughput.

    BWhy not this: Partition keys determine shard placement for writes, not dedicated read capacity for applications.

    CWhy this is right: Enhanced fan-out gives each registered consumer dedicated read throughput per shard.

    DWhy not this: Separate iterators provide independent read positions but still use shared read throughput with standard consumers.

    Enhanced fan-out provides dedicated read throughput per registered consumer, allowing applications to consume independently. Separate shard iterators track read positions but do not remove shared-throughput contention.

    Open this question
  49. Question 49

    Data Ingestion and Transformation

    A pipeline archives raw Amazon Kinesis Data Streams records in Amazon S3 before the stream's 7-day retention expires. A corrected transformation must reprocess last month's archive while live ingestion continues, without duplicate destination effects or changes to live progress. Which actions support these requirements? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Deduplicate destination writes using stable source event identifiers.C. Apply the corrected transformation to the archived raw records.E. Maintain replay progress separately from the live consumer's checkpoints.F. Read the affected historical records from the S3 archive.

    AWhy this is right: Stable event identifiers allow repeated delivery to be recognized and prevent duplicate destination effects.

    BWhy not this: Rewinding changes live progress and cannot retrieve stream records whose retention period has expired.

    CWhy this is right: Reprocessing raw input with the corrected logic produces the corrected historical results.

    DWhy not this: A longer retention period keeps future records longer but cannot bring back records that have already expired.

    EWhy this is right: Separate replay progress allows historical processing without altering the live consumer's position.

    FWhy this is right: The S3 archive retains the historical input even after it is no longer available in the stream.

    The archive supplies expired stream data, separate progress preserves live ingestion, stable identifiers prevent duplicate effects, and corrected logic produces the intended results. Rewinding the live checkpoint changes live progress and cannot restore records that have expired from Kinesis, and extending retention applies only to records still in the stream, not to records that have already expired.

    Open this question
  50. Question 50

    Data Ingestion and Transformation

    What does replayability allow a data ingestion pipeline to do?

    Show the answer

    Correct answerD. Process retained source records again

    AWhy not this: Combining sources describes fan-in rather than processing historical records again.

    BWhy not this: Limiting source requests describes throttling rather than historical reprocessing.

    CWhy not this: Starting work when data arrives describes event triggering, not historical reprocessing.

    DWhy this is right: Replayability enables processing previously received records again from retained data.

    Replayability allows previously ingested, retained records to be processed again, such as after correcting processing logic. Event triggers start processing when events occur but do not themselves provide historical records.

    Open this question