Curated

Data Store Management (2.1–2.4)

0 votes

Questions79

  1. Question 1

    Data Store Management

    A DynamoDB table uses orderId as its partition key and has no sort key. An application must retrieve a customer's orders by customerId, ordered by orderDate; eventual consistency is acceptable. What should the engineer configure?

    Show the answer

    Correct answerA. A global secondary index on customerId and orderDate

    AWhy this is right: A global secondary index supports a different partition key and returns each customer's orders in sort-key order.

    BWhy not this: A local secondary index retains the table's partition key and requires a table with a composite primary key.

    CWhy not this: A filtered scan reads across the table and does not return results ordered by orderDate.

    DWhy not this: A table query requires an orderId partition-key value; a filter cannot replace that key condition.

    A global secondary index can use customerId as its partition key and orderDate as its sort key. A local secondary index must retain the table's partition key and cannot be added to this table.

    Open this question
  2. Question 2

    Data Store Management

    An application needs a Redis OSS-compatible primary database with microsecond reads and durable acknowledged writes across Availability Zones. The team wants to avoid maintaining a separate system of record. Which design BEST fits?

    Show the answer

    Correct answerC. Amazon MemoryDB with a Multi-AZ transaction log

    AWhy not this: DAX accelerates DynamoDB reads but does not expose a Redis OSS-compatible database interface.

    BWhy not this: Asynchronous replication can lose acknowledged writes during failover, so it does not meet the stated durability requirement.

    CWhy this is right: MemoryDB provides Redis OSS compatibility, microsecond reads, and durable writes backed by a Multi-AZ transaction log.

    DWhy not this: Aurora provides durable relational storage but does not provide the required Redis OSS-compatible interface.

    MemoryDB combines Redis OSS compatibility and in-memory reads with a durable Multi-AZ transaction log, allowing it to serve as a primary database. ElastiCache with asynchronous replication does not provide the same durable-write model and can lose acknowledged writes during failover.

    Open this question
  3. Question 3

    Data Store Management

    A company stores partitioned Parquet archives in Amazon S3 and frequently queried sales data in Amazon Redshift. Analysts occasionally join a few archive partitions with sales data, and the company wants to avoid duplicating the archives. Which approach BEST meets these requirements?

    Show the answer

    Correct answerD. Query the archives through Redshift Spectrum.

    AWhy not this: Replicating into RDS adds storage and migration overhead without meeting the no-duplication requirement.

    BWhy not this: Materialized views persist query results, adding storage rather than querying the archives without duplication.

    CWhy not this: Loading the archives duplicates data that is already stored in S3.

    DWhy this is right: Spectrum queries the S3 archives directly and joins them with local Redshift data without copying the archives.

    Redshift Spectrum queries S3 data directly and can join it with local Redshift tables; partition filtering limits scans. Redshift managed storage supports warehouse queries but requires loading and duplicating the archives.

    Open this question
  4. Question 4

    Data Store Management

    Which Amazon Redshift table setting helps skip data blocks when queries filter on a date range?

    Show the answer

    Correct answerD. A sort key on the date column

    AWhy not this: Redshift primary keys are informational constraints and do not sort data or create an index.

    BWhy not this: Compression reduces storage and I/O but does not establish the date ordering needed for effective block pruning.

    CWhy not this: A distribution key controls data placement across compute nodes, not date ordering within blocks.

    DWhy this is right: Sorting by date groups date values so block metadata can exclude blocks outside the requested range.

    A date sort key groups similar dates together, allowing Redshift to skip blocks using their minimum and maximum values. A distribution key controls row placement across compute nodes rather than ordering data for range filtering.

    Open this question
  5. Question 5

    Data Store Management

    An unversioned S3 bucket stores temporary files under temporary/. Which configuration automatically deletes only those files when they reach 14 days old?

    Show the answer

    Correct answerC. A prefix-filtered Lifecycle expiration rule

    AWhy not this: A transition rule changes storage class rather than deleting completed objects.

    BWhy not this: A bucket-wide expiration rule would also delete eligible objects outside temporary/.

    CWhy this is right: An expiration rule filtered to temporary/ targets only the specified files and can use a 14-day age threshold.

    DWhy not this: Incomplete multipart upload cleanup removes unfinished upload parts, not completed temporary files.

    A Lifecycle expiration rule filtered to temporary/ deletes matching objects after the configured age. A bucket-wide expiration rule would also affect objects outside that prefix.

    Open this question
  6. Question 6

    Data Store Management

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

    Show the answer

    Correct answerD. COPY

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

    BWhy not this: VACUUM maintains table storage by reclaiming space and sorting data.

    CWhy not this: ANALYZE updates table statistics used by the query optimizer.

    DWhy this is right: COPY loads data from supported sources, including S3, into a Redshift table.

    COPY loads data from Amazon S3 into a Redshift table. UNLOAD moves query results in the opposite direction, from Redshift to S3.

    Open this question
  7. Question 7

    Data Store Management

    An S3 dataset is accessed frequently for 30 days, then rarely until deletion after one year. It requires millisecond retrieval and resilience to an Availability Zone loss. Which Lifecycle transition meets these requirements?

    Show the answer

    Correct answerC. Transition to S3 Standard-IA after 30 days

    AWhy not this: S3 Glacier Deep Archive requires a restore before access and does not provide millisecond retrieval.

    BWhy not this: S3 One Zone-IA stores data in one Availability Zone and does not meet the stated resilience requirement.

    CWhy this is right: S3 Standard-IA supports infrequent access, millisecond retrieval, and multi-Availability Zone resilience.

    DWhy not this: S3 Glacier Flexible Retrieval requires a restore before access and does not provide millisecond retrieval.

    S3 Standard-IA provides millisecond access and stores data across multiple Availability Zones. S3 One Zone-IA provides millisecond access but does not provide resilience to the loss of its Availability Zone.

    Open this question
  8. Question 8

    Data Store Management

    A versioning-enabled S3 bucket has a Lifecycle rule that expires current versions after 90 days. No noncurrent-version expiration or transition is configured. Which behaviors should the engineer expect? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Noncurrent data versions remain stored and billable.B. The age threshold makes an object eligible for asynchronous expiration.D. The formerly current data version becomes noncurrent.F. Expiring a current data version adds a delete marker.

    AWhy this is right: Without noncurrent-version expiration or explicit deletion, retained data versions continue to incur storage charges.

    BWhy this is right: S3 queues eligible objects for expiration; deletion need not occur at the instant the age threshold is reached.

    CWhy not this: Noncurrent versions change storage class only when a noncurrent-version transition action is configured.

    DWhy this is right: Adding a delete marker makes the previously current data version noncurrent.

    EWhy not this: Current-version expiration does not permanently delete older data versions.

    FWhy this is right: When a current data version expires, S3 adds a delete marker that becomes the current version.

    Current-version expiration in a versioning-enabled bucket adds a delete marker and retains the former current version as a billable noncurrent version in its existing storage class; processing is asynchronous. It does not permanently remove older data versions, which require noncurrent-version expiration or explicit deletion, and it moves no version to another storage class without a transition action.

    Open this question
  9. Question 9

    Data Store Management

    A Redshift export writes parallel files under an S3 prefix containing older exports. A downstream process must identify exactly the files from the latest successful export without listing the prefix. What should the engineer configure?

    Show the answer

    Correct answerA. UNLOAD with MANIFEST

    AWhy this is right: MANIFEST produces an explicit list of the data files generated by the UNLOAD operation.

    BWhy not this: ALLOWOVERWRITE permits overwriting matching objects; it does not produce an inventory of exported files.

    CWhy not this: PARALLEL OFF writes serially but does not identify the complete set of files belonging to an export.

    DWhy not this: MAXFILESIZE controls output file size, not which files belong to a particular export.

    UNLOAD with MANIFEST creates a file identifying the data files written by that export. PARALLEL OFF changes how files are written but does not provide an explicit inventory of the export's files.

    Open this question
  10. Question 10

    Data Store Management

    Which AWS service provides a managed, Apache Hive metastore-compatible repository for table definitions?

    Show the answer

    Correct answerC. AWS Glue Data Catalog

    AWhy not this: A crawler discovers schemas and writes metadata into a catalog; it is not the metastore.

    BWhy not this: Schema Registry manages streaming data schemas, not Hive-compatible table metadata.

    CWhy this is right: Data Catalog stores database and table definitions and provides Hive metastore compatibility.

    DWhy not this: A connection stores connectivity information rather than serving as a table metadata repository.

    AWS Glue Data Catalog is a managed metadata repository compatible with the Apache Hive metastore. AWS Glue Schema Registry manages schemas for streaming applications rather than Hive table definitions.

    Open this question
  11. Question 11

    Data Store Management

    An S3 dataset already has an accurate AWS Glue Data Catalog table. An AWS Glue ETL job must read the dataset using that table's schema and location. What should the engineer do?

    Show the answer

    Correct answerD. Read a DynamicFrame using the catalog database and table names.

    AWhy not this: Crawlers discover metadata; they do not export source records for ETL consumption.

    BWhy not this: An S3 catalog table does not become a JDBC endpoint and does not require a JDBC connection.

    CWhy not this: A business catalog supports discovery and governance rather than supplying records to the ETL reader.

    DWhy this is right: A catalog-based read resolves the schema and source location from the named database and table.

    A catalog-based DynamicFrame read uses the table's metadata to read the underlying source data. A crawler discovers and updates metadata; it does not export the table's records.

    Open this question
  12. Question 12

    Data Store Management

    An engineer must manually define a partitioned external Parquet table in AWS Glue Data Catalog before any files arrive in S3. Which metadata should the engineer configure for Hive-compatible readers? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Define nonpartition columns and their data types.C. Define partition keys separately from ordinary columns.E. Set the S3 location and Parquet storage metadata.

    AWhy this is right: Column names and types define how readers interpret the nonpartition fields.

    BWhy not this: Hive-compatible schemas must not repeat a partition key among the ordinary columns; the duplicate name conflicts.

    CWhy this is right: Partition keys belong in the table's separate partition-key definitions, in the intended order.

    DWhy not this: VIRTUAL_VIEW defines a view based on a query, not an external table that reads files in S3.

    EWhy this is right: The storage descriptor identifies the data location and the format-specific reader metadata.

    FWhy not this: S3 external tables do not require JDBC connectivity.

    The table definition needs ordinary columns, storage metadata describing the S3 location and Parquet format, and separate partition-key definitions. Hive-compatible readers reject a partition key that is also listed as an ordinary column, VIRTUAL_VIEW describes a view rather than an external table over S3 data, and a JDBC connection is unnecessary for an S3 external table.

    Open this question
  13. Question 13

    Data Store Management

    JSON files contain an envelope with a nested array of transaction records. A Glue crawler infers the envelope schema, but analysts need each array element treated as a record. What should the engineer configure?

    Show the answer

    Correct answerC. A custom JSON classifier with the array's JSONPath

    AWhy not this: Changing crawl frequency does not change which JSON objects are interpreted as records.

    BWhy not this: A JDBC connection provides database connectivity and cannot select records inside S3 JSON files.

    CWhy this is right: A custom JSON classifier can select the nested transaction records for schema inference.

    DWhy not this: A recrawl policy controls scan scope, not the record structure inferred within each file.

    A custom JSON classifier uses JSONPath to identify the records whose schema the crawler should infer. Changing the recrawl policy changes what gets scanned, not which nested objects represent records.

    Open this question
  14. Question 14

    Data Store Management

    An AWS Glue ETL job reads an S3 table with millions of catalog partitions and an active partition index. Retrieving partition metadata delays startup despite using push_down_predicate. Which change BEST reduces this delay?

    Show the answer

    Correct answerB. Use catalogPartitionPredicate with the partition index.

    AWhy not this: A downstream Spark filter does not eliminate the initial catalog partition-listing delay.

    BWhy this is right: Server-side filtering with a partition index avoids retrieving the full partition list.

    CWhy not this: Job bookmarks track previously processed data rather than accelerate catalog partition lookup.

    DWhy not this: More frequent crawling updates metadata but does not reduce partition-listing overhead.

    catalogPartitionPredicate uses a partition index for server-side partition filtering, reducing metadata retrieval. push_down_predicate filters partitions after catalog partition listing, so it can still incur substantial listing overhead.

    Open this question
  15. Question 15

    Data Store Management

    An application uses Avro schemas in AWS Glue Schema Registry with BACKWARD compatibility. A new consumer must read existing records after a field is added. How should the engineer define the new field?

    Show the answer

    Correct answerA. As a field with a valid default value

    AWhy this is right: A valid default lets the new reader supply a value when the field is absent from older records.

    BWhy not this: Older records lack the field, and the new reader has no default value to supply.

    CWhy not this: Replacing an existing field with an incompatible type can prevent the new reader from reading old records.

    DWhy not this: Renaming without an alias can break field resolution and does not safely implement the requested addition.

    An Avro reader can use a new field's default value when older records do not contain that field. Adding a required field without a default prevents the new reader from reading those older records.

    Open this question
  16. Question 16

    Data Store Management

    AWS SCT converts most of an Oracle schema to PostgreSQL but flags several stored procedures as action items. The application must retain their behavior. What should the engineer do before production cutover? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Rewrite flagged procedures and test their behaviorD. Review the assessment report for unsupported constructs

    AWhy this is right: Manual conversion and behavioral testing preserve functionality that automatic schema conversion could not reproduce.

    BWhy not this: Converted tables do not replace stored procedure logic required by the application.

    CWhy not this: A data replication task moves data and captures changes; it does not translate unsupported procedure logic.

    DWhy this is right: The assessment report identifies conversion limitations and action items that require investigation.

    The assessment report identifies constructs requiring attention; unsupported procedure logic must be rewritten and tested for equivalent behavior. AWS DMS data replication does not translate unsupported stored procedure code.

    Open this question
  17. Question 17

    Data Store Management

    A new DynamoDB table will use customer ID as its partition key and order ID as its sort key. Each customer's data will remain below 10 GB, and queries must support strongly consistent reads ordered by creation time. Which design meets these requirements?

    Show the answer

    Correct answerD. A local secondary index with creation time as its sort key

    AWhy not this: Projecting an attribute does not create an access path that orders query results by that attribute.

    BWhy not this: Global secondary indexes support only eventually consistent reads, so they cannot meet the consistency requirement.

    CWhy not this: Placing order ID first sorts primarily by order ID, not by creation time across the customer's orders.

    DWhy this is right: A local secondary index supports creation-time ordering within each customer partition and allows strongly consistent reads.

    A local secondary index provides an alternate sort key within the same partition key and supports strongly consistent reads. A global secondary index supports alternate access patterns but only eventually consistent reads.

    Open this question
  18. Question 18

    Data Store Management

    An engineer has used AWS SCT to convert and apply an Oracle schema to Amazon RDS for PostgreSQL. Which action should load existing rows and keep the target synchronized until cutover?

    Show the answer

    Correct answerD. Run an AWS DMS full-load-and-CDC task

    AWhy not this: A crawler discovers metadata and updates the Data Catalog; it does not synchronize database rows.

    BWhy not this: AWS DMS Schema Conversion converts schema objects rather than performing continuous data replication.

    CWhy not this: A schema assessment evaluates conversion complexity; it does not load rows or replicate subsequent changes.

    DWhy this is right: Full load transfers existing rows, and change data capture replicates subsequent source changes until cutover.

    An AWS DMS full-load-and-CDC task loads existing data and replicates subsequent changes. Schema conversion translates database structures and code; it does not itself provide continuous row replication.

    Open this question
  19. Question 19

    Data Store Management

    An incoming dataset changes a column from an integer to a string without notice. What type of change has occurred?

    Show the answer

    Correct answerC. Schema drift

    AWhy not this: Distribution skew describes uneven data distribution across partitions or processing resources.

    BWhy not this: Partition pruning skips irrelevant partitions during queries; it does not describe changing column types.

    CWhy this is right: An unexpected change to a column's data type is a form of schema drift.

    DWhy not this: Compression encoding controls how values are stored, not the logical type supplied by a producer.

    Schema drift occurs when incoming data's structure or types change over time. Distribution skew concerns uneven data placement, not a change to a column's data type.

    Open this question
  20. Question 20

    Data Store Management

    An engineer is configuring AWS DMS to load an on-premises PostgreSQL database into Amazon RDS for PostgreSQL and replicate subsequent changes. Which actions support this migration? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Configure a task for full load and ongoing replication.C. Enable the source logging required for change data capture.E. Provide network connectivity from DMS to both databases.F. Define table mappings that include the required source tables.

    AWhy this is right: A full-load-and-CDC task copies existing data and then replicates subsequent changes.

    BWhy not this: AWS SCT converts database schemas and code; DMS performs ongoing row-change replication.

    CWhy this is right: Change data capture requires PostgreSQL source logging and configuration that allow DMS to read changes.

    DWhy not this: Transfer Family transfers files to S3 or EFS; it cannot replay log files into an RDS database.

    EWhy this is right: DMS must reach the source and target endpoints to read and write migration data.

    FWhy this is right: Table mappings specify which source schemas and tables the migration task includes.

    AWS DMS needs source change logging, database connectivity, an appropriate migration task, and table mappings to perform full load plus ongoing replication. AWS Schema Conversion Tool converts schemas and code; it does not continuously replicate row changes. AWS Transfer Family moves files into Amazon S3 or Amazon EFS over SFTP, FTPS, FTP or AS2; it does not apply database changes to an RDS target.

    Open this question
  21. Question 21

    Data Store Management

    A partner must deliver files through SFTP directly into Amazon S3 for an existing processing pipeline. Which service meets this requirement without managing file-transfer servers?

    Show the answer

    Correct answerB. AWS Transfer Family

    AWhy not this: AWS DataSync moves data between storage systems rather than accepting partner SFTP sessions.

    BWhy this is right: AWS Transfer Family accepts SFTP uploads and stores the files in an S3 bucket.

    CWhy not this: AWS DMS migrates database data; it does not provide an SFTP endpoint for file delivery.

    DWhy not this: S3 File Gateway exposes NFS and SMB file shares, not an SFTP endpoint.

    AWS Transfer Family provides managed SFTP endpoints backed by Amazon S3. AWS DataSync transfers data between supported storage locations but does not provide an SFTP endpoint for partner uploads.

    Open this question
  22. Question 22

    Data Store Management

    Which Amazon Redshift feature stores a query's computed results for reuse by subsequent queries?

    Show the answer

    Correct answerC. A materialized view

    AWhy not this: A federated query accesses data in an external database rather than storing reusable query results.

    BWhy not this: A standard view stores a query definition and evaluates it when queried.

    CWhy this is right: A materialized view persists computed results for later queries.

    DWhy not this: An external schema provides access to external objects; it does not store computed query results.

    A materialized view stores computed query results, which can accelerate repeated queries. A standard view stores a query definition rather than its results.

    Open this question
  23. Question 23

    Data Store Management

    Analysts must join Redshift history with selected Aurora PostgreSQL orders committed before each report starts, without persisting those orders in Redshift or S3. Which approach meets these requirements?

    Show the answer

    Correct answerC. Use a Redshift federated query against Aurora.

    AWhy not this: Spectrum queries S3 data, so this approach requires persisted exports that can be stale.

    BWhy not this: DMS replication persists the orders in Redshift and can introduce replication lag.

    CWhy this is right: Federated queries access Aurora data directly and can join it with local Redshift tables.

    DWhy not this: A materialized view persists the orders and can omit changes committed after its last refresh.

    Redshift federated queries can join warehouse tables with live Aurora PostgreSQL data without first copying the remote rows into Redshift or S3. A materialized view persists results and reflects its last refresh rather than necessarily the source state when a report starts.

    Open this question
  24. Question 24

    Data Store Management

    An application accidentally deletes an object from a versioning-enabled S3 bucket without specifying a version ID. The previous versions remain intact. Recovery must make the most recent data version current again with its original version ID, without creating a new version. What should the engineer do?

    Show the answer

    Correct answerA. Delete the current delete marker by specifying its version ID.

    AWhy this is right: Removing the current delete marker makes the previous version current again while preserving existing version IDs.

    BWhy not this: Suspending versioning and uploading does not restore the existing version as current.

    CWhy not this: Copying the data creates a new version with a new version ID.

    DWhy not this: An unqualified delete adds another delete marker rather than removing the existing marker.

    Deleting the current delete marker exposes the previous version without changing its version ID. Copying an older version to the same key creates a new version rather than simply exposing the existing one.

    Open this question
  25. Question 25

    Data Store Management

    A DynamoDB table uses a correctly configured TTL attribute, but expired items sometimes remain readable for several days. How should an application prevent these items from appearing in Query results?

    Show the answer

    Correct answerC. Filter results using the TTL attribute and current time.

    AWhy not this: Point-in-time recovery supports restoration, not exclusion of expired query results.

    BWhy not this: DynamoDB TTL requires a Number containing Unix epoch time in seconds, not an ISO 8601 string.

    CWhy this is right: Comparing the expiration timestamp with current time excludes expired items awaiting deletion.

    DWhy not this: Strong consistency does not hide expired items that still exist in the table.

    DynamoDB TTL deletion is asynchronous, so applications should filter out items whose expiration time has passed. Strongly consistent reads can still return expired items that have not yet been deleted.

    Open this question
  26. Question 26

    Data Store Management

    Which Amazon RDS deployment provides a synchronous standby in another Availability Zone for automatic failover?

    Show the answer

    Correct answerA. Multi-AZ DB instance deployment

    AWhy this is right: A Multi-AZ DB instance deployment provides a synchronous standby and automatic failover.

    BWhy not this: A Single-AZ DB instance does not maintain a standby in another Availability Zone.

    CWhy not this: A cross-Region read replica uses asynchronous replication rather than a synchronous Multi-AZ standby.

    DWhy not this: Automated backups support recovery but do not provide a running standby for automatic failover.

    An RDS Multi-AZ DB instance deployment maintains a synchronous standby in another Availability Zone and supports automatic failover. A cross-Region read replica uses asynchronous replication and is not this standby configuration.

    Open this question
  27. Question 27

    Data Store Management

    An application accidentally deleted valid DynamoDB items 20 minutes ago, and point-in-time recovery was already enabled. How should an engineer recover the table's state from immediately before the deletion?

    Show the answer

    Correct answerB. Restore to a new table using a time before the deletion.

    AWhy not this: Global tables replicate deletes and do not provide historical rollback.

    BWhy this is right: Point-in-time recovery restores the selected pre-deletion state into a new DynamoDB table.

    CWhy not this: DynamoDB does not support an in-place table rollback through customer-managed transaction logs.

    DWhy not this: A new backup captures the post-deletion state rather than the required historical state.

    DynamoDB point-in-time recovery restores a selected historical state into a new table. An on-demand backup taken after the deletion captures the current state and cannot recover the earlier deleted items.

    Open this question
  28. Question 28

    Data Store Management

    A deletion request covers every version of an S3 object, but one version has 30 days of Object Lock compliance retention remaining and an active legal hold. Legal counsel authorizes releasing the hold and asks whether permanent deletion within 24 hours is possible. What should the engineer conclude?

    Show the answer

    Correct answerB. The deadline is blocked until retention expires; the hold must also be removed before deleting every version.

    AWhy not this: Governance bypass permissions cannot override compliance-mode retention.

    BWhy this is right: Retention must expire and the legal hold must be removed before the protected version can be permanently deleted.

    CWhy not this: The root user cannot delete an object version before its compliance-mode retention expires.

    DWhy not this: Lifecycle expiration cannot permanently delete a version protected by compliance-mode retention.

    Compliance-mode retention prevents permanent deletion of a protected version until retention expires, even by the root user. Governance bypass permissions apply to governance mode, not compliance mode; an active legal hold independently prevents deletion.

    Open this question
  29. Question 29

    Data Store Management

    An S3 dataset uses non-Hive-style partition paths, and a daily manifest lists added and deleted partitions with their values and locations. Athena must reflect both changes without scanning S3 or changing the table schema; what should the engineer do?

    Show the answer

    Correct answerD. Use Glue batch partition APIs to apply the manifest.

    AWhy not this: MSCK REPAIR TABLE expects Hive-style paths for discovery and does not remove stale partition metadata.

    BWhy not this: Partition projection calculates partitions at query time; it does not synchronize Glue partition entries with the manifest.

    CWhy not this: Crawling only new folders does not reconcile deleted partitions and still requires discovery.

    DWhy this is right: BatchCreatePartition and BatchDeletePartition apply the manifest's additions and deletions without scanning S3.

    Glue batch partition APIs can register additions and remove deleted partition metadata directly from the manifest without scanning S3. MSCK REPAIR TABLE discovers Hive-style partitions and does not remove stale partition entries.

    Open this question
  30. Question 30

    Data Store Management

    A Glue crawler has completed its initial full crawl of an S3 dataset. New partition folders arrive continuously, and S3 notifications already reach an SQS queue; how should subsequent crawls minimize listing unchanged folders?

    Show the answer

    Correct answerB. Configure the crawler to use S3 event-based crawling.

    AWhy not this: New-folder crawling discovers additions through folder listing rather than using the available S3 events.

    BWhy this is right: Event-based crawling reads S3 notifications from SQS and targets the affected folders.

    CWhy not this: Full recrawls repeatedly inspect the dataset rather than limiting discovery to event-identified folders.

    DWhy not this: Classifiers identify data formats and schemas; they do not select folders using S3 notifications.

    S3 event-based crawling uses notifications from SQS to identify folders requiring inspection after the initial crawl. Crawling only new folders is incremental but still lists folders to discover additions rather than using the event queue.

    Open this question
  31. Question 31

    Data Store Management

    A crawler must catalog a private JDBC database, but the subnet selected in its new Glue connection has no free IP addresses. Another subnet has free addresses and permitted network access to the database; what should the engineer change?

    Show the answer

    Correct answerB. Select the reachable subnet with free addresses in the connection.

    AWhy not this: Changing the schedule does not resolve the selected subnet's lack of available IP addresses.

    BWhy this is right: A subnet with available addresses and permitted database access supports Glue's required network interfaces.

    CWhy not this: The catalog database controls where metadata is stored and cannot provide IP addresses for network interfaces.

    DWhy not this: Using the database's subnet is not required, and a subnet without free addresses still prevents interface creation.

    Glue needs available IP addresses to create network interfaces in the connection's selected subnet. A reachable subnet with capacity is sufficient; the connection does not have to use the database's own subnet.

    Open this question
  32. Question 32

    Data Store Management

    A governance team uses Amazon SageMaker Catalog and needs every published asset to include structured fields for business owner and sensitivity classification. Which capability should the team configure?

    Show the answer

    Correct answerB. Required metadata forms

    AWhy not this: Subscription approvals govern access requests rather than required metadata at publication.

    BWhy this is right: Required metadata forms collect and enforce structured business attributes for published assets.

    CWhy not this: Schema discovery extracts technical structure rather than requiring business ownership and classification fields.

    DWhy not this: Glossary terms standardize business vocabulary but do not independently enforce completion of structured asset fields.

    Required metadata forms enforce structured business metadata on catalog assets before publication. Business glossary terms provide standardized vocabulary but do not by themselves require assets to supply owner and classification fields.

    Open this question
  33. Question 33

    Data Store Management

    Which AWS Glue resource holds reusable JDBC endpoint and authentication settings that a crawler can reference?

    Show the answer

    Correct answerB. A Glue connection

    AWhy not this: A catalog database organizes catalog tables rather than defining JDBC access.

    BWhy this is right: A connection defines reusable access properties for a data source or target.

    CWhy not this: A catalog table describes data structure and location, not reusable JDBC authentication settings.

    DWhy not this: A classifier identifies a dataset's format and schema rather than its connection settings.

    A Glue connection holds connection properties, including JDBC endpoint and authentication configuration, for reuse by crawlers and jobs. A Data Catalog table describes a dataset rather than defining reusable connection settings.

    Open this question
  34. Question 34

    Data Store Management

    An auditor must trace a SageMaker model to exact input dataset versions through preprocessing performed outside SageMaker. Those steps are missing from automatically captured lineage, and datasets reuse the same S3 keys. Which approach provides queryable, end-to-end provenance?

    Show the answer

    Correct answerC. Register version-specific artifacts and external processing actions, then associate them with the training lineage.

    AWhy not this: Current schemas describe structure, not which dataset versions and transformations produced a model.

    BWhy not this: Experiment metrics support comparison of runs, not a complete graph of versioned inputs and external transformations.

    CWhy this is right: Custom artifacts, actions, and associations can extend captured lineage through external steps and identify exact dataset versions.

    DWhy not this: Tags describe executions but do not create lineage relationships or distinguish overwritten dataset versions by location alone.

    Version-specific artifacts and associations through external processing actions complete the lineage graph back to exact inputs. Tags can describe inputs, but they do not establish traversable provenance relationships.

    Open this question
  35. Question 35

    Data Store Management

    An Athena table contains years of Parquet event data in Amazon S3. Queries usually filter on a single event date but scan the entire dataset. Which change most directly reduces scanned data?

    Show the answer

    Correct answerB. Partition by event date and filter on the partition column.

    AWhy not this: Combining dates into one file does not enable date-based partition pruning.

    BWhy this is right: A date predicate on the partition column lets Athena skip partitions for other dates.

    CWhy not this: Compressed JSON sacrifices Parquet's columnar benefits and does not introduce date partition pruning.

    DWhy not this: Partitioning by event ID does not align with the date filter and creates unnecessarily high partition cardinality.

    Date partitioning lets Athena prune partitions when queries filter on the partition column. Partitioning by event ID does not align with the date predicate and therefore does not provide the intended pruning.

    Open this question
  36. Question 36

    Data Store Management

    What is the primary purpose of column compression encodings in Amazon Redshift?

    Show the answer

    Correct answerD. Reduce column storage and disk I/O.

    AWhy not this: Distribution styles determine row placement across nodes, not compression encodings.

    BWhy not this: Compression does not enforce uniqueness; Redshift primary key and unique constraints are informational.

    CWhy not this: Sort keys organize stored rows; compression encodings reduce their storage representation.

    DWhy this is right: Encodings compress column values, reducing storage requirements and read I/O.

    Compression encodings reduce the space needed to store column values and the disk I/O needed to read them. Sort keys organize data for efficient filtering but do not replace compression encodings.

    Open this question
  37. Question 37

    Data Store Management

    A team replaces a knowledge base's embedding model with a different model that produces vectors of the same dimensions. Retrieval quality drops when new query vectors search the existing document vectors. What should the team do?

    Show the answer

    Correct answerA. Re-embed the documents with the replacement model.

    AWhy this is right: Re-embedding places documents in the same model's embedding space as the new queries.

    BWhy not this: Returning more neighbors cannot repair incompatible document and query representations.

    CWhy not this: Normalization changes vector magnitude but does not align embedding spaces produced by different models.

    DWhy not this: Metadata filters restrict eligible documents but do not change their vector representations.

    Document and query embeddings must use a compatible embedding space. Equal vector dimensions do not make different models' spaces compatible, and retrieving more results does not correct that mismatch.

    Open this question
  38. Question 38

    Data Store Management

    An Amazon Bedrock knowledge base must retrieve passages that express a user's intent even when they contain none of the query's exact keywords. Which retrieval approach best meets this requirement?

    Show the answer

    Correct answerC. Compare query and passage embeddings for similarity.

    AWhy not this: Keyword indexes match lexical terms and can miss paraphrases without shared query words.

    BWhy not this: Ingestion timestamps indicate freshness, not whether a passage expresses the user's intent.

    CWhy this is right: Embedding similarity can identify conceptually related passages without exact keyword overlap.

    DWhy not this: Source object names provide an ordering, not a measure of semantic relevance.

    Embedding similarity supports semantic retrieval by comparing representations of meaning. Keyword matching relies on lexical overlap and can miss passages that express the same intent using different words.

    Open this question
  39. Question 39

    Data Store Management

    An Apache Iceberg table must rename a column without losing its values and change monthly partitioning to daily partitioning for future writes. Historical files must remain unchanged and queryable through the same table; which approach meets these requirements?

    Show the answer

    Correct answerC. Rename the column; evolve the partition specification.

    AWhy not this: Dropping and recreating a column assigns a new field identity rather than preserving access to the original column's values.

    BWhy not this: Renaming preserves values, but rewriting historical files violates the requirement to leave them unchanged.

    CWhy this is right: Field IDs preserve the renamed column, and partition evolution supports old and new partition specifications in one table.

    DWhy not this: Copying data into a replacement table rewrites historical data and does not preserve the existing table as required.

    Iceberg tracks columns by field IDs, so renaming preserves their identity and values. Partition evolution lets new files use daily partitions while historical files retain their previous specification; rewriting historical files is unnecessary and violates the requirement.

    Open this question
  40. Question 40

    Data Store Management

    An Amazon Aurora PostgreSQL application needs an approximate nearest-neighbor index that can be created before vectors are loaded, without a clustering training step. Higher memory usage is acceptable; which index type fits?

    Show the answer

    Correct answerD. HNSW

    AWhy not this: GIN indexes support inverted lookups for values such as array elements and text tokens, not this vector search requirement.

    BWhy not this: B-tree indexes support ordered scalar lookups, not approximate nearest-neighbor vector searches.

    CWhy not this: IVFFlat needs existing vectors to train its clustering structure during index construction.

    DWhy this is right: HNSW uses a graph without a clustering training step and trades higher memory usage for strong search performance.

    HNSW builds a multilayer graph and requires no clustering training step, so it can be created before data is loaded. IVFFlat forms clusters from existing vectors and needs representative data for effective index construction.

    Open this question
  41. Question 41

    Data Store Management

    Which Apache Iceberg capability makes a successful table update visible atomically instead of exposing partially committed changes?

    Show the answer

    Correct answerD. Atomic snapshot commits

    AWhy not this: Compression reduces storage size; it does not control transaction visibility.

    BWhy not this: Partition pruning reduces the data scanned by queries; it does not make updates atomic.

    CWhy not this: Compaction combines small files to improve efficiency; atomic visibility comes from the commit mechanism.

    DWhy this is right: Publishing a new snapshot atomically makes the committed table state visible without exposing partial changes.

    An atomic snapshot commit publishes a consistent new table state, so readers do not see a partially committed update. File compaction improves file layout but does not itself provide atomic visibility.

    Open this question
  42. Question 42

    Data Store Management

    An Amazon RDS for PostgreSQL transaction reads an inventory row before updating it. Other transactions follow the same read-then-update pattern on that row. Which approach prevents competing transactions from modifying the row or locking it for their own update until this transaction ends, while still allowing ordinary reads?

    Show the answer

    Correct answerB. Read the row with a FOR UPDATE lock.

    AWhy not this: Other transactions can take the same shared lock, so two read-then-update transactions can both lock the row and deadlock when they update it.

    BWhy this is right: A FOR UPDATE lock blocks competing modifications and competing row locks until transaction completion while allowing ordinary reads.

    CWhy not this: READ COMMITTED alone does not lock a selected row against modifications between the read and update.

    DWhy not this: An ACCESS EXCLUSIVE lock blocks ordinary reads and locks the entire table, exceeding the requirements.

    A FOR UPDATE row lock blocks competing updates, deletes and row locks until the transaction ends, so a competing read-then-update transaction waits instead of locking the row first; plain SELECT statements are not blocked. A shared row lock (FOR SHARE) also blocks modifications, but other transactions can take shared locks on the same row, so two read-then-update transactions can both hold it and then deadlock when each tries to update.

    Open this question
  43. Question 43

    Data Store Management

    An unpartitioned Athena table uses AWS Glue Data Catalog. After its S3 files move to a new prefix, queries fail; the schema and permissions remain valid, and no crawler manages the table. What should the engineer change?

    Show the answer

    Correct answerC. The table's S3 location in the Data Catalog

    AWhy not this: The workgroup output location controls query-result storage rather than source-file access.

    BWhy not this: A JDBC connection does not determine the S3 location used by this Athena table.

    CWhy this is right: The catalog table's location must point to the prefix that now contains the source files.

    DWhy not this: An unpartitioned table has no partition locations to update.

    Athena uses the catalog table's location to find the source files, so that location must reference the new prefix. The Athena workgroup's output location controls where query results are written, not where source data is read.

    Open this question
  44. Question 44

    Data Store Management

    Which AWS Glue component inspects source data to infer schemas and automatically create Data Catalog tables?

    Show the answer

    Correct answerC. AWS Glue crawler

    AWhy not this: A workflow orchestrates jobs, crawlers, and triggers rather than directly inferring schemas.

    BWhy not this: Schema Registry manages schemas for streaming applications rather than crawling sources into catalog tables.

    CWhy this is right: A crawler discovers source schemas and creates or updates catalog metadata.

    DWhy not this: A connection stores connectivity properties rather than inspecting data and creating tables.

    An AWS Glue crawler inspects supported data sources, infers schemas, and populates Data Catalog tables. A Glue connection supplies reusable connectivity properties but does not perform schema discovery.

    Open this question
  45. Question 45

    Data Store Management

    An Amazon EMR Spark application must use the existing table definitions that Athena uses in AWS Glue Data Catalog. What should the engineer configure to avoid maintaining a separate metastore?

    Show the answer

    Correct answerD. AWS Glue Data Catalog as Spark's Hive metastore

    AWhy not this: A Glue JDBC connection does not configure Spark's metadata repository.

    BWhy not this: Crawling output discovers metadata but does not configure Spark to reference the shared catalog.

    CWhy not this: Copied definitions require a second metastore and ongoing synchronization.

    DWhy this is right: Spark can reference the existing Glue table definitions through its Hive metastore integration.

    Configuring Spark to use AWS Glue Data Catalog as its Hive metastore lets Spark and Athena reference the same table definitions. Copying definitions to a local metastore creates a separate metadata repository that must be synchronized.

    Open this question
  46. Question 46

    Data Store Management

    An AWS Glue crawler manages an S3 table whose column definitions have been manually corrected. Subsequent crawls must report detected schema changes without replacing those definitions. What should the engineer configure?

    Show the answer

    Correct answerC. Set the crawler's update behavior to LOG

    AWhy not this: UPDATE_IN_DATABASE allows inferred schema changes to update the existing catalog table.

    BWhy not this: Delete behavior controls handling of deleted objects, not updates to existing column definitions.

    CWhy this is right: LOG records detected schema changes while preserving the existing table definitions.

    DWhy not this: Recrawl behavior controls what is scanned, not whether detected schema changes overwrite metadata.

    Setting the schema-change policy's update behavior to LOG records detected changes without updating the existing table schema. UPDATE_IN_DATABASE permits the crawler to replace catalog definitions with its inferred schema.

    Open this question
  47. Question 47

    Data Store Management

    An Amazon Redshift RA3 cluster has sufficient baseline compute, but its stored data is growing and short bursts of eligible read queries cause queues. Which choices address these needs without permanently provisioning peak compute? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Rely on RA3 managed storage for data growth.D. Enable concurrency scaling for the affected queues.

    AWhy not this: Adding nodes increases compute capacity even though baseline compute is sufficient and managed storage can accommodate data growth.

    BWhy not this: Sizing the main cluster for peak demand leaves excess baseline compute provisioned between bursts.

    CWhy this is right: RA3 managed storage scales storage independently of the cluster's provisioned compute.

    DWhy this is right: Concurrency scaling provides temporary additional query capacity for eligible workloads during bursts.

    RA3 managed storage lets storage grow independently of compute, while concurrency scaling supplies temporary capacity for eligible query bursts. Adding nodes or permanently sizing the cluster for peak demand increases baseline compute that the workload does not need.

    Open this question
  48. Question 48

    Data Store Management

    A DynamoDB application has long periods without requests and unpredictable traffic bursts. Which capacity mode minimizes paying for idle throughput capacity without requiring traffic forecasts?

    Show the answer

    Correct answerD. On-demand capacity

    AWhy not this: Auto scaling adjusts provisioned throughput, but provisioned capacity still incurs charges when no requests arrive.

    BWhy not this: Reserved capacity discounts a provisioned capacity commitment rather than eliminating idle throughput charges.

    CWhy not this: Scheduled scaling fits predictable traffic changes, not bursts whose timing cannot be forecast.

    DWhy this is right: Request-based billing avoids idle throughput charges and does not require forecasting provisioned capacity.

    On-demand capacity charges for requests rather than provisioned throughput and accommodates variable traffic without capacity forecasts. Provisioned auto scaling adjusts capacity but still charges for provisioned capacity during idle periods.

    Open this question
  49. Question 49

    Data Store Management

    Analysts query an S3 table through Athena using Lake Formation permissions. They need access to most columns but must not read salary values; which configuration meets this requirement without copying the data?

    Show the answer

    Correct answerD. Grant SELECT on only the permitted table columns.

    AWhy not this: S3 prefix permissions control object access, not access to individual columns within those objects.

    BWhy not this: SELECT is granted on tables or columns, not as a database-level permission.

    CWhy not this: Table-level SELECT allows access to salary along with the other columns.

    DWhy this is right: Column-level SELECT permits access to approved columns while leaving salary inaccessible.

    Lake Formation column-level permissions can grant SELECT on permitted columns while excluding salary. Table-level SELECT permits reading every column, so it does not enforce the required restriction.

    Open this question
  50. Question 50

    Data Store Management

    Which data store supports the pgvector extension for storing embeddings alongside relational data and performing vector similarity searches?

    Show the answer

    Correct answerB. Amazon Aurora PostgreSQL-Compatible Edition

    AWhy not this: Aurora MySQL does not support PostgreSQL extensions such as pgvector.

    BWhy this is right: Aurora PostgreSQL supports pgvector, combining vector similarity searches with relational data.

    CWhy not this: MemoryDB provides an in-memory database, not a PostgreSQL environment that supports pgvector.

    DWhy not this: DynamoDB is a key-value and document database and does not support the pgvector extension.

    Aurora PostgreSQL supports pgvector for storing vectors and performing similarity searches within a relational database. Aurora MySQL is relational but does not support PostgreSQL extensions.

    Open this question