Solutions Architect Associate · 20% of the exam

Design Cost-Optimized Architectures: free practice questions

5 sample questions from our 50-question bank for this domain — answers and explanations included. These are the same scenario-based style as the real AWS exam.

1. A SaaS company runs a multi-tenant web application on Amazon EC2. They use a single large NAT gateway to allow instances in private subnets to download software updates from the internet. The company is experiencing unexpectedly high NAT gateway charges. A solutions architect reviews the architecture and discovers that a large portion of the traffic flows from EC2 instances to Amazon S3 and Amazon DynamoDB endpoints. What is the MOST cost-effective remediation?

  • A. Replace the NAT gateway with a NAT instance using a t3.small to reduce hourly charges
  • B. Enable VPC Flow Logs to identify and block unnecessary traffic at the NAT gateway
  • C. Create S3 and DynamoDB VPC gateway endpoints and update the route tables so that traffic to these services bypasses the NAT gateway✓ Correct
  • D. Move all EC2 instances to public subnets and assign Elastic IP addresses to eliminate the need for a NAT gateway
Explanation

VPC gateway endpoints for S3 and DynamoDB are free and route traffic through the AWS private network, completely bypassing the NAT gateway. Since NAT gateway charges include both hourly rates and per-GB data processing fees, removing S3 and DynamoDB traffic from the NAT gateway path directly reduces costs. A NAT instance on a t3.small reduces hourly costs but still incurs data processing charges for all traffic including S3/DynamoDB flows, and introduces management overhead without fully solving the problem. VPC Flow Logs are a monitoring tool; they identify traffic patterns but do not reduce data processing charges. Moving instances to public subnets is a significant security regression and violates best practices for multi-tenant production environments, making it an unacceptable cost-optimization approach.

2. A company operates a large-scale data lakehouse on AWS. Raw data lands in Amazon S3 and is queried by data analysts using Amazon Athena. The company is charged $8,000/month for Athena queries. A solutions architect reviews query logs and finds: (i) most queries scan entire large tables even though analysts typically filter on a 'transaction_date' column; (ii) data is stored as CSV files averaging 50 KB each, resulting in millions of small files; (iii) several recurring reports run the same complex query dozens of times daily with identical parameters. Which combination of changes will MOST effectively reduce Athena query costs? (Select TWO)

  • A. Convert CSV files to Apache Parquet format and partition the S3 data by transaction_date, so queries can use partition pruning and columnar projection to scan less data.✓ Correct
  • B. Enable Athena query result reuse (result caching) for recurring queries so that repeated identical queries return cached results without scanning S3.✓ Correct
  • C. Compress the CSV files using gzip to reduce the amount of data scanned per query.
  • D. Migrate the dataset from S3 to Amazon Redshift Spectrum so that query costs are based on compute time rather than data scanned.
  • E. Increase the size of the Athena workgroup's data scan limit to allow analysts to run larger queries without hitting limits.
  • F. Enable S3 Intelligent-Tiering on the data lake bucket to reduce storage costs, which will proportionally reduce Athena query charges.
Explanation

Correct – A: Athena charges $5 per TB of data scanned. Converting to Parquet (a columnar format) allows Athena to skip columns not needed by a query, dramatically reducing scanned bytes. Partitioning by transaction_date means queries filtering on that column only scan the relevant partitions rather than the entire table, further reducing scanned data. Merging small files also reduces per-request overhead. This typically reduces scan costs by 60–90%. Correct – B: Athena's query result reuse feature caches query results for a configurable period. When the same query with identical parameters runs again within that window, Athena returns the cached result instantly with no S3 scan and no charge. For recurring reports running dozens of times daily, this can eliminate a large portion of query charges. Wrong – C: While gzip compression reduces file size and thus scanned bytes, gzip is a splittable compression format only when using certain tools; more importantly, gzip-compressed CSV is still a row-based format — Athena still must read all columns for each row. It offers modest savings compared to columnar Parquet with partitioning. Wrong – D: Migrating to Redshift Spectrum still charges per TB scanned from S3 for external tables, and adds Redshift cluster costs. This does not inherently reduce query costs and adds significant complexity and expense. Wrong – E: Increasing scan limits is an administrative action that prevents queries from being blocked, but it does nothing to reduce the amount of data scanned or the resulting costs. Wrong – F: S3 Intelligent-Tiering affects storage costs only. Athena query charges are based on the amount of data scanned, not the storage class tier of the objects. Intelligent-Tiering has no effect on Athena billing.

