Curated

Architecture Design and Implementation Built for the Cloud 2 (1.5)

0 votes

Questions16

  1. Question 1

    Architecture Design and Implementation Built for the Cloud

    Events arrive in Amazon MSK, and analysts need them available for SQL joins with existing Amazon Redshift tables within seconds. The team wants a managed ingestion path without S3 staging or custom consumer applications. Which design best meets these requirements?

    Show the answer

    Correct answerB. Use Redshift streaming ingestion with an MSK-backed materialized view.

    AWhy not this: An EMR streaming job requires maintaining processing application code rather than using direct managed ingestion.

    BWhy this is right: Streaming ingestion directly ingests MSK records into Redshift materialized views without an S3 staging layer.

    CWhy not this: Firehose delivery to Redshift uses S3 staging, which conflicts with the stated ingestion constraint.

    DWhy not this: Scheduled COPY loading requires S3 staging and introduces batch scheduling latency.

    Redshift streaming ingestion reads MSK streams directly into materialized views with low latency, avoiding S3 staging and custom consumers. Amazon Data Firehose delivery to Redshift stages data in S3 before loading it.

    Open this question
  2. Question 2

    Architecture Design and Implementation Built for the Cloud

    An S3 data lake receives concurrent updates from Spark jobs while Athena users run reports. Reports must read consistent table snapshots, and auditors must query earlier table states without maintaining separate copies. Which design meets these requirements?

    Show the answer

    Correct answerC. Use Apache Iceberg tables with the AWS Glue Data Catalog.

    AWhy not this: Object versioning and crawlers do not provide atomic, consistent snapshots across a table's files.

    BWhy not this: Daily exports provide periodic copies rather than transactional snapshots and violate the separate-copy constraint.

    CWhy this is right: Iceberg coordinates transactional updates and preserves table snapshots that support historical queries.

    DWhy not this: Permissions control access, and replication copies objects; neither provides transactional table snapshots.

    Apache Iceberg provides transactional table updates, consistent snapshots, and time travel across retained snapshots. S3 Versioning preserves individual object versions but does not coordinate them into transactional table snapshots.

    Open this question
  3. Question 3

    Architecture Design and Implementation Built for the Cloud

    Analysts need to join historical Parquet data in Amazon S3 with frequently queried tables in Amazon Redshift. The historical data must remain in S3 without being loaded into Redshift. Which approach should they use?

    Show the answer

    Correct answerA. Create external tables and query them with Redshift Spectrum.

    AWhy this is right: Spectrum queries external S3 tables directly and supports joins with local Redshift tables.

    BWhy not this: COPY loads S3 data into Redshift tables, violating the requirement to avoid loading the history.

    CWhy not this: Exporting tables does not provide the requested join within Redshift and adds unnecessary data movement.

    DWhy not this: Materialized views over imported tables still require loading the historical data into Redshift.

    Redshift Spectrum queries external S3 data and can join it with local Redshift tables without loading the external data. COPY imports data into Redshift, contrary to the storage requirement.

    Open this question
  4. Question 4

    Architecture Design and Implementation Built for the Cloud

    Which AWS service provides managed flows to transfer Salesforce records into Amazon S3 on a schedule?

    Show the answer

    Correct answerB. Amazon AppFlow

    AWhy not this: The Data Catalog stores dataset metadata, not the application records being transferred.

    BWhy this is right: AppFlow supports scheduled transfers from Salesforce to S3 through a managed connector.

    CWhy not this: MSK hosts Apache Kafka for event streaming rather than providing scheduled Salesforce data flows.

    DWhy not this: EMR runs distributed analytics frameworks; it does not provide AppFlow's managed Salesforce integration.

    Amazon AppFlow provides managed integrations that transfer data between supported SaaS applications, including Salesforce, and AWS services. AWS Glue Data Catalog stores metadata rather than transferring application records.

    Open this question
  5. Question 5

    Architecture Design and Implementation Built for the Cloud

    A purchasing application requires database-enforced foreign keys, atomic updates across related tables, and interactive joins whose predicates change frequently. Demand varies sharply, and the team wants database compute to scale automatically without application-managed sharding. Which design best meets these requirements?

    Show the answer

    Correct answerA. Amazon Aurora PostgreSQL-Compatible with serverless compute

    AWhy this is right: Aurora supports enforced foreign keys, multi-table transactions, and joins; serverless compute adjusts capacity with demand.

    BWhy not this: On-demand capacity scales requests, but DynamoDB does not provide native relational joins or database-enforced foreign keys.

    CWhy not this: Athena queries lake data but does not provide the relational constraint enforcement required by the transactional application.

    DWhy not this: Redshift supports analytical SQL, but it does not enforce foreign key constraints and is not designed for this transactional workload.

    Aurora PostgreSQL-Compatible provides enforced relational constraints, transactional updates, and flexible joins, while serverless compute adjusts capacity. Redshift Serverless scales analytical processing, but foreign key constraints are informational rather than enforced.

    Open this question
  6. Question 6

    Architecture Design and Implementation Built for the Cloud

    A retailer needs a database for historical sales reporting over billions of rows. Queries scan many records, aggregate a few columns, and join large fact tables with dimension tables. Which service is the best fit?

    Show the answer

    Correct answerB. Amazon Redshift

    AWhy not this: DynamoDB is optimized for defined key-based access patterns rather than large relational joins and broad analytical scans.

    BWhy this is right: Redshift is designed for column-oriented analytical scans, large aggregations, and fact-to-dimension joins.

    CWhy not this: PostgreSQL supports relational queries, but its operational database architecture is less suited to the stated warehouse-scale scans.

    DWhy not this: ElastiCache accelerates data access in memory; it is not a relational warehouse for historical analytical joins.

    Amazon Redshift uses columnar storage and massively parallel processing for large analytical scans, aggregations, and joins. RDS for PostgreSQL supports joins but is primarily suited to operational relational workloads rather than warehouse-scale analytics.

    Open this question
  7. Question 7

    Architecture Design and Implementation Built for the Cloud

    A company runs Amazon RDS for PostgreSQL in one Availability Zone. It needs automatic failover during an Availability Zone outage without changing database engines or adding read capacity. Which change best meets these requirements?

    Show the answer

    Correct answerD. Convert to an RDS Multi-AZ DB instance deployment.

    AWhy not this: Larger compute and more IOPS improve capacity but do not protect against an Availability Zone outage.

    BWhy not this: Point-in-time recovery restores a database from backups rather than automatically failing over to a running standby.

    CWhy not this: A standard read replica provides read scaling and can be promoted, but it does not provide the required automatic failover.

    DWhy this is right: A synchronous standby in another Availability Zone provides automatic failover without adding a read-serving instance.

    An RDS Multi-AZ DB instance deployment maintains a synchronous standby in another Availability Zone and provides automatic failover. A standard cross-AZ read replica uses asynchronous replication and requires promotion rather than providing this automatic failover.

    Open this question
  8. Question 8

    Architecture Design and Implementation Built for the Cloud

    An application stores orders in DynamoDB and must immediately read successful writes in the same AWS Region. It needs lookups of a customer's order by customer ID and order ID, and queries by customer ID ordered by creation time; which designs support these access patterns with strongly consistent reads? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Use customer ID and creation time as the table key, and map order IDs to base-table keys for direct reads.E. Use customer ID and order ID as the table key, with a local secondary index sorted by creation time.

    AWhy not this: Asynchronous replication can lag behind successful writes, leaving customer-history results temporarily stale.

    BWhy this is right: Both access patterns read the base table, which supports strongly consistent reads when requested.

    CWhy not this: Global secondary indexes support only eventually consistent reads, so customer-history queries cannot meet the freshness requirement.

    DWhy not this: DAX query-cache results are eventually consistent and cannot ensure immediate visibility of successful writes.

    EWhy this is right: Lookups use the full customer ID and order ID key, and the local secondary index supports strongly consistent customer-history queries.

    DynamoDB supports strongly consistent reads on base tables and local secondary indexes. A mapped base-table lookup and a local secondary index can therefore meet the requirements; global secondary indexes support only eventually consistent reads.

    Open this question
  9. Question 9

    Architecture Design and Implementation Built for the Cloud

    An application uses cache-aside with Amazon ElastiCache, and thousands of requests simultaneously query the database whenever one popular key expires. The application must retain expiration-based freshness and prevent these duplicate database reads. Which change best meets these requirements?

    Show the answer

    Correct answerA. Coalesce cache misses using a per-key refresh lock.

    AWhy this is right: A per-key refresh lock allows one database fetch while concurrent requests wait for the refreshed value.

    BWhy not this: Additional memory reduces capacity-driven evictions, not duplicate reads caused by an entry's expiration.

    CWhy not this: Write-through population handles updates but does not coordinate concurrent misses when an unchanged entry expires.

    DWhy not this: Expiration jitter spreads refreshes across different keys but does not coordinate requests for the same expired key.

    A per-key refresh lock lets one request repopulate an expired entry while other requests wait and reuse the result. Randomized expiration reduces simultaneous expiration across different keys but does not prevent concurrent refreshes of one popular key.

    Open this question
  10. Question 10

    Architecture Design and Implementation Built for the Cloud

    Linux application servers mount a shared data set over NFS, and Windows servers in the same VPC must read and write the same files over SMB at the same time. The file system must be fully managed and stay available if an Availability Zone fails. Which service should the architect choose?

    Show the answer

    Correct answerC. Amazon FSx for NetApp ONTAP with a Multi-AZ deployment

    AWhy not this: EFS serves NFS clients only, so the Windows servers would have no SMB access.

    BWhy not this: FSx for Windows File Server serves SMB shares and does not provide NFS access for the Linux servers.

    CWhy this is right: ONTAP serves the same volumes over NFS and SMB at once, and a Multi-AZ file system fails over between Availability Zones.

    DWhy not this: FSx for Lustre serves Linux clients through the Lustre client, offers no SMB access, and runs in a single Availability Zone.

    Amazon FSx for NetApp ONTAP gives multi-protocol access, so Linux clients over NFS and Windows clients over SMB can work on the same data, and a Multi-AZ deployment keeps it available through an Availability Zone failure. Amazon EFS is NFS-only, and FSx for Windows File Server is SMB-only.

    Open this question
  11. Question 11

    Architecture Design and Implementation Built for the Cloud

    An Aurora Global Database serves local reads in a secondary AWS Region. During planned maintenance, the company must move the writer to that Region without losing committed transactions; both Regions are healthy. Which action best meets these requirements?

    Show the answer

    Correct answerA. Perform a managed switchover to the secondary Region.

    AWhy this is right: Managed switchover synchronizes the clusters before changing the primary Region, providing a zero-data-loss planned transition.

    BWhy not this: Managed failover addresses unplanned outages and can lose transactions that have not replicated.

    CWhy not this: Detaching the secondary cluster does not coordinate synchronization and the writer transition.

    DWhy not this: Promoting a reader in the primary Region does not move the writer to another Region.

    A managed switchover synchronizes the healthy clusters before changing the primary Region, preventing loss of committed transactions. A managed failover is intended for unplanned outages and can lose changes that have not reached the secondary Region.

    Open this question
  12. Question 12

    Architecture Design and Implementation Built for the Cloud

    An HPC application needs a shared, high-throughput parallel file system for datasets stored in Amazon S3. The team wants native S3 data repository integration rather than custom transfer scripts. Which storage design best fits?

    Show the answer

    Correct answerB. Amazon FSx for Lustre with an S3 data repository association

    AWhy not this: EFS offers shared NFS access but does not provide native S3 data repository associations.

    BWhy this is right: FSx for Lustre combines parallel file-system performance with native integration for S3 datasets.

    CWhy not this: FSx for Windows File Server provides SMB shares rather than an S3-integrated parallel file system.

    DWhy not this: EBS Multi-Attach provides shared block access, not a managed parallel file system or native S3 repository integration.

    Amazon FSx for Lustre provides a high-performance parallel file system with native S3 data repository integration. Amazon EFS provides shared NFS storage but lacks Lustre's native S3 data repository associations.

    Open this question
  13. Question 13

    Architecture Design and Implementation Built for the Cloud

    An application routes all DynamoDB reads and writes through DAX, repeatedly reading individual items and identical Query results. Item reads must reflect successful application writes, Query results may lag by five seconds, and database reads must be minimized. Which cache configuration best meets these requirements?

    Show the answer

    Correct answerC. Set the query cache TTL to five seconds and retain a long item cache TTL.

    AWhy not this: Writes through DAX update cached items but do not invalidate cached Query results.

    BWhy not this: Strongly consistent reads pass through DAX to DynamoDB, forfeiting the required reduction in database reads.

    CWhy this is right: The query TTL bounds cached Query staleness, while writes through DAX update the item cache without requiring a short item TTL.

    DWhy not this: The item cache TTL does not control expiration of cached Query results.

    DAX writes update the item cache but do not invalidate cached Query results. A five-second query cache TTL bounds Query staleness while a long item cache TTL reduces database reads; shortening only the item cache TTL does not refresh cached Query results.

    Open this question
  14. Question 14

    Architecture Design and Implementation Built for the Cloud

    A producer shares a Lake Formation table with a consumer account, including SELECT with the grant option; the consumer accepts the share and creates a resource link. An analyst has the required IAM permissions and DESCRIBE on the link, but Athena reports insufficient Lake Formation permissions when reading the table. What should the consumer administrator do?

    Show the answer

    Correct answerB. Grant the analyst SELECT on the shared target table.

    AWhy not this: A resource link supports permissions such as DESCRIBE; table SELECT must be granted on its target.

    BWhy this is right: The account-level share permits delegated grants, but the analyst still needs SELECT on the shared target.

    CWhy not this: CREATE_TABLE permits creating tables in the database and does not authorize reading an existing shared table.

    DWhy not this: DATA_LOCATION_ACCESS permits creating catalog resources pointing to a registered location, not reading table records.

    Permissions on a resource link do not confer permissions on its target. The consumer administrator must use the delegated grant option to grant the analyst SELECT on the shared target table; data location permissions concern creating catalog resources, not reading table data.

    Open this question
  15. Question 15

    Architecture Design and Implementation Built for the Cloud

    Two companies want to analyze their combined customer datasets without giving either company direct access to the other's underlying records. Only aggregate results meeting a minimum group size may be returned. Which design best meets these requirements?

    Show the answer

    Correct answerC. Create an AWS Clean Rooms collaboration with aggregation analysis rules.

    AWhy not this: A shared cluster alone does not prevent access to underlying records or enforce minimum aggregation thresholds.

    BWhy not this: SELECT permissions allow reading authorized data rather than enforcing aggregate-only collaboration results.

    CWhy this is right: Aggregation analysis rules restrict permitted analysis and can enforce minimum group sizes for returned results.

    DWhy not this: Crawlers discover metadata; they do not enforce restrictions on collaborative query results.

    AWS Clean Rooms supports collaborative analysis without sharing underlying records, and aggregation analysis rules can enforce minimum aggregation thresholds. Lake Formation SELECT permissions govern data access but do not themselves impose aggregate-only query results.

    Open this question
  16. Question 16

    Architecture Design and Implementation Built for the Cloud

    Which information does the AWS Glue Data Catalog maintain for an S3 data lake? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Table column names and data typesC. Partition values and their storage locations

    AWhy this is right: Table metadata includes column names and their data types.

    BWhy not this: Database engines manage transaction buffer pages; the Data Catalog is a metadata repository.

    CWhy this is right: Partition metadata records partition values and the locations of their data.

    DWhy not this: The underlying records remain in storage such as Amazon S3; the catalog stores their metadata.

    EWhy not this: Query result caching belongs to query engines or caching systems, not the Data Catalog.

    The AWS Glue Data Catalog stores table schemas and partition metadata, including storage locations. It catalogs the data rather than storing the underlying S3 objects or caching query results.

    Open this question