Curated

Data Operations and Support (3.1–3.4)

0 votes

Questions66

  1. Question 51

    Data Operations and Support

    Which service runs serverless SQL queries directly against application log files stored in Amazon S3?

    Show the answer

    Correct answerA. Amazon Athena

    AWhy this is right: Athena queries S3 data with SQL without requiring a provisioned query cluster.

    BWhy not this: CloudWatch Logs analyzes events in log groups rather than directly querying application log files in S3.

    CWhy not this: OpenSearch Service typically requires ingesting and indexing application logs for analysis.

    DWhy not this: CloudTrail records AWS API activity; it is not a general-purpose SQL engine for application logs.

    Amazon Athena provides serverless SQL queries over data stored in S3. CloudWatch Logs analyzes logs ingested into log groups rather than directly querying arbitrary S3 log files.

    Open this question
  2. Question 52

    Data Operations and Support

    An Amazon EMR Spark job reads several large, splittable input files but slows during a shuffle stage. The stage has very few tasks, each spilling heavily to disk, while most executor cores are idle; which change should the engineer make first?

    Show the answer

    Correct answerD. Increase the number of shuffle partitions for the job.

    AWhy not this: Combining input files does not address insufficient task parallelism in the shuffle stage.

    BWhy not this: Longer log retention helps historical investigation but does not change shuffle parallelism or spilling.

    CWhy not this: Additional cores cannot improve utilization when the shuffle stage already has too few tasks for the available cores.

    DWhy this is right: More shuffle partitions distribute the shuffle data among more tasks, improving core utilization and reducing per-task memory pressure.

    Increasing shuffle partitions creates more, smaller tasks, improving parallelism and reducing the data each task must process. Adding executor cores does not help when too few tasks exist to use the available cores.

    Open this question
  3. Question 53

    Data Operations and Support

    Which configurations provide persistent records of pipeline resource changes and application execution for later audits? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Create a CloudTrail trail delivering management events to Amazon S3.D. Configure pipeline applications to send execution logs to CloudWatch Logs.

    AWhy this is right: A trail delivers management-event records to S3 for auditing resource configuration changes and other management API activity.

    BWhy not this: Failure notifications alert subscribers but do not provide a detailed record of resource changes and application execution.

    CWhy not this: Throughput metrics summarize performance rather than preserve detailed API activity or application execution records.

    DWhy this is right: Application execution logs retain operational details needed to investigate and trace pipeline processing.

    A CloudTrail trail preserves management API activity, while application execution logs preserve operational details. Notifications and metric dashboards support monitoring but do not replace those detailed audit records.

    Open this question
  4. Question 54

    Data Operations and Support

    An audit export must collect every matching event across multiple CloudWatch Logs streams within a specified time range, retaining event timestamps and stream names. A FilterLogEvents response contains no events but includes nextToken; what should the extraction process do?

    Show the answer

    Correct answerA. Continue with nextToken and unchanged filters until no nextToken is returned.

    AWhy this is right: Following every continuation token preserves the requested selection and retrieves matching events across all result pages.

    BWhy not this: Removing the time range changes the audit selection, and keeping one page can omit required events.

    CWhy not this: GetLogEvents reads a single stream; selecting only the latest stream omits matching events in other streams.

    DWhy not this: An empty FilterLogEvents page can include a continuation token and does not establish that all matching events have been retrieved.

    FilterLogEvents can return empty or partially filled pages while additional pages remain. Continue pagination with the same selection criteria and preserve the returned event metadata; an empty page alone does not establish that extraction is complete.

    Open this question
  5. Question 55

    Data Operations and Support

    A Boto3 application calls DynamoDB BatchWriteItem and receives HTTP 200, but UnprocessedItems contains several writes. Which action completes the writes without unnecessarily resubmitting successful items?

    Show the answer

    Correct answerA. Retry only UnprocessedItems with exponential backoff.

    AWhy this is right: UnprocessedItems identifies the remaining writes, and exponential backoff reduces pressure on the table.

    BWhy not this: Paginators retrieve successive pages of results; they do not complete unprocessed batch writes.

    CWhy not this: Resubmitting successful writes adds unnecessary requests; the response identifies the writes that still need processing.

    DWhy not this: HTTP 200 can contain partial failures that require application handling, even when SDK request retries are enabled.

    BatchWriteItem can return HTTP 200 with writes that were not processed; retry those items with exponential backoff. SDK request retries do not replace handling partial failures reported in a successful response.

    Open this question
  6. Question 56

    Data Operations and Support

    An Amazon API Gateway REST API caches GET responses, but requests with different region query parameters receive the same cached dataset. The backend returns correct region-specific data when caching is disabled; which change preserves caching and fixes the responses?

    Show the answer

    Correct answerC. Include the region query parameter in the cache key.

    AWhy not this: A shorter TTL does not distinguish regions, so requests can still receive another region's cached response.

    BWhy not this: Usage-plan throttles control request rates, not which parameters distinguish cached responses.

    CWhy this is right: Including region in the cache key separates cached responses for requests that need different datasets.

    DWhy not this: Additional cache capacity stores more entries but does not change how requests map to entries.

    A cache key must distinguish requests whose responses differ. Including region creates separate cached entries for each region; reducing the TTL only shortens how long an incorrectly shared response remains cached.

    Open this question
  7. Question 57

    Data Operations and Support

    A Python application on Amazon EC2 uses Boto3 to read Amazon S3 objects. An instance profile grants the required permissions; how should the application obtain credentials without storing access keys?

    Show the answer

    Correct answerC. Use the default credential chain to obtain role credentials.

    AWhy not this: An instance profile ARN identifies a resource; it is not a credential that can sign API requests.

    BWhy not this: Copied temporary credentials expire and do not provide the automatic refresh available through the instance role provider.

    CWhy this is right: The default chain obtains temporary instance role credentials and refreshes them as needed.

    DWhy not this: IAM user access keys require storage and management rather than using the role already assigned to the instance.

    Boto3's default credential provider chain can obtain and refresh temporary credentials for the EC2 instance role. Copying temporary credentials into a configuration file requires managing their expiration instead of using automatic refresh.

    Open this question
  8. Question 58

    Data Operations and Support

    Which Amazon Redshift operation loads data from multiple Amazon S3 files into an existing table in parallel?

    Show the answer

    Correct answerB. COPY

    AWhy not this: VACUUM maintains table storage by reclaiming space or sorting rows rather than importing files.

    BWhy this is right: COPY supports parallel loading of data from multiple Amazon S3 files into a Redshift table.

    CWhy not this: ANALYZE updates table statistics used by the query optimizer rather than loading records.

    DWhy not this: UNLOAD exports query results from Redshift to Amazon S3 rather than loading a table.

    COPY loads data from sources such as Amazon S3 into Redshift tables and supports parallel loading. UNLOAD moves query results in the opposite direction, from Redshift to S3.

    Open this question
  9. Question 59

    Data Operations and Support

    An engineer is preparing orders in AWS Glue DataBrew and must add a region name from a lookup dataset matched by region code. Every order must remain, including orders without a matching code; which operation should the engineer use?

    Show the answer

    Correct answerC. Left join orders to the lookup dataset.

    AWhy not this: Aggregation summarizes orders rather than enriching each order with a lookup attribute.

    BWhy not this: A union appends rows rather than matching records to add region attributes.

    CWhy this is right: With orders on the left, a left join retains unmatched orders and adds matching region names.

    DWhy not this: An inner join removes orders that have no matching region code in the lookup dataset.

    A left join keeps every order and adds lookup attributes where region codes match. An inner join would discard orders whose region codes have no matching lookup record.

    Open this question
  10. Question 60

    Data Operations and Support

    A data API must change a response field from a string to a nested object, but existing pipeline consumers cannot migrate immediately. How should the API owner release the change?

    Show the answer

    Correct answerA. Publish a new API version and retain the existing version during migration.

    AWhy this is right: Parallel API versions preserve the existing contract while consumers migrate to the new response structure.

    BWhy not this: Increasing the timeout does not prevent parsing failures caused by a changed response structure.

    CWhy not this: Schema documentation and caching do not preserve compatibility with the original field type.

    DWhy not this: Throttling limits control request rates, not compatibility between response structures.

    A separate API version lets consumers adopt a breaking response change without disrupting existing integrations. Updating the schema documents the change but does not make it compatible with consumers expecting a string.

    Open this question
  11. Question 61

    Data Operations and Support

    Which practices reduce the bytes scanned by Amazon Athena queries against data in Amazon S3? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Store data in a columnar format and select only needed columns.C. Partition data and filter on the partition keys.

    AWhy not this: Sorting results adds processing and does not eliminate source data from the scan.

    BWhy this is right: Columnar storage lets Athena read needed columns without scanning all column data.

    CWhy this is right: Filtering partition keys lets Athena skip data stored in irrelevant partitions.

    DWhy not this: LIMIT controls returned rows; it does not reliably reduce the scan of unpartitioned CSV input.

    Columnar formats allow Athena to read selected columns, and partition filters exclude irrelevant partitions. LIMIT restricts returned rows but does not reliably reduce the bytes scanned from CSV files.

    Open this question
  12. Question 62

    Data Operations and Support

    An engineer validates AWS Glue DataBrew cleansing steps on a project sample while other analysts continue editing the recipe. Production must process the complete dataset using exactly the approved steps and remain unaffected by later edits; which configuration meets these requirements?

    Show the answer

    Correct answerD. Publish the approved recipe and configure a recipe job with that specific version.

    AWhy not this: Exporting a project sample does not process the complete source dataset.

    BWhy not this: A profile job calculates dataset statistics; it does not execute the approved cleansing transformations.

    CWhy not this: The latest published version can change when analysts publish subsequent recipe revisions.

    DWhy this is right: A specific published version preserves the approved steps, and a recipe job processes the full dataset.

    A recipe job applies a specified published recipe version to the full dataset, separating production processing from ongoing edits. Selecting the latest published version could introduce later changes that were not approved for that production configuration.

    Open this question
  13. Question 63

    Data Operations and Support

    An S3 bucket notification must invoke a Lambda function that reads each newly uploaded object. Which permissions are required for invocation and object access? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Allow s3.amazonaws.com to invoke the function in its resource-based policy.C. Allow s3:GetObject on the input objects in the function's execution role.

    AWhy this is right: The resource-based policy authorizes the S3 service to invoke the function.

    BWhy not this: PutBucketNotification permits notification configuration changes, not object reads or function invocation.

    CWhy this is right: The execution role supplies the permissions the running function uses to read S3 objects.

    DWhy not this: ListBucket permits listing object keys but does not permit reading object contents.

    EWhy not this: This service principal authorizes EventBridge rather than direct S3 notifications.

    FWhy not this: Execution-role permissions govern actions performed by the function, not incoming S3 invocations.

    S3 needs permission in the Lambda resource-based policy to invoke the function, and the execution role needs s3:GetObject to read objects. Granting lambda:InvokeFunction to the execution role authorizes calls made by the function, not incoming invocations from S3.

    Open this question
  14. Question 64

    Data Operations and Support

    An EventBridge bus archive contains yesterday's events, which were delivered successfully, but a transformation bug produced incorrect results. After fixing the target, how should an engineer reprocess those events through only the affected rule without invoking other rules?

    Show the answer

    Correct answerA. Replay the archive to its source bus, selecting the affected rule.

    AWhy this is right: Selecting the affected rule during replay reprocesses archived events without sending them through unrelated rules.

    BWhy not this: A one-time schedule invokes a target but does not retrieve and replay the archived event set.

    CWhy not this: Selecting all enabled rules would also invoke unrelated rules that match the replayed events.

    DWhy not this: A target dead-letter queue holds failed deliveries, not successfully delivered events with incorrect processing results.

    An archive replay can restrict replayed events to selected rules on the source event bus. A dead-letter queue cannot recover these successfully delivered events because delivery did not fail.

    Open this question
  15. Question 65

    Data Operations and Support

    Which Amazon EventBridge feature matches incoming events by their contents and routes matching events to targets?

    Show the answer

    Correct answerD. Event bus rule

    AWhy not this: A Scheduler schedule invokes a target at specified times rather than matching incoming events.

    BWhy not this: A schema registry stores event structure definitions rather than routing events.

    CWhy not this: An archive stores events for later replay rather than routing live events to processing targets.

    DWhy this is right: An event bus rule matches events against an event pattern and sends matches to configured targets.

    An event bus rule uses an event pattern to match event contents and route matching events to targets. An EventBridge Scheduler schedule invokes targets according to time, not incoming event contents.

    Open this question
  16. Question 66

    Data Operations and Support

    A Lambda function processes Kinesis batches, but a malformed record repeatedly fails an entire batch and delays valid records. Without changing the handler, which event source mapping configuration isolates failures and bounds retries?

    Show the answer

    Correct answerC. Enable batch bisection and set a finite retry limit.

    AWhy not this: Parallelization increases concurrent processing but does not split a failed batch or bound its retries.

    BWhy not this: A larger batching window changes batch collection timing but does not isolate the malformed record.

    CWhy this is right: Batch bisection isolates failing records, and a finite retry limit prevents indefinite retries.

    DWhy not this: Partial batch responses require handler changes to report failed record identifiers.

    Batch bisection splits failed batches to isolate problematic records, while a finite retry limit bounds repeated processing. Partial batch responses require the handler to report failed records, so enabling the setting alone does not meet the requirement.

    Open this question