3. A company runs a content management platform where authors upload and edit documents stored on Amazon EFS. The EFS file system is in the us-east-1 Region and is mounted by 10 EC2 instances. A cost review shows the company is paying significantly for EFS storage. Upon investigation, a solutions architect finds that 80% of stored files have not been accessed in over 90 days. The company needs the files to remain accessible with no application changes. Which is the MOST cost-effective solution?

  • A. Enable EFS Intelligent-Tiering, which automatically moves files that have not been accessed for 30 days to the EFS Infrequent Access (IA) storage class and moves them back on first access.
  • B. Create an AWS Lambda function to scan EFS monthly, copy infrequently accessed files to Amazon S3 Standard-IA, and delete them from EFS.
  • C. Enable an EFS lifecycle policy to transition files to EFS Infrequent Access after 90 days; files are automatically retrieved transparently when accessed.✓ Correct
  • D. Migrate all files from EFS to Amazon S3 with S3 Intelligent-Tiering and update the application to use the AWS SDK to access files instead of the mounted file system.
Explanation

Correct – C: EFS supports lifecycle management policies that automatically transition files unused for a configurable period (including 90 days) to the EFS Infrequent Access (IA) storage class. EFS IA costs approximately 85% less than EFS Standard. When a file is accessed, EFS transparently retrieves it back — no application changes are required, which meets the requirement. Wrong – A: This describes 'EFS Intelligent-Tiering,' which is indeed a valid EFS feature, but the description is slightly off — EFS Intelligent-Tiering transitions to IA after the configured inactivity period (not a fixed 30 days; the policy is configurable). More importantly, answer C is more precise and directly names the correct mechanism (lifecycle policy with 90-day threshold), matching the scenario's finding. Both A and C are close, but C is the more accurate and specific answer that aligns with configuring the threshold to match the 90-day access pattern identified. Wrong – B: Copying files to S3 and deleting from EFS would break the NFS-based mount that EC2 instances use. The application would lose access to files via the file system path, violating the 'no application changes' requirement. Wrong – D: Migrating to S3 and using the AWS SDK would require significant application changes to replace POSIX file system calls with S3 API calls, violating the 'no application changes' requirement.

4. A company hosts a static marketing website in Amazon S3 with static website hosting enabled. The website serves visitors globally and the company is paying significant S3 data transfer OUT charges each month. The content rarely changes. Which solution will MOST cost-effectively reduce these data transfer costs while maintaining global performance?

  • A. Enable S3 Transfer Acceleration on the bucket to reduce latency and transfer costs
  • B. Place an Amazon CloudFront distribution in front of the S3 bucket to cache and serve content from edge locations✓ Correct
  • C. Move the website to an EC2 instance in each AWS Region where visitors are located
  • D. Enable S3 Intelligent-Tiering to automatically move objects to lower-cost storage tiers
Explanation

CloudFront caches S3 content at edge locations worldwide, dramatically reducing data transfer OUT charges from S3 (CloudFront-to-origin requests are much cheaper than direct S3 egress) while improving global performance. S3 Transfer Acceleration speeds uploads to S3 but does not cache content or reduce outbound transfer costs — it is also more expensive per GB. Moving to EC2 in multiple regions would massively increase costs and operational complexity. S3 Intelligent-Tiering manages storage costs for objects with unpredictable access patterns but has no effect on data transfer OUT charges.

5. A company stores application logs in Amazon S3 and runs daily Amazon Athena queries against those logs. The Athena queries currently scan entire unpartitioned, CSV-formatted files and cost approximately $400/month. A solutions architect wants to significantly reduce query costs. Which combination of changes will MOST reduce Athena query costs? (Select TWO)

  • A. Convert log files from CSV to Apache Parquet columnar format✓ Correct
  • B. Enable S3 Transfer Acceleration on the log bucket to speed up data delivery
  • C. Partition the S3 data by date and update queries to filter on the partition key✓ Correct
  • D. Enable S3 Versioning to allow querying previous versions of log files
  • E. Move log files to S3 Glacier Instant Retrieval to reduce storage costs before querying
Explanation

Athena charges $5 per TB of data scanned. Converting CSV files to Parquet reduces data scanned because Parquet is a columnar format — Athena only reads the columns referenced in the query and compression ratios are much higher than CSV, typically reducing scanned data by 60–90%. Partitioning the data by date and filtering on the partition key allows Athena to skip entire S3 prefixes that don't match the query's date range, dramatically reducing the amount of data scanned. Together, these two changes are the standard AWS-recommended approach to minimizing Athena costs. S3 Transfer Acceleration speeds up uploads to S3 from the internet; it has no effect on Athena query performance or cost. S3 Versioning maintains multiple versions of objects; it does not reduce query costs and would actually increase storage costs. Moving data to Glacier Instant Retrieval is incompatible with direct Athena queries — Athena requires data in S3 standard storage classes and cannot query Glacier-archived objects directly.

45 more questions in this domain

Practice the full bank with instant grading, flashcards, and a timed mock exam.

Start practicing free