Community Q&A
DEA-C01 — frequently asked questions
Community-vetted answers to 316 common questions about this exam, each traced back to a specific practice question.
Questions from real practice questions
Each Q&A comes from a specific question — follow the link for the full analysisHow to Fix an AWS Glue S3 VPC Gateway Endpoint Error?
Why is the S3 VPC gateway endpoint route table the fix for an AWS Glue job error?
An S3 gateway endpoint is attached to route tables; the Glue job's subnet needs a route to the endpoint's S3 prefix list so packets can reach S3 without a NAT or internet gateway.
Why not update the AWS Glue security group for an S3 gateway endpoint?
Glue serverless jobs do not use a security group to reach S3 through a gateway endpoint; gateway endpoints rely on route tables, so inbound security group rules do not apply.
Cost-Effective Querying of Compressed Data for Audits
Why is S3 Select not enough for cost-effectiveness?
S3 Select reduces data scanned during queries, but storing large volumes of historical audit data in S3 Standard incurs high monthly storage fees compared to Glacier.
Can Athena query gzip files in Glacier?
No, Athena operates on data in S3 Standard or similar tiers. It cannot directly query objects in Glacier without first restoring them, which defeats the purpose of cost optimization.
How Do You Schedule a Redshift Stored Procedure Daily Cost-Effectively?
Why is AWS Lambda not the most cost-effective option for scheduling this Redshift stored procedure?
Lambda needs custom code, IAM permissions, and VPC or Data API connectivity to reach Redshift, adding operational overhead even if invocation cost is low.
Can Redshift query editor v2 schedule a CALL statement for a stored procedure?
Yes, scheduled queries in query editor v2 run SQL against your Redshift cluster and can include CALL statements to invoke stored procedures.
How to Fix EventBridge Lambda AccessDeniedException?
Why is the Lambda execution role trust policy not enough for EventBridge?
The trust policy only lets the Lambda service assume the execution role to run code. EventBridge invokes Lambda through the function's resource-based policy, not that trust policy.
Does EventBridge need an IAM role to invoke Lambda?
Option B covers both sides: the EventBridge rule needs invoke permissions, and the Lambda resource-based policy must allow the EventBridge principal. Missing either can produce AccessDeniedException.
How to Apply Two Layers of Server-Side Encryption to S3 Uploads?
Why is combining SSE-KMS with the S3 Encryption Client not two server-side layers?
The S3 Encryption Client encrypts data on the client side before upload, so only the SSE-KMS portion is server-side; the requirement demands two server-side encryption layers.
Can an AWS Lambda function use DSSE-KMS when uploading files to S3?
Yes. DSSE-KMS is applied by Amazon S3 at upload time, so the Lambda function can use a normal PutObject request and S3 transparently applies both server-side encryption layers.
AWS Glue Job Bookmarks Reprocessing Cause
Why isn't s3:GetObjectAcl the cause?
Missing ACLs typically cause access denied errors, not silent reprocessing. Bookmark state persistence requires an explicit commit.
Does concurrency affect bookmarks?
No. Concurrency controls parallel task execution but does not influence how bookmark checkpoints are saved or retrieved.
Orchestrate Python and Bash Scripts with Least Overhead
Why not AWS Step Functions for orchestration?
Step Functions requires rewriting workflows into JSON state machines, forcing code refactoring. MWAA supports existing Python/Bash DAGs directly.
Does MWAA require managing servers?
No, MWAA is a managed service where AWS handles the infrastructure, allowing you to focus only on your workflow code.
Cost-Effective ACID Querying on S3 Data
Does Amazon Athena support ACID transactions?
Yes, Athena supports ACID transactions for Hive transactional tables stored in S3, ensuring data integrity.
Why is Redshift Spectrum not the best choice here?
While serverless, Athena is more cost-effective for ad-hoc S3 queries and offers native ACID support without needing a Redshift cluster context.
AWS DMS Replication Instance Region for Cross-Region Migration
Why can't DMS replicate from eu-east-1 to eu-west-1 directly?
DMS instances are regional resources. For Redshift, the instance MUST be in the same region as the target cluster due to VPC and endpoint constraints.
Is the DMS instance always in the source region?
No. While often placed near the source for performance, it must be in the same region as the target if the target is Amazon Redshift.
Kinesis Data Firehose CSV to Parquet Conversion
Can Kinesis Data Firehose convert CSV directly to Parquet?
Firehose natively converts JSON to Parquet/ORC. For CSV, it typically requires transformation to JSON first, but exam logic prioritizes built-in features over Lambda for 'least effort'.
Why not use Lambda for CSV to JSON conversion?
Lambda requires custom code development and maintenance. The question asks for the LEAST development effort, making built-in Firehose features preferable if applicable.
Low Latency Real-Time Sensor Dashboard with Kinesis and Timestream
Why is QuickSight not suitable for this low-latency scenario?
QuickSight is designed for BI and typically has refresh intervals ranging from minutes to seconds, whereas Grafana can query time-series databases like Timestream for sub-second real-time updates.
Can Kinesis Data Firehose write directly to Amazon Timestream?
No, Kinesis Data Firehose does not support Amazon Timestream as a native destination. You must use a consumer application like Apache Flink or Kinesis Client Library to ingest and write to Timestream.
Real-Time Network Outage Detection with Kinesis and Flink
Why isn't Aurora Database Activity Streams suitable for this?
Activity Streams capture SQL operations for security auditing, not business metrics like network usage volumes.
Does Lambda polling meet the least latency requirement?
No, polling every minute introduces significant delay compared to the near-instant processing of a Flink stream.
Minimizing SQS Data Loss During Downtime
Does increasing visibility timeout prevent data loss?
No. Visibility timeout only affects when a message becomes available after being received, not how long it stays in the queue before expiration.
Can DLQs save messages that expire due to downtime?
DLQs do not prevent expiration, but they capture messages that fail processing repeatedly, preventing permanent deletion and allowing recovery.
Reclaiming Storage in Amazon Redshift Materialized Views
Why doesn't DELETE reclaim space in Redshift?
DELETE only marks rows as deleted. The actual space is reclaimed when VACUUM runs, making DELETE slow for large-scale removal.
Can I use TRUNCATE on a materialized view?
Generally no, TRUNCATE applies to base tables. This question likely assumes a context where the underlying table is truncated or refers to streaming ingestion specifics.
Least Overhead Ingestion to OpenSearch via Kinesis
Why is Logstash not the best choice for least overhead?
Logstash is open-source and typically requires managing EC2 instances or clusters to run, whereas Kinesis Data Firehose is a fully managed service that handles scaling and maintenance automatically.
Can I use Lambda alone without Firehose?
You can use Lambda to process Kinesis streams, but integrating it directly with OpenSearch often requires custom code for batching and retry logic. Firehose provides built-in buffering, compression, and retry mechanisms, reducing overhead.
Amazon Redshift Third-Party IdP Authentication Setup
Does 'from within' mean inside the SQL engine?
Yes, it refers to executing the CREATE IDENTITY_PROVIDER SQL command against the Redshift cluster, rather than just clicking buttons in the console without backend config.
Why isn't configuring the IdP itself the first step?
While you must configure the IdP to trust Redshift first, the question asks what the data engineer should do to set up the mechanism in Redshift. The exam key prioritizes the Redshift-side registration step.
Git Rebase vs Merge Before Pull Request
Why not use git pull instead of git rebase?
Git pull creates a merge commit, which can clutter the history with non-linear merge nodes. Rebasing moves your commits to the tip of master, keeping history linear.
What is the risk of using git rebase?
Rebasing rewrites commit history. If others have cloned your feature branch, their local copies will diverge, requiring force pushes and causing collaboration issues.
Invoking Lambda for Redshift Load Status via EventBridge
Why not use CloudTrail to trigger Lambda?
CloudTrail is for security auditing and logging API calls, not for real-time operational workflows. It lacks the low-latency event routing needed for immediate load status updates.
Can Redshift Data API send to SQS?
No, the Redshift Data API natively integrates with Amazon EventBridge for monitoring and event notifications. It does not have a direct connector to SQS.
Secure Redshift Spectrum Access with VPC Endpoints
Why is a NAT Gateway included in Option A if we want to block external access?
NAT Gateways allow outbound internet access for instances in private subnets (e.g., for software updates) without exposing them to inbound traffic. It does not violate the requirement of preventing external access to the data.
Why can't we use Federated Queries (Option E) instead?
The scenario explicitly states the company stores data in S3. Option E says 'Do not upload the data to the S3 bucket,' which contradicts the business requirement described in the question.
Least Overhead Order Tracking Across Operational Systems
Why is AWS DMS better than AWS Glue here?
DMS provides out-of-the-box Change Data Capture (CDC) for JDBC sources, requiring zero code for ingestion. Glue requires writing and managing Spark/Python ETL scripts.
Can QuickSight visualize DynamoDB data?
Yes, QuickSight can connect directly to DynamoDB via Amazon Athena or its native connector, allowing for quick dashboard creation without intermediate storage.
Optimizing Kinesis Data Streams with Enhanced Fan-Out and PutRecords
Why is PutRecords better than PutRecord for mobile apps?
PutRecords batches multiple records into a single API call, reducing network overhead and improving throughput optimization from each device.
Does Kinesis Data Firehose support enhanced fan-out?
No, Firehose does not support enhanced fan-out; it is designed for loading data to destinations like S3, whereas Data Streams supports real-time consumption with fan-out.
Athena Federated Query for Multi-Source Iceberg Pipelines
Is Athena considered a valid tool for building data pipelines?
Yes. AWS documentation states Athena Federated Query can be used to build pipelines that extract data from multiple sources and store them in Amazon S3.
Why not use AWS Glue for this scenario?
While Glue is a strong ETL tool, it requires more setup for diverse connectors and scripting compared to Athena's SQL-based federated queries, violating the 'least operational effort' constraint.
AWS Glue Data Catalog Incremental Updates with SQS
Why not use a scheduled Glue Crawler (Option B)?
Scheduled crawlers run at fixed intervals, causing operational overhead and potential redundant executions. Event-driven crawlers run only when changes occur, aligning better with 'least operational overhead'.
Can AWS Glue Crawlers consume directly from SQS?
Yes, AWS Glue Crawlers can be configured to trigger based on Amazon SQS messages, allowing them to process S3 events asynchronously without polling.
AWS Glue Triggers and Connections for ETL Pipelines
Why not use Lambda to trigger Glue jobs?
Lambda adds operational overhead by requiring separate function creation, IAM role management, and code maintenance. Glue Triggers are native and serverless.
Can Glue Connect to MongoDB directly?
Yes, AWS Glue supports connections to various data sources including MongoDB, allowing you to store connection details securely in Glue Connections.
Cross-Account QuickSight Access to S3 with KMS
Why is Option B incorrect if we need cross-account S3 access?
The question states the S3 bucket policy is already updated to grant access. Option B suggests adding the bucket to the role's resources, which is redundant or refers to a different mechanism than the bucket policy already applied.
Do I need to update both IAM and KMS policies for cross-account KMS access?
Yes. The IAM policy allows the role to request the action (e.g., kms:Decrypt), while the KMS key policy must authorize that specific principal to perform the action on the key.
Orchestrating Long-Running Athena Queries Cost-Effectively
Can Lambda trigger Athena queries longer than 15 minutes?
Yes. Lambda calls start_query_execution and exits; the query runs asynchronously in Athena regardless of Lambda's timeout.
Why is MWAA not the best choice here?
MWAA is more expensive and complex. For simple sequential querying, serverless Step Functions are more cost-effective.
Least Overhead PII Redaction in S3
Why isn't Amazon Macie the right answer for removing PII?
Macie discovers and classifies sensitive data but does not have the functionality to automatically redact or remove that data from the S3 objects.
What is the operational overhead difference between S3 Object Lambda and DataBrew?
Object Lambda processes data on-demand with no infrastructure to manage, while DataBrew requires configuring jobs, scheduling, and managing output storage.
Amazon EMR for Petabyte-Scale Migration with Legacy Frameworks
Does Amazon EMR support serverless?
Yes, Amazon EMR Serverless allows you to run Spark, Hive, and other applications without managing clusters, reducing operational overhead.
Why can't I use AWS Glue for Pig and Oozie?
AWS Glue is optimized for Spark and PySpark jobs and does not provide native runtime support for Apache Pig, Oozie, or HBase.
AWS Glue PII Detection and Obfuscation
Can AWS Glue Data Quality obfuscate PII?
No. AWS Glue Data Quality is used for validating data quality and monitoring metrics, not for transforming or obfuscating data values.
Why is Lambda less efficient than Glue for this task?
Lambda requires custom code for detection and obfuscation logic, whereas Glue Studio offers pre-built, no-code transforms for PII handling, reducing development time.
AWS Glue Workflows vs Step Functions for ETL Orchestration
Can AWS Glue Workflows trigger Amazon EMR jobs?
Yes, AWS Glue Workflows support Amazon EMR applications as steps, allowing you to chain Glue jobs and EMR processing tasks together.
Why is Step Functions not the best choice here?
Step Functions require more configuration and coding effort. Glue Workflows are purpose-built for ETL and offer lower operational overhead for this specific stack.
Which S3 Lifecycle Policy Meets High Availability and Lowest Cost?
Why is S3 One Zone-IA wrong for this S3 Lifecycle policy?
S3 One Zone-IA stores data in a single Availability Zone, so it does not meet the question's explicit high-availability requirement even though it is cheaper than S3 Standard-IA.
Why choose Glacier Deep Archive over Glacier Flexible Retrieval after 2 years?
The files are accessed only once or twice yearly and no retrieval-time requirement is stated, so Deep Archive's lower storage cost makes it more cost-effective than Flexible Retrieval.
Redshift Data Sharing for Cross-Cluster Access
Why not use Redshift Spectrum instead of Data Sharing?
Spectrum requires data in S3 and is best for ad-hoc queries on large datasets. Data Sharing is optimized for live, structured data exchange between clusters with lower overhead.
Does Data Sharing copy the data to the consumer cluster?
No, it does not duplicate the data. It provides a pointer to the producer's data, allowing the consumer to query it directly using its own compute resources.
Redshift Streaming Ingestion with Materialized Views
Why is Option D not the least operational overhead?
While Firehose is managed, moving data to S3 first introduces latency and requires additional steps (COPY command) to make it available in Redshift, failing the 'near real-time' requirement.
Can Redshift query Kinesis streams directly?
Yes, via Streaming Ingestion. You create an External Schema for the Kinesis stream and then query it using a Materialized View with auto-refresh enabled.
AWS Data Exchange for Third-Party Datasets
Why is AWS DataSync not suitable for third-party datasets?
DataSync is for transferring data between storage systems (on-prem to AWS), not for discovering or subscribing to external third-party data catalogs.
What is the primary difference between Data Exchange and Data Sync?
Data Exchange focuses on finding and using third-party data subscriptions, while DataSync focuses on automated data transfer tasks between storage endpoints.
AWS Glue FindMatches for Data Deduplication
Why isn't Pandas drop_duplicates the best choice?
Pandas requires managing the compute environment and script maintenance, increasing operational overhead compared to the managed Glue FindMatches transform.
Does FindMatches require extensive training?
FindMatches uses ML but is designed to be a managed transform within Glue, reducing the need for custom model building and maintenance compared to other options.
Lambda RDS Private Connectivity Least Overhead
Why is Option B incorrect for private connectivity?
Option B only opens the DB port but doesn't ensure the Lambda function is in the same VPC/subnet to reach the private IP. Without C, the Lambda might still need public routing.
Is sharing Security Groups between Lambda and RDS safe?
While distinct SGs are better for strict isolation, the exam prioritizes 'least operational overhead'. Sharing an SG with a self-referencing rule is the simplest way to meet the connectivity requirement here.
Least Operational Overhead for API Gateway Lambda
Why is Provisioned Concurrency (B) not the best answer?
Provisioned Concurrency adds cost for idle capacity. For 'occasional' invocations, the cold start latency is acceptable, making standard Lambda (D) cheaper and less complex to manage.
Does EventBridge warming increase operational overhead?
No. It is a simple scheduled task. Managing ECS/EKS clusters or configuring Provisioned Concurrency involves significantly more ongoing operational maintenance.
Cost-Effective CDC in S3 Data Lake
Why not use AWS Lambda for CDC?
Lambda is not cost-effective or scalable for processing tens of terabytes of JSON data due to execution time limits and high compute costs.
What are open source data lake formats?
Formats like Apache Iceberg, Delta Lake, or Hudi provide ACID transactions, schema evolution, and efficient upserts on S3 data.
Solving Athena Query Planning Bottlenecks with Partition Indexing and Projection
Why isn't converting to Parquet (D) the right answer?
Parquet reduces data scanned during execution, but does not reduce the time Athena spends scanning the Glue catalog to find those files.
When should I use Partition Projection vs Partition Index?
Use Partition Index for existing tables with manageable growth; use Partition Projection for new tables or massive datasets where catalog scaling is a concern.
AWS Glue Job vs Crawler for SQL Server Migration
Why is a Glue Crawler not needed for SQL Server views?
Glue Crawlers are used to discover schema changes in data stores like S3 or dynamic databases. For a static SQL View with a known, unchanging schema, the Glue Job can define the schema directly in its script or JDBC connector, making the crawler redundant.
Can AWS Glue read directly from SQL Server?
Yes, AWS Glue supports JDBC connections to various relational databases, including Amazon RDS for SQL Server and EC2-hosted SQL Server instances, allowing direct data extraction without intermediate file storage.
Troubleshooting Step Functions EMR Integration
Does Step Functions need direct S3 permissions?
Yes, if the state machine explicitly interacts with S3 (e.g., passing data or triggering jobs that write to S3), the execution role needs S3 permissions.
Why not use SNS for troubleshooting?
SNS sends notifications but doesn't explain why the job failed. You need to identify the root cause (permission/network) first.
Persisting EC2 Data Across Terminations with Default Settings
Why is Option B incorrect if EBS is persistent?
EBS is persistent, but the root volume has a default DeleteOnTermination=true. Attaching a separate EBS volume uses the default false, preserving the data.
Can I use Instance Store for persistent data?
No, Instance Store is ephemeral. Data is lost if the instance is stopped, hibernated, or terminated.
Enabling Apache Spark in Amazon Athena
Why isn't 'Athena data source' the correct answer?
An Athena data source allows external Spark applications (e.g., on EMR) to read Athena tables. It does not enable the Spark engine inside Athena itself.
Can I use Spark without a workgroup?
No. You must first create a workgroup specifically configured with the Spark engine before you can open notebooks or run Spark code in Athena.
Least Latency for AWS Glue Data Catalog Synchronization
Why isn't MSCK REPAIR TABLE the best for least latency?
MSCK REPAIR TABLE scans the entire S3 path to find new partitions, which takes time. It also requires a separate trigger, adding more latency than an immediate API call.
Can I use CloudWatch Events to trigger the Glue Crawler?
Yes, but crawlers are heavier than direct API calls. For 'least latency,' directly calling create_partition is faster than starting a full crawler job.
Troubleshooting Amazon Athena Queries with Date Extraction
Why can't I just use WHERE year = 2023?
If the column storing the date is a DATE or TIMESTAMP type, comparing it directly to an integer (2023) causes a type mismatch or returns no rows. You must extract the year component first.
Does the HAVING clause fix missing zero-sales products?
No, HAVING filters grouped results after aggregation. It cannot fix a WHERE clause that fails to retrieve rows due to incorrect date filtering logic.
S3 Select vs Athena for Parquet Column Query
Does S3 Select support Apache Parquet?
Yes, S3 Select supports both CSV and Apache Parquet formats, allowing efficient column-level filtering.
Is S3 Select discontinued?
No, it is not discontinued. While availability may vary by region or account type, it remains a valid feature for querying objects.
Automating Amazon Redshift Materialized View Refresh
Is Native Auto-Refresh better than Query Editor v2?
Native Auto-Refresh is generally preferred as it is event-driven and requires no ongoing management, but Query Editor v2 is also a valid low-effort option for scheduled refreshes.
Can I use Lambda to refresh Redshift views?
While possible via API calls, it is not the least effort solution and introduces unnecessary complexity compared to native Redshift capabilities.
Orchestrating AWS Lambda and Glue with Least Overhead
Can AWS Glue Workflow run Lambda functions?
No, AWS Glue Workflows only support Glue jobs, crawlers, and triggers. They cannot invoke Lambda functions.
Is Airflow better than Step Functions for AWS data pipelines?
Airflow is more flexible but requires managing infrastructure (EC2/EKS). Step Functions is fully managed and offers less overhead for simple AWS-native workflows.
AWS Glue Data Catalog for Least Overhead Metadata Management
Why not use Aurora or DynamoDB as a data catalog?
Aurora and DynamoDB are database services, not metadata catalogs. Using them would require building custom applications to manage metadata, increasing operational overhead significantly.
Can AWS Glue Crawlers handle semi-structured data like JSON?
Yes, AWS Glue Crawlers can infer schemas from semi-structured data formats such as JSON, XML, and Parquet stored in Amazon S3 and update the Data Catalog automatically.
DynamoDB Scheduled Auto Scaling for Predictable Workloads
Why not use On-Demand mode for this scenario?
On-Demand is more expensive for predictable workloads. You pay a premium for flexibility that you don't need when traffic follows a known schedule.
Does Scheduled Auto Scaling require manual intervention?
No. Once configured, AWS Application Auto Scaling automatically adjusts the provisioned capacity up and down according to the defined schedule.
Migrating Hive Metastore to Serverless AWS Glue Data Catalog
Why is AWS DMS not used for Hive metastore migration?
DMS migrates structured data tables, not the complex schema and metadata definitions stored in a Hive metastore database.
Can Amazon Aurora be considered serverless here?
While Aurora Serverless exists, AWS Glue is the dedicated, fully managed serverless metadata catalog service, making it more appropriate and cost-effective for this specific use case.
Balancing Redshift Compute Node Load with Distribution Keys
Why doesn't changing the sort key balance CPU load?
Sort keys optimize data retrieval speed for filtered queries but do not determine which compute node stores the data rows.
What defines the 'largest dimension' in this context?
It refers to the column with the highest cardinality (most unique/distinct values), which minimizes data skew when hashed.
AWS Glue Data Catalog for IoT JSON Schema Evolution
Why isn't Amazon Athena sufficient for creating a data catalog?
Athena is a query engine, not a metadata catalog service. It uses tables defined in its own registry or external catalogs, but it doesn't actively crawl and manage schema evolution for ingestion pipelines like Glue does.
Is Redshift Serverless more cost-effective than Provisioned Redshift?
Yes, for variable workloads. Redshift Serverless scales compute automatically and you only pay for what you use, avoiding the fixed hourly costs of maintaining a provisioned cluster that might be underutilized.
Reducing RDS MySQL High CPU for Write-Heavy Workloads
Why is caching not effective for write-heavy RDS workloads?
Caching stores frequently accessed data to reduce database reads. Since write-heavy workloads generate most traffic through insert/update operations, caching cannot significantly offload the CPU burden from these transactional processes.
Is upgrading the instance always the best first step?
No. You should always diagnose first using Performance Insights (Option A) to ensure the issue isn't just inefficient queries. Upgrading (Option D) is the corrective action if the workload legitimately exceeds the current instance's capacity after optimization.
Amazon Redshift VACUUM REINDEX for Interleaved Sort Keys
Why doesn't VACUUM FULL work for interleaved sort keys?
VACUUM FULL reclaims space but does not reindex interleaved sort keys. You must use VACUUM REINDEX to analyze the key distribution as well.
What is the difference between VACUUM DELETE ONLY and REINDEX?
DELETE ONLY removes marked rows but doesn't sort or reindex. REINDEX analyzes interleaved keys and then performs a full vacuum to reclaim space.
AWS Glue Workflow for Schema-Aware Redshift ETL
Why can't I just use a Glue Job triggered by EventBridge?
A standalone Glue Job uses the current Data Catalog definition. If the source schema changes, the job may fail or produce incorrect results because it doesn't auto-update the catalog.
What is the difference between Option B and Option D?
Option B is time-based (every 15 minutes), while Option D is event-based (triggered when files land in S3). Both meet the requirements, but D is more responsive to file arrival.
Amazon Athena Query Result Reuse for Cost Optimization
Why isn't changing to Parquet the best answer?
Parquet reduces scan costs but requires modifying the Glue job, increasing operational overhead. Query reuse has zero extra overhead.
Does Query Result Reuse work for different queries?
No, it only works for identical queries (same text) executed within 24 hours. It does not help with varied BI dashboards.
AWS Glue DataBrew NEST_TO_MAP Transformation
What is the difference between NEST_TO_ARRAY and NEST_TO_MAP in DataBrew?
NEST_TO_ARRAY creates an ordered list of key-value objects, while NEST_TO_MAP creates a single JSON object (map) where columns become keys and values.
Why is PIVOT not suitable for this task?
PIVOT is used to rotate column headers into rows or vice versa, not to combine multiple columns into a single nested JSON structure.
S3 Intelligent-Tiering Default vs Deep Archive for Millisecond Retrieval
Why is S3 Intelligent-Tiering Deep Archive wrong for this question?
Deep Archive requires 12+ hours for retrieval, violating the millisecond requirement. Only the default tier's Archive Instant Access tier supports instant retrieval.
Does S3 Intelligent-Tiering have operational overhead?
No, it is fully automated. It monitors access patterns and moves objects between tiers without any manual intervention or lifecycle policy management.
Why Does QuickSight Report Insufficient Permissions for Athena S3 Data?
Why is 'no IAM role assigned to QuickSight' not the correct answer?
A missing QuickSight service role causes an authentication or authorization failure before Athena queries run, not the specific Athena insufficient-permissions error; QuickSight normally auto-creates aws-quicksight-service-role-v0.
Why does QuickSight need kms:Decrypt for Athena data in S3?
If the S3 objects or Athena query results are encrypted with SSE-KMS, QuickSight's role must have kms:Decrypt and the key policy must allow it, otherwise queries fail with insufficient permissions.
How to Query S3, RDS, DynamoDB, and Redshift with SQL?
Why is Redshift Spectrum not the least-overhead choice for DynamoDB and RDS?
Redshift Spectrum only queries external tables in Amazon S3 through the Glue Data Catalog; it cannot directly query DynamoDB tables or RDS SQL Server. You would need extra federation or export steps, so option B adds overhead.
Why is option C wrong if Athena can query S3 JSON?
Option C adds Glue jobs to convert JSON into Parquet or CSV, which is unnecessary ETL, and it still only queries S3. It does not provide a unified query path to RDS, DynamoDB, or Redshift.
How Do You Fix SageMaker Studio Access Denied for Glue Sessions?
Why is AmazonSageMakerFullAccess (C) not enough for Glue interactive sessions?
It grants broad SageMaker permissions but not the sts:AssumeRole call a Studio user needs before AWS Glue interactive sessions can run, so AccessDenied can persist.
Is sts:AddAssociation in option D a real AWS STS action?
No. AddAssociation is an Amazon SageMaker API operation, not an STS action; cross-service access is granted with sts:AssumeRole, which option B specifies.
Most Cost-Effective AWS Glue ETL for Small Daily CSV Files?
Why is an AWS Glue Python shell job cheaper than a Glue PySpark job here?
The shell job can run on 1/16 DPU and pandas handles sub-100 MB CSVs in memory, while a PySpark job bills full DPUs plus Spark startup overhead the small files never need.
When would option C, an AWS Glue PySpark job, actually be the better choice?
When files or volumes are large enough that data cannot fit in a single node's memory or the transform must be distributed across a Spark cluster; that scalability is wasted on under-100 MB daily CSVs.
Which AWS service most cost-effectively orchestrates an Amazon EMR ETL pipeline?
Why is AWS Glue Workflows not the right orchestrator for this Amazon EMR pipeline?
Glue Workflows only coordinates AWS Glue jobs and crawlers, so it cannot directly manage EMR cluster steps or non-Glue AWS services. The question specifically requires orchestrating an existing EMR ETL pipeline.
Why is Amazon MWAA less cost-effective than Step Functions for EMR orchestration?
MWAA runs an always-on managed Airflow environment with worker and scheduler charges, while Step Functions charges per state transition and scales to zero when idle.
How to Auto-Start a Glue Workflow After S3 File Gateway Transfers?
Why is Lambda not needed with EventBridge for Glue workflows?
EventBridge can target an AWS Glue workflow directly, so a Lambda function adds code, permissions, and monitoring overhead without improving the event-driven trigger.
Can S3 File Gateway send file upload events to EventBridge?
Yes, S3 File Gateway publishes successful upload events to EventBridge, allowing rules to react when a file transfer finishes.
How Do You Combine Live, Current, and Archived Redshift Data?
Why can't Redshift Spectrum query the historical data if it is archived to S3 Glacier Flexible Retrieval?
Spectrum only reads S3 Standard, S3 Intelligent-Tiering, and Glacier Instant Retrieval, so Glacier Flexible Retrieval objects must be restored and copied to a supported class before Spectrum can query them.
Does Redshift Federated Query remove the need for the daily ETL job into Redshift?
No. Federated Query adds direct read access to live Aurora PostgreSQL for analytics, but the current Redshift data and the S3 history still come from the existing ETL run and the monthly UNLOAD job.
Most Cost-Effective VPC Flow Log Analytics Solution?
Why is S3 Parquet with Athena cheaper than S3 text with Athena?
Parquet is columnar and compressed, so Athena reads fewer bytes per query and S3 stores less data. Because Athena charges by data scanned, this lowers analytics cost.
Can VPC flow logs be delivered directly to S3 in Parquet?
Yes. When you create a flow log with an S3 destination, you can choose Parquet as the output format, so no separate conversion service is required.
Which Kinesis Option Delivers IoT Sensor Data to S3 with Least Latency?
Why can't Kinesis Data Streams deliver IoT data to S3 by itself?
Kinesis Data Streams stores records for consumers but has no native S3 sink. You need a KCL application or Firehose to read records and write them to S3.
Does Firehose support a 5-second buffer interval for S3 in option D?
Firehose historically enforced a 60-second minimum, and AWS later added zero buffering; either way, adding Managed Flink before Firehose introduces more processing latency than a direct KCL write.
How to Trigger a Lambda CSV-to-Parquet Conversion on S3 Upload?
Why is the Amazon SNS topic in option D unnecessary for this S3-to-Lambda trigger?
S3 event notifications can invoke a Lambda function directly by using the function ARN as the destination. Adding SNS only introduces an extra topic, subscription and permissions to manage for no functional gain.
Is s3:* a valid S3 event notification type?
No. S3 supports specific event families such as s3:ObjectCreated: and s3:ObjectRemoved:; s3:* cannot be configured, which is why option C would never trigger the Lambda conversion.
Most Cost-Effective Athena and QuickSight SPICE for S3 Clickstream?
Why is QuickSight direct SQL wrong for hundreds of users?
Direct SQL makes each dashboard interaction query Athena, scanning S3 data repeatedly and increasing cost and latency. SPICE caches the dataset once and serves users from memory with a daily refresh.
Why not use Amazon Redshift for this clickstream dashboard?
Redshift requires a provisioned cluster and ongoing management, which is not the most cost-effective option when the data already sits in S3. Athena queries S3 serverlessly and scales with daily updates.
Which Service Supports Hybrid On-Premises and Cloud Orchestration?
Why is AWS Glue not the answer for hybrid orchestration?
AWS Glue is a serverless AWS-native ETL and catalog service; it is not an open-source workflow engine that can run on-premises with the same definitions.
Can Apache Airflow DAGs be reused between on-premises and Amazon MWAA?
Yes, MWAA is managed Apache Airflow, so the same DAG definitions and plugins can generally run on-premises and in AWS, preserving orchestration portability.
Which AWS NoSQL Database Meets Global OLTP with Least Overhead?
Why is Amazon Keyspaces not the answer if it is also a managed NoSQL database?
Keyspaces targets Cassandra-compatible workloads and can require more capacity and migration design; the question asks for the least-overhead global OLTP solution, which DynamoDB addresses natively.
Does Amazon DocumentDB provide single-digit millisecond performance?
DocumentDB can deliver low-latency document reads, but it is optimized for MongoDB compatibility rather than the global, serverless OLTP profile described in the question.
How to Prevent Amazon Athena Queries From Queueing?
Why does increasing the query result limit not stop Athena query queueing?
The result limit only caps output size or bytes scanned; queueing is driven by whether the workgroup has available query-processing capacity, which option A does not change.
Can adding users to an Athena workgroup prevent queries from queueing?
No. Adding users changes who can submit queries, not how much capacity the workgroup has; it can increase contention and make queueing worse.
How to Make Amazon Athena Queries on CSV Files Run Faster?
Why isn't compressing the .csv files with Snappy or gzip enough for Athena?
Compression only shrinks bytes on disk; CSV is still row-based, so Athena reads every column for a single-column filter. Parquet adds column pruning plus predicate pushdown, cutting scanned data far more.
Why is JSON with Snappy worse than Parquet with Snappy here?
JSON is row-oriented text and usually larger than CSV, so it keeps the same full-row scan pattern. Only the columnar layout of Parquet lets Athena read just the selected column.
Least-Effort Near Real-Time MySQL to Redshift Integration
Why is a scheduled AWS Glue JDBC ETL job not the least-effort near real-time choice?
A scheduled Glue job runs in batches, so it cannot continuously capture PLM transaction changes in near real time, and it requires writing and maintaining ETL logic, which is more development effort than an AWS DMS CDC task.
Does AWS DMS support Amazon Redshift as a CDC target from MySQL?
Yes. AWS DMS supports MySQL as a source and Amazon Redshift as a target, and a full load plus CDC task can apply ongoing changes to Redshift continuously.
How to Speed Up Redshift COPY from an S3 Data Lake?
Why is a single COPY command with a manifest faster than separate COPY commands?
Redshift can parallelize one COPY across all slices and read every manifest-listed S3 object in a single operation, avoiding repeated command startup and commit overhead.
Why not use an AWS Glue job to consolidate the data files first?
A Glue job adds cost and an intermediate copy step, while the manifest lets Redshift load the existing S3 files directly without extra services.
How to Enforce TLS 1.2 on an AWS Transfer Family Server?
Why doesn't installing an SSL certificate (option D) enforce TLS 1.2?
A certificate supplies the identity and key material for the endpoint, but it does not restrict which protocol versions the server accepts. Only the Transfer Family security policy sets the minimum TLS version.
Can security group rules restrict connections to TLS 1.2 or above?
No. Security groups filter traffic at Layers 3 and 4 using IPs, ports, and protocols such as TCP, so they cannot inspect or limit the TLS version negotiated inside a connection.
Which AWS Glue Feature Enables Incremental ETL Ingestion?
Why do AWS Glue triggers not satisfy the incremental processing requirement?
Triggers only start a crawler or job on a schedule or event; they do not remember which S3 objects were already processed, so each run would reprocess the entire dataset without job bookmarks.
Do Glue job bookmarks work with compressed files in Amazon S3?
Yes. Bookmark state is tracked per transformation regardless of file compression, so gzip or bzip2 objects already read are skipped and only new or changed files are ingested.
How Do You Achieve Exactly-Once Delivery in a Kinesis Data Streams Pipeline?
Why can't we stop duplicate records from entering Kinesis Data Streams in the first place?
A timed-out PutRecord may have succeeded, so the application must retry and Kinesis stores both copies. Duplicate ingestion is inherent to at-least-once delivery and cannot be prevented at the source.
Does Flink checkpointing in Amazon Managed Service for Apache Flink give exactly-once delivery here?
Checkpoints guarantee exactly-once state consistency inside the Flink job, but they cannot remove duplicates that PutRecord retries already wrote into the Kinesis stream before the job read them.
Prevent Unintentional S3 File Deletion
Why not use S3 Replication to prevent deletion?
Replication copies data but doesn't inherently block deletes unless specifically configured for delete markers, adding complexity and cost compared to simple versioning.
Does enabling versioning increase costs significantly?
Yes, storage costs increase as all versions are stored, but it is the most efficient operational method for preventing data loss from accidental deletions.
Least Overhead ETL to Redshift
Why isn't AWS DMS used for loading from S3?
AWS DMS is designed for migrating data between databases. While it has some S3 capabilities, Glue is the native, serverless choice for general ETL from S3 to Redshift.
Can I use Lambda for terabytes of data?
No, Lambda has strict time and memory limits (max 15 mins, 10GB RAM). It is unsuitable for processing terabytes of raw data.
Cost-Effective S3 Access from VPC-Enabled Lambda
Why is a VPC Gateway Endpoint preferred over an Interface Endpoint for S3?
Gateway Endpoints are free to create and manage, whereas Interface Endpoints incur hourly charges and per-GB data processing fees.
Does a VPC Gateway Endpoint support all AWS services?
No, Gateway Endpoints are currently only available for Amazon S3 and DynamoDB. Other services require Interface Endpoints.
AWS Glue Crawler Single Table Configuration
Why does compression type matter for Glue crawlers?
While Glue often handles common compressions, strict consistency in A ensures no ambiguity, especially for custom or less common codecs.
Does S3 prefix structure affect table creation?
Yes, inconsistent prefixes can lead Glue to treat objects as separate datasets or partitions, potentially resulting in multiple inferred tables if schema differs across paths.
Low-Latency Time Series Visualization with OpenSearch
Why is Amazon Athena too slow for real-time dashboards?
Athena queries S3 objects, which involves scanning and parsing files. Even with partitioning, it cannot match the sub-second response time of an indexed search engine like OpenSearch for frequent, small queries.
Can I use Amazon Managed Grafana with OpenSearch?
Yes, Amazon Managed Grafana integrates seamlessly with OpenSearch Service. However, the key factor for latency is the data store (OpenSearch), not the visualization tool itself.
Configuring AWS Glue Crawler for Daily Catalog Updates
Do Glue Crawlers require DPUs?
No. Glue Crawlers are serverless and scale automatically. DPUs are only allocated for provisioned Glue ETL jobs.
Why not use AmazonS3FullAccess?
It violates least-privilege security. The AWSGlueServiceRole provides the specific permissions needed for S3 access and Data Catalog updates.
Optimize EMR Costs for CPU-Bound Spark Jobs
Why not use memory-optimized instances for Spark?
Spark is memory-intensive, but only if memory usage is high. Here, memory is under 30%, so adding more memory is wasteful and costly.
Does increasing nodes help with CPU bottlenecks?
It might help performance, but it increases total cost. The question asks for the MOST cost-effective solution, which involves right-sizing the instance type first.
Amazon Redshift COPY Command for Optimal Throughput
Why not use multiple COPY commands for parallel loading?
A single COPY command is optimized by Redshift to distribute work across all nodes internally. Multiple commands can cause lock contention and management overhead.
Is INSERT ever faster than COPY in Redshift?
No. INSERT is a row-level operation and is significantly slower than the bulk-load capability of the COPY command, which is designed for high-throughput ingestion.
AWS Lake Formation FindMatches for Record Matching
Can I use Amazon Macie for record matching?
No. Macie is for security and PII discovery, not for business logic record linkage or deduplication.
Is FindMatches part of standard AWS Glue?
It is integrated with Glue ETL jobs but is a specific capability provided by AWS Lake Formation's ML features.
Athena Query Performance with AWS Glue Crawler Exclusions
Does AWS Glue crawler exclusion affect Amazon Athena?
No. Athena scans all files in the table location regardless of Glue crawler exclusion patterns.
Can I use SQL to ignore .json files in Athena?
You can filter rows via SQL, but Athena still reads the files, causing higher latency than relocating them.
Lambda S3 KMS Decryption Permissions
Does the S3 bucket policy need to allow KMS actions?
No, the S3 bucket policy only needs to allow s3:GetObject. The KMS policy must allow the Lambda role to perform kms:Decrypt.
What happens if I grant kms:Decrypt but not s3:GetObject?
The request will fail at the S3 layer with AccessDenied before it even attempts to contact KMS for decryption.
Optimizing AWS Glue for Millions of Small Files
Why not use Redshift COPY for small files?
Redshift COPY is optimized for large files. Millions of 1 KB files cause high overhead and poor performance during parsing and loading.
Does file grouping increase storage costs?
No, file grouping is a logical operation during ingestion. It does not create additional physical files in S3, so storage costs remain unchanged.
Diagnosing MWAA Workflow Failures with Apache Airflow Logs
Why not use Scheduler logs to diagnose a failed workflow?
Scheduler logs only show when and if DAGs were scheduled. They do not contain the runtime error messages or stack traces generated by the tasks themselves during execution.
What do DAGProcessing logs tell you in MWAA?
DAGProcessing logs reveal issues with parsing DAG files, such as syntax errors or missing imports, occurring before the workflow actually starts running.
AWS DMS vs Glue for Incremental Data Lake Sync
Why not use AWS DMS for CDC to S3?
DMS can replicate to S3, but managing incremental loads usually requires extra Lambda functions or Kinesis streams. Glue Job Bookmarks handle this natively.
Is a full daily load ever acceptable here?
With tables under 50 GB, full loads are possible, but 'incremental' requirements and 'operational efficiency' favor Glue's bookmarked incremental approach.
Ingesting Oracle to S3 Parquet with Least Effort
Why is AWS Glue bookmark incorrect for incremental ingestion?
Bookmarks track processed files to avoid duplicates on re-run, they do not detect changes in the source database like primary key updates.
Can AWS DMS write directly to S3 in Parquet?
Yes, DMS supports S3 as a target and can serialize data into Parquet format automatically.
AWS DataSync for On-Premises to S3 Transfer
Why not use AWS Direct Connect for data transfer?
Direct Connect is a networking service that provides dedicated connectivity. It does not include data synchronization, scheduling, or transfer optimization features required by the question.
Can AWS Glue be used for simple file transfers?
No, AWS Glue is an ETL service focused on data integration and transformation for analytics. It is not designed for routine, scheduled file synchronization between storage systems.
Optimize Redshift Spectrum Query Performance with Columnar Format and Partitioning
Why is Parquet better than CSV for Redshift Spectrum?
Parquet is a columnar format that allows Spectrum to skip reading irrelevant columns, drastically reducing I/O and improving query speed compared to row-based CSV.
Does partitioning by date help if I query random dates?
Yes, partitioning allows Spectrum to prune entire directories. If you query a specific date range, it only scans those partitions, avoiding a full table scan.
Create Empty Athena Table from Existing Schema
Why is option C incorrect for Athena?
Athena does not support the LIKE clause syntax for copying table schemas directly within the CREATE TABLE statement like some other RDBMS engines do.
Can I use INSERT INTO to create a table schema?
No, INSERT INTO requires the target table to already exist. You must use CREATE TABLE first.
Athena INSERT INTO SELECT for Data Subset
Why is CREATE TABLE AS SELECT not an option?
The question asks to create a table based on a subset, but all options use INSERT. This implies the table structure is already defined, and we are populating it.
Is Option C also correct?
Option C is valid SQL but less safe. Explicitly listing columns (Option A) ensures data goes to the right place even if the target table has extra columns.
Sharing Redshift Data Products with Lake Formation
Why can't I just create views in each account?
Views don't automatically handle cross-account sharing or central governance via Lake Formation without additional steps like Data Shares.
What is the role of the Redshift workgroup here?
Workgroups manage query execution resources, not data access permissions or catalog registration.
AWS Service for Cost-Effective SQL Server Migration
Why not use AWS DataSync for database migration?
DataSync moves files and objects, not database transactions. It cannot maintain referential integrity or provide the continuous replication needed for minimal downtime.
Is DMS expensive for monthly migrations?
No, DMS is pay-as-you-go. You only pay for the replication instance duration, making it cost-effective for infrequent or scheduled migrations compared to building custom ETL pipelines.
Amazon Redshift AUTO Distribution Style for Growing Tables
Why isn't EVEN distribution the best choice here?
EVEN distributes rows evenly but doesn't adapt to join patterns or growth dynamically like AUTO. AUTO minimizes maintenance by handling style changes automatically.
Can AUTO distribution change from ALL to KEY?
Yes, AUTO can start with ALL for small tables and switch to KEY or EVEN as data grows, optimizing performance without manual intervention.
Secure On-Premises to AWS Data Transfer without Internet
Why is a public subnet incorrect for this requirement?
Public subnets imply connectivity via an Internet Gateway, which routes traffic through the public internet. The question explicitly forbids using the public internet.
Is AWS Secrets Manager required for service accounts?
While not strictly the only way, it is the best practice for managing dynamic credentials. Hardcoded keys are insecure, and Secrets Manager provides encryption and rotation capabilities essential for production pipelines.
Least Effort to Monitor S3 Incomplete Uploads and Versions
Can S3 Inventory track incomplete multipart uploads?
S3 Inventory tracks object versions and sizes, but it does not natively report on incomplete multipart uploads. You would need additional processing logic to infer this state.
Is there any cost for using S3 Storage Lens?
S3 Storage Lens has a free tier for basic metrics. Advanced metrics may incur costs, but it remains significantly cheaper than building custom monitoring infrastructure.
Cost-Effective Serverless Data Processing for Small Files
Why not use EMR for data processing?
EMR requires provisioning a cluster, which incurs high startup costs and latency. For 5 KB files, the overhead outweighs the benefits, making Glue + Lambda far more cost-effective.
Is Lambda suitable for orchestrating workflows?
Yes, for simple event-driven triggers. While Step Functions handles complex state machines, Lambda is sufficient here to trigger Glue jobs upon S3 upload, keeping the architecture lightweight.
Orchestrating Multi-Region EFS Data Processing with Step Functions
Why is AWS DataSync considered higher effort here?
DataSync requires configuring tasks, schedules, and monitoring for large data transfers. It adds latency and cost compared to running lightweight Lambda functions locally.
Can Lambda access EFS in other regions via VPC Peering?
Yes, but it requires complex VPC peering setup, security group rules, and DNS configuration across regions, increasing operational overhead significantly.
Enabling Concurrency Scaling in Amazon Redshift WLM
Why can't I enable concurrency scaling globally for the whole cluster?
Concurrency scaling is controlled per WLM queue to allow selective routing of queries based on priority and type, optimizing cost and performance.
Does Redshift Serverless need concurrency scaling enabled?
No, Redshift Serverless automatically scales compute resources based on demand and does not support the traditional WLM-based concurrency scaling feature.
Masking and Securing PII in AWS Data Pipelines
Why isn't Amazon Macie the correct answer for masking PII?
Macie discovers and classifies PII but does not have a native feature to mask or redact the data in place. DataBrew is designed for the transformation/masking step.
Can I use Lambda instead of DataBrew for masking?
Yes, but Lambda requires custom coding and maintenance. The question specifies a 'low-maintenance' solution, making the managed visual tool DataBrew the better fit.
Automated PII Discovery in S3 with Amazon Macie
Why not use Lambda for PII scanning?
Lambda requires writing custom code to define PII patterns and maintain the logic, which violates the 'least manual intervention' constraint compared to Macie's automated ML approach.
Can CloudTrail detect PII content?
No, CloudTrail logs API activity (who did what), not the actual data payload inside S3 objects. It cannot inspect file contents for PII.
Create Empty Table Copy in Amazon Athena
Why not just CREATE TABLE like normal SQL?
In Athena, you typically need to define the schema explicitly if not using CTAS. Using CTAS with a false condition is a concise way to replicate the exact schema of an existing table instantly.
Does WHERE 1=0 work the same as WHERE FALSE?
Yes, both evaluate to false for every row, resulting in zero rows being selected. Both are valid methods to create an empty table copy via CTAS.
Troubleshooting Amazon Athena Queries for Partitioned S3 Data
Why not just delete and recreate the table?
Recreating loses configurations and doesn't fix the root cause if the path is wrong or partitions are desynced.
Does MSCK REPAIR TABLE work for all table types?
It primarily works for Hive-style partitioned tables stored in S3. It may not work for external tables with complex formats like Parquet without proper SerDe settings.
Which Athena Query Returns 10 Recent CloudTrail Errors Since 2024?
Why is option B wrong if it also uses ORDER BY TotalEvents DESC LIMIT 10?
B omits errorcode IS NOT NULL, so successful CloudTrail events can be counted alongside errors. Option A keeps the error-only filter while retaining the descending LIMIT 10.
Does option A return the 10 most recent CloudTrail errors by eventtime?
Not strictly: A orders by TotalEvents, so it returns the 10 highest-count error groups. No listed option orders by eventtime DESC, but A is the only one with both required filters and a descending limit.
Which AWS data warehouse handles spiky QuickSight direct queries with least overhead?
Why is Athena not the least-overhead choice for a central data warehouse?
Athena queries data in S3 but does not load it into a central data warehouse; performance also depends on Parquet layout, partitioning, and ongoing tuning, which adds operational work.
Does Redshift Serverless support QuickSight direct query for spiky workloads?
Yes. QuickSight can use direct query against Redshift Serverless, and the serverless warehouse automatically scales capacity for intermittent query spikes without manual provisioning.
Resolving Kinesis Data Streams Throttling from Hot Shards
Why isn't increasing shards the right answer for hot shards?
Increasing shards adds capacity but doesn't fix the underlying skew. If the partition key is still deterministic, new shards will also suffer from uneven loads.
What is a hot shard in Kinesis?
A hot shard is one that receives significantly more data than others, hitting its throughput limit and causing throttling while other shards remain underutilized.
How to Join DynamoDB, RDS, Redshift, and S3 Cost-Effectively?
Why is copying all data into Amazon S3 before querying not the most cost-effective choice?
Copying adds storage, data transfer, and ETL time before the one-time query, while Athena Federated Query can read DynamoDB, RDS, Redshift, and S3 in place.
Can Redshift Spectrum query DynamoDB and RDS directly?
No, Redshift Spectrum is primarily for querying S3 external tables from Redshift; it does not natively join DynamoDB and RDS without additional loading or connectors.
Which EMR Storage and Instance Choices Meet Cost and Reliability Needs?
Why is HDFS (A) not suitable as a persistent store for long-running EMR Spark jobs?
HDFS on EMR is ephemeral: data is lost when the cluster terminates, and long-running jobs can fill local disk. Amazon S3 decouples storage from compute and provides durable, scalable persistence.
Why choose Graviton instances (D) instead of x86 instances for EMR core and task nodes?
Graviton instances are ARM-based and AWS positions them as lower-cost alternatives to comparable x86 instances while maintaining performance for many Spark workloads.
Which Step Functions State Parallel Processes a Collection of Data Files?
Why is the Parallel state wrong if the requirement says "parallel process"?
Parallel state runs a fixed set of distinct branches you define once. It does not iterate over an array of files, so it cannot apply one transformation across an unknown number of data files.
When should the engineer use Distributed Map instead of Map?
Distributed Map is a mode of the Map state for very large collections or long-running child workflows, running iterations across multiple child executions. It is still the Map state, so the answer stays C.
How Do You Make Redshift Spectrum Queries on S3 the Fastest?
Why isn't gzip compression with 1–5 GB files the fastest option for Redshift Spectrum?
Gzip is not splittable for Spectrum workers, and 1–5 GB single objects limit scan parallelism; AWS favors splittable formats in roughly 100 MB–1 GB files.
Why does partitioning S3 data make Redshift Spectrum faster?
Partitioning on common query predicates lets Spectrum prune entire prefixes during planning, so it never lists or reads partitions the query does not need.
How do you stream CloudWatch Logs cross-account to Kinesis Data Streams?
Why must the Kinesis data stream be in the security account instead of production?
The destination stream must live where the logs are stored and analyzed—the security account—while production only sends records through its subscription filter and assumed role.
Why is a subscription filter in the security account wrong for option B?
CloudWatch Logs subscription filters must be created in the account that owns the log group—production—because that is where the logs are selected and sent to the cross-account Kinesis destination.
How to Run 30-Minute Windowed Streaming Analytics with Least Overhead?
Why can't AWS Lambda handle the 30-minute tumbling window?
Lambda has a 15-minute maximum invocation timeout and does not maintain durable state across invocations, so a 30-minute stateful aggregation is unreliable.
Why is option B wrong when it also uses Managed Service for Apache Flink?
Option B emphasizes duplicate handling and multiple aggregation types but does not explicitly deliver the required time-based 30-minute window; option D matches that requirement directly.
How to migrate EBS gp2 volumes to gp3 without downtime?
Why not snapshot the gp2 volume and create a new gp3 volume from it?
That works but adds snapshot, restore, attach, and validation steps. Elastic Volumes changes the existing volume type in place, which is the least-overhead option.
Does changing an EBS volume from gp2 to gp3 require detaching it from EC2?
No. Amazon EBS Elastic Volumes supports modifying the volume type while it remains attached, so you do not need to detach the volume or restart the instance.
Which AWS Services Implement a Data Mesh with Centralized Governance?
Why is AWS Glue DataBrew wrong for centralized governance?
DataBrew is a visual data-preparation service for cleaning and normalizing data; it does not provide the centralized access-control and governance layer that Lake Formation does.
Why are Aurora and Amazon RDS not the storage layer in this data mesh?
They are relational databases suited to transactional workloads, while a data mesh data lake needs scalable object storage such as Amazon S3 for diverse domain datasets.
Which Redshift System Table Records Query Optimizer Performance Alerts?
Why is STL_QUERY_METRICS not the right table for optimizer alerts?
STL_QUERY_METRICS returns per-query metric values such as rows and bytes, but it does not record optimizer-generated alert events; those are in STL_ALERT_EVENT_LOG.
Does STL_PLAN_INFO show optimizer warnings?
No, STL_PLAN_INFO provides execution-plan details, not the alert/event records that document optimizer-detected performance conditions.
How to Ingest CSV into S3 for Cost-Effective Athena Queries?
Why is JSON not the most cost-effective choice if Athena supports it?
JSON is row-oriented, so Athena can still scan more data for one- or two-column queries; Parquet's columnar layout reduces bytes scanned and query cost.
Does keeping the data as CSV affect Athena query cost?
Yes. CSV is row-based, so Athena reads whole rows even when analysts query only one or two columns, increasing data scanned and cost.
How to restrict S3 HR records by Region with Lake Formation?
Why not create a separate S3 bucket for each HR Region?
Separate buckets multiply administration and still require per-Region IAM policies; Lake Formation data filters centralize Region scoping over one S3 data lake.
Do Lake Formation data filters attach directly to IAM roles?
No, data filters are Lake Formation grant objects; grant each filter to the HR department principal/role rather than embedding it in the IAM role policy.
Which AWS service ingests third-party SaaS data into S3 for Redshift with least overhead?
Why is Amazon Kinesis wrong when the company needs to ingest data into S3?
Kinesis is a streaming platform: you must build and operate producers and streams yourself, and it offers no ready-made connectors for third-party SaaS applications, so it adds overhead.
Can AWS Glue Data Catalog move SaaS data into Amazon S3?
No. Glue Data Catalog only stores table and schema metadata for analytics engines; it does not ingest or transfer data, so it cannot satisfy this requirement.
How to centrally share and update Python code across many Lambda functions?
Why not store the shared Python scripts in S3 and reference them from environment variables?
Every function would still need its own environment variable and download logic, adding cold-start latency and S3 permissions without any central, versioned code artifact.
Do Lambda layer changes apply automatically to functions already using the layer?
No. Layer versions are immutable, so you publish a new version and repoint the functions (or reference $LATEST), which can be scripted via the Lambda API or IaC.
How to log S3 bucket writes to another bucket with least effort?
Why is an S3 Event Notifications rule with Lambda not the least-effort choice?
It requires custom Lambda code, IAM permissions, triggers, and ongoing maintenance, while CloudTrail data events provide managed delivery to the logs S3 bucket.
Do CloudTrail management events capture S3 PutObject writes?
No. S3 object-level actions such as PutObject are data events, so a trail must be configured for data events on the transactions bucket.
How Does AWS Glue Data Catalog Centralize Hive Metadata for EMR and Athena?
Why is a Hive metastore on an EMR cluster not the least-effort choice?
A Hive metastore on EMR is tied to cluster infrastructure and still needs migration and ongoing management, while EMR and Athena can both use the managed Glue Data Catalog.
Does Apache Ranger replace the AWS Glue Data Catalog as the metadata repository?
No. Ranger is for authorization, auditing, and policies in Hadoop environments; it does not provide Athena's central Hive-compatible table catalog.
Least-overhead row- and column-level access for a multi-engine S3 data lake?
Why can't S3 access policies enforce column-level or row-level access?
S3 bucket and IAM policies only grant or deny access to buckets, prefixes, and objects. They have no notion of columns or row filters, so they cannot satisfy a per-team row/column requirement.
Why is Apache Ranger on Amazon EMR not the least-overhead choice here?
Ranger requires you to run and maintain the Ranger admin server and EMR plugins, and it does not govern Athena or Redshift Spectrum queries. Lake Formation centralizes the same row/column policies across all three engines with no servers to manage.
Which AWS service cost-effectively orchestrates Glue crawler and ETL to S3?
Why is AWS Glue Studio not the answer for orchestrating the SQL Server crawler and ETL job?
Glue Studio is primarily a visual authoring environment for Glue jobs; orchestration of crawlers, triggers, and job dependencies is handled by Glue workflows.
When should I choose Step Functions or Amazon MWAA instead of Glue workflows?
Step Functions suits cross-service workflows with custom states, and MWAA suits complex Airflow DAGs; for a Glue crawler-to-job pipeline both add cost and effort.
How to Optimize Athena Queries on Partitioned S3 CSV Data?
Why is a randomized prefix on S3 keys wrong for the Athena CSV POC?
It targets S3 request-rate throughput, not Athena scan efficiency; it can also break the date-based partition path Athena relies on for pruning.
Why convert the flight metrics CSV to Parquet instead of JSON?
Parquet is columnar, so Athena reads only needed columns and predicate blocks; JSON still scans more data and lacks the same block-level pruning benefits.
Low-Latency IoT Data Ingestion with Kinesis and DynamoDB
Why not use Amazon S3 for storing sensor data?
S3 is an object store optimized for large-scale data transfer, not low-latency queries. It does not provide single-digit millisecond response times for individual records.
Does DynamoDB support nested JSON format?
Yes, DynamoDB is a NoSQL database that natively supports document-like structures, including nested JSON attributes, making it ideal for complex sensor data.
Lake Formation Data Filters for PII Access
Why can't I use IAM policies for column-level access?
Standard IAM policies control access to S3 buckets and keys but cannot parse or filter data inside those files. Lake Formation adds the capability to enforce row and column-level restrictions.
Is QuickSight suitable for securing raw data access?
No. QuickSight is for analytics and visualization. It does not govern access to the underlying raw data in S3 for general querying purposes like Athena does.
Amazon Redshift ALL Distribution Style for Small Tables
Why can't we use partition keys in Redshift?
Amazon Redshift does not support partitioning like other databases; it uses distribution keys for data placement and sort keys for I/O optimization.
When should I use KEY distribution instead of EVEN?
Use KEY distribution when joining large tables on common columns to keep related data together on the same node, reducing shuffle overhead.
Which S3 Encryption Option Lets Only Specific Employees Access the Keys?
Why can't an IAM policy restrict access to keys when using SSE-S3?
SSE-S3 uses Amazon S3 managed keys that AWS owns and rotates; they are never exposed, so there is no key resource an IAM policy could reference.
Why is SSE-C more effort than SSE-KMS here?
With SSE-C the company must supply the encryption key on every request and securely store, rotate, and deliver it, whereas SSE-KMS keeps the key in KMS and encrypts transparently.
Amazon Redshift Data API for Real-Time Queries
Why not use JDBC for real-time queries?
JDBC requires managing connection pools, driver updates, and network configuration, which increases operational overhead compared to the serverless Data API.
Does Redshift support WebSockets?
No, Amazon Redshift does not support native WebSocket connections for SQL queries; it relies on JDBC/ODBC or the Data API.
Securing AWS Glue Credentials with Secrets Manager
Why not use AWS Glue Job Parameters?
Job parameters are stored in plaintext in the job definition unless encrypted, and they lack the audit trails and rotation capabilities of Secrets Manager.
Is S3 a good place to store Glue credentials?
No. While possible, it requires manual encryption key management and complex bucket policies. Secrets Manager is designed specifically for this use case.
Amazon Redshift Serverless for Infrequent Analytics
Why isn't CloudFormation the best choice for least overhead?
CloudFormation automates deployment but you still manage the stack, errors, and updates. Redshift Serverless removes the compute management entirely.
Is Redshift Serverless cost-effective for monthly jobs?
Yes, it uses a pay-per-use model for DPUs, so you only pay when the job runs, avoiding costs for idle provisioned clusters.
Least-Effort Way to Count Distinct Customers from an .xls File in S3?
Why is Athena not the least-effort choice for a 2 GB .xls file in S3?
Athena does not natively read .xls; you must convert the file to a supported format and catalog it, adding operational steps compared with DataBrew.
Does AWS Glue DataBrew support .xls input and COUNT_DISTINCT?
Yes. DataBrew supports Excel files stored in Amazon S3 and provides aggregate recipe functions such as COUNT_DISTINCT for distinct customer counts.
How to stream Kinesis Data Streams to Redshift Serverless with least overhead?
Why is Kinesis Data Firehose not the least-overhead choice here?
Firehose delivers to Redshift only through S3 and COPY, adding buffering, extra storage, and pipeline management. Redshift streaming ingestion removes those intermediate steps.
Can Redshift query both streaming data and the previous day's data?
Yes. Streaming ingestion populates materialized views for near real-time data, while the same Redshift Serverless warehouse stores and queries historical tables for yesterday's data.
Which AWS solution detects changing schemas and loads data to S3 with least overhead?
Why is AWS Glue better than Amazon EMR for schema detection here?
Glue is serverless, so it infers changing schemas with crawlers and runs Apache Spark ETL without clusters to provision or tune, which directly meets the least-operational-overhead requirement.
Can AWS Lambda handle 1 TB of daily ETL within a 15-minute SLA?
No. Lambda has a 15-minute maximum runtime and limited packaging, making it impractical for a 1 TB daily pipeline with schema detection across SAP HANA, Kafka, and DynamoDB.
How to Dynamically Redact S3 PII for Multiple Applications?
Why not use S3 bucket policies with multiple redacted copies?
Bucket policies control access but do not redact PII inside objects, and multiple copies add storage, sync, and governance overhead that the least-overhead requirement rules out.
Does S3 Object Lambda redact PII per application?
Yes. It runs Lambda code on S3 GET requests, so you can identify the caller and return redacted data dynamically without modifying the stored dataset.
How to Separate Athena Query Access and Query History?
Why can't separate IAM roles per use case isolate Athena query history?
IAM roles control which AWS API actions a principal can call, but they do not partition Athena's workgroup-level query history or enforce per-workgroup query limits.
What do tags on an Athena workgroup enable in IAM policies?
Tags let an IAM policy scope Allow or Deny statements to specific workgroups, so users in one account can only run queries and view history for their own use case.
Adding Partitions to AWS Glue Catalog in Athena
Why is MSCK REPAIR TABLE wrong here?
MSCK REPAIR TABLE scans the entire S3 prefix to find missing partitions, which violates the requirement to avoid scanning all folders.
What is the difference between ADD and MODIFY PARTITION?
ADD creates a new partition entry in the catalog, while MODIFY updates properties of an existing partition. You cannot modify a non-existent partition.
Least Refactoring Airflow Migration to AWS
Why not use EC2 with a custom AMI for Airflow?
While EC2 allows you to run Airflow, it is not a managed orchestration service. Managing the Airflow backend (metadata DB, scheduler) yourself increases operational burden and doesn't align with the 'managed services' preference for least refactoring.
Can SQL tasks run in Amazon MWAA?
Yes. Amazon MWAA supports all standard Airflow operators and hooks, including SQL-based tasks. You can reuse your existing SQL queries within the DAGs without rewriting them into Python or other languages.
Optimize Athena Query Performance on ALB Logs
Why not convert logs to Parquet with Lambda?
While Parquet improves speed, creating a Lambda function for transformation adds significant operational overhead. The question prioritizes 'least effort' over maximum potential performance gains.
Does a Glue Crawler partition data automatically?
A crawler updates the Data Catalog with metadata. To truly benefit from partition pruning, you should configure the crawler to infer partitions based on S3 path patterns or use partition projection features.
How to Fix Kinesis WriteThroughputExceeded from Facility ID Hot Shards?
Why does facility ID as a Kinesis partition key cause hot shards?
Facilities with high IoT volume hash to a limited set of shards, while low-volume facilities leave others idle, triggering WriteThroughputExceeded on the busy shards.
Why not just increase shard count instead of changing the partition key?
Adding shards can mask capacity problems, but a skewed facility ID key still concentrates a busy facility's records and raises cost; a random key distributes load.
How Does Athena Show a Query Execution Plan With Computational Cost?
Why is plain EXPLAIN SELECT * FROM sales; not enough in Athena?
EXPLAIN only generates the execution plan without running the query, so it reports no per-operator computational cost or runtime statistics.
Why does EXPLAIN ANALYZE FROM sales; fail in Athena?
Athena requires EXPLAIN ANALYZE to prefix a full query, so the SELECT keyword is mandatory; without it the statement is a syntax error.
Most cost-effective AWS Glue execution class for daily non-urgent jobs?
Why is the STANDARD execution class not the most cost-effective choice for these daily Glue jobs?
STANDARD uses dedicated Glue capacity at standard pricing. Because the jobs need not start or finish at a specific time, FLEX's spare-capacity discount is cheaper.
Does AWS Glue support a Spot Instance type in job properties?
No. Glue job properties expose worker types and execution classes such as STANDARD and FLEX; FLEX provides spare-capacity savings without a Spot Instance setting.
How to Enforce Column-Level Athena Access with AWS Lake Formation?
Why can't an IAM identity-based policy on AWS Glue tables enforce column-level access for Athena?
IAM policies control which Glue API actions and resources a role can use; they do not express per-column grants inside a table, which Lake Formation column-level permissions provide.
Does AWS RAM resource sharing replace Lake Formation for this data lake?
No. AWS RAM shares resources such as Glue Data Catalog databases or tables, but it does not itself define fine-grained column-level permissions for Athena queries.
How to process only daily incremental S3 data in AWS Glue with least effort?
Why doesn't enabling Glue job metrics make the job read only new S3 data?
Glue job metrics publish run-level CloudWatch metrics; they do not persist which S3 objects or partitions were already processed, so the next run still scans all data.
Do Glue job bookmarks work with DynamicFrame reads from Amazon S3?
Yes. Job bookmarks are Glue's native state-tracking mechanism for S3-backed sources, so a DynamicFrame read can skip previously processed files without a custom DynamoDB table.
How to Stop Redshift Broadcasting a Store Location Table?
Why is KEY distribution not better for the store location table?
KEY distribution only helps when the chosen column is the frequent join key; the option selects the highest-cardinality column, and a small dimension can still need redistribution.
Does ALL distribution increase storage cost in Redshift?
Yes, it stores a full copy on every node, but for a small table updated once or twice every few years the write and storage overhead is negligible compared with repeated broadcasts.
Which Redshift SQL Regex Matches city_name Starting With San or El?
Why is option A wrong if it also uses San|El?
In A, $ is an end anchor and is placed before the group, so it does not assert that city_name starts with San or El. Redshift needs ^ at the beginning to enforce a prefix match.
Does the * in ^(San|El)* matter for this Redshift regex?
The exam treats the pattern as an anchored alternation for a San or El prefix; the trailing * is redundant for that intent, while ^ and | are what distinguish option B from A, C, and D.
How Can You Confirm PostgreSQL Is Causing DMS CDC Latency?
Why does CDCIncomingChanges not confirm PostgreSQL source latency?
CDCIncomingChanges reflects change events waiting to be applied, so it can rise from Redshift target bottlenecks; it does not measure time spent reading PostgreSQL transaction logs.
What does a high CDCLatencySource value mean in an AWS DMS CDC task?
It means changes are waiting between the PostgreSQL source and the DMS task, indicating source-side capture delay rather than Redshift apply latency.
How Should MWAA DAGs Orchestrate Daily and Archived S3 Transformations?
Why is Amazon Athena wrong for identifying the schema of the daily data?
Athena queries data per TB scanned and does not maintain a Data Catalog; AWS Glue crawlers update schemas in the catalog for DPU-hour pricing, which is cheaper for daily varied-format arrivals.
Why does Amazon EMR cover both the daily 300 GB and the one-time archive transformations?
Transient EMR clusters run Spark or Hive steps only for the job's duration and read directly from S3, so both workloads avoid a continuously running Redshift cluster or SageMaker training infrastructure.
How to enforce custom data quality validation rules in AWS Glue ETL?
Why are built-in AWS Glue Data Quality transforms not enough for specific validation rules?
Built-in transforms provide standard checks, but the scenario asks for business-specific rules; custom rulesets express those exact conditions with DQDL.
Do AWS Glue job bookmarks validate data accuracy and consistency?
No. Job bookmarks only track which data has already been processed during incremental runs; they do not evaluate row-level quality.
How Can Lambda Connect Privately to an RDS Instance with Least Overhead?
Why is option B not enough to let a default Lambda reach a private RDS instance?
Default Lambda runs outside the VPC, so it has no private IP or security group for RDS to reference. Option B also relies on an invalid Lambda-invocation rule rather than a source security group.
Does option C require Lambda to run in the exact same subnet as the RDS instance?
Option C is sufficient here, but any private subnet in the same VPC with routing to RDS also works. The essential step is attaching Lambda to a VPC subnet that can reach the private RDS endpoint.
How to Process Multi-Region EFS Data in One Region with Least Effort?
Why is AWS DataSync not the least-effort choice for this multi-Region EFS scenario?
DataSync can copy files into the team's Region, but it requires per-source transfer tasks and destination EFS management. EFS replication is the native managed feature for this pattern.
Can a Lambda function in one Region mount an EFS file system from another Region?
No. EFS mount targets are Regional, so cross-Region mounts are not supported; this is why option A's VPC peering approach fails.
← Back to DEA-C01 AWS Certified Data Engineer - Associate Study Guide