AWS Certified Solutions Architect Professional Practice Exam Questions and Answers – Part 16/16

Practice for the AWS Certified Solutions Architect Professional (SAP-C02) exam with 16 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: A supermarket chain is planning to launch an online shopping website to allow its loyal shoppers to buy their groceries . Follow @CertPunch and visit certpunch.com for more certification practice exams and study content.

Prefer hands-on? Take this round as an interactive practice test — answer every question, get instant feedback, and see your score: Start the AWS Certified Solutions Architect Professional (SAP-C02) practice test →

What you will practice

  • A supermarket chain is planning to launch an online shopping website to allow its loyal shoppers to buy their…
  • An Internet-of-Things (IoT) company is building a portal that stores data coming from its 20,000 gas sensors…
  • A travel and tourism company has multiple AWS accounts that are assigned to various departments. The marketin…
  • A law firm has decided to use Amazon S3 buckets for storage after an extensive Total Cost of Ownership (TCO)…
  • A company has performed a security audit on its existing application. It was determined that the application…
  • A company develops cloud-native applications and uses AWS CloudFormation templates for deploying applications…

Answers and explanations

Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.

Q1. A supermarket chain is planning to launch an online shopping website to allow its loyal shoppers to buy their groceries online. Since there are a lot of online shoppers at any time of the day, the website should be highly available 24/7 an…

Answer: D. Deploy the website across 3 Availability Zones with Auto Scaled EC2 instances behind an Application Load Balancer and a RDS configured with Multi-AZ Deployments.

Deploying Auto Scaled EC2 instances across three Availability Zones behind an Application Load Balancer ensures the web tier can survive failures. Pairing this with an RDS Multi-AZ deployment is critical because Read Replicas only scale reads and do not provide automatic failover.

Q2. An Internet-of-Things (IoT) company is building a portal that stores data coming from its 20,000 gas sensors. The gas sensors, which have unique IDs, are used to detect a gas leak or other emissions inside the oil facility. Every 15 minute…

Answer: C. Use one table every week, with a composite primary key which is the sensor ID as the partition key and the timestamp as the sort key.

Creating weekly DynamoDB tables using the sensor ID as the partition key and timestamp as the sort key enables efficient queries and simple expiration via table deletion. Using a single massive table for all historical data increases complexity, and concatenating keys removes your ability to perform range queries on the timestamp.

Q3. A travel and tourism company has multiple AWS accounts that are assigned to various departments. The marketing department stores the images and media files that are used in its marketing campaigns on an encrypted Amazon S3 bucket in its AW…

Answer: B,D,F. Update the custom AWS KMS key policy in the Marketing account to include decrypt permission for the mgmt_reviewer IAM role. || Add an Amazon S3 bucket policy that includes read permission. Ensure that the Principal is set to the Management team's AWS account ID. || Ensure that the mgmt_reviewer IAM role policy includes read permissions to the Amazon S3 bucket and a decrypt permission to the custom AWS KSM key.

Cross-account access to an encrypted bucket requires granting permissions in both the resource and identity tiers. You must update the KMS key policy and S3 bucket policy in the marketing account, and ensure the management role has the necessary read and decrypt permissions in its IAM policy.

Q4. A law firm has decided to use Amazon S3 buckets for storage after an extensive Total Cost of Ownership (TCO) analysis comparing S3 versus acquiring more storage for its on-premises hardware. The attorneys, paralegals, clerks, and other emp…

Answer: B,C. Configure an IAM Policy that restricts access only to the user-specific folders in the Amazon S3 Bucket. || Set up a federation proxy or a custom identity provider and use AWS Security Token Service to generate temporary tokens. Use an IAM Role to enable access to AWS services.

Setting up an identity provider with AWS STS allows users to federate their existing Active Directory credentials using IAM roles for access. To restrict access to specific prefixes, attach an IAM policy using variables to lock each user to their designated folder.

Q5. A company has performed a security audit on its existing application. It was determined that the application retrieves Amazon RDS for MySQL credentials from an encrypted file in an Amazon S3 bucket. To improve the security of the applicati…

Answer: H. Use AWS Secrets Manager, create a secret resource and generate a secure database password. Use Secrets Manager's managed rotation to automatically rotate the database password every 90 days. On AWS CloudFormation, specify the AutomaticallyAfterDays property in RotationRules to set the rotation schedule to 90 days.

AWS Secrets Manager natively handles random password generation and automated RDS credential rotation with minimal overhead using CloudFormation. A strong distractor uses custom Lambda functions for rotation, but that introduces unnecessary operational complexity when native managed rotation exists.

Q6. A company develops cloud-native applications and uses AWS CloudFormation templates for deploying applications in AWS. The application artifacts and templates are stored in an Amazon S3 bucket with versioning enabled. The developers use Ama…

Answer: H. Create an AWS CodeBuild job to run tests and security scans on the generated artifacts. Create an Amazon EventBridge rule that will send Amazon SNS alerts when unit testing fails. Create AWS Cloud Development Kit (AWS CDK) constructs with a manifest file to turn on/off features of the AWS CDK app. Add a manual approval stage on the pipeline for the Lead Developer's approval prior to production deployment.

CodeBuild easily handles automated testing and security scans, while native CodePipeline manual approvals satisfy the lead developer requirement. For dynamic feature toggles, the AWS Cloud Development Kit allows conditional deployments, making it superior to custom Lambda logic.

Q7. A startup is developing a health-related mobile app for iOS and Android. The co-founder developed a sleep-tracking app that collects user biometric data and stores it in an Amazon DynamoDB table configured with on-demand capacity mode. Eve…

Answer: C,E. Avail a reserved capacity for provisioned throughput for DynamoDB. || Set up a scheduled job to drop the DynamoDB table for the previous day that contains the biometric data after it is successfully stored in the S3 bucket. Create another DynamoDB table for the day and perform the deletion and creation process everyday.

Purchasing reserved capacity provides significant savings for predictable workloads, while dropping daily tables after successful S3 aggregation minimizes ongoing storage costs. Introducing ElastiCache or shifting to RDS would drastically increase operational overhead and monthly billing.

Q8. A company hosts a serverless application on AWS using Amazon API Gateway and AWS Lambda with Amazon DynamoDB as the backend database. The application has a feature that allows users to create posts and reply to comments based on different…

Answer: G. Leverage AWS AppSync by building GraphQL APIs and using Websockets to deliver comments in real-time.

AWS AppSync leverages GraphQL and WebSocket protocols to efficiently push real-time data updates to subscribed clients. Using short polling via API Gateway increases latency and unnecessarily drives up Lambda invocation costs, making it a poor choice.

Q9. A company runs a mission-critical application on a fixed set of Amazon EC2 instances behind an Application Load Balancer. The application responds to user requests by querying a 120GB dataset. The application requires high throughput and l…

Answer: A. Create an Amazon EFS volume and mount it across all the EC2 instances. Use the Provisioned Throughput mode on the EFS volume to ensure that the application can reach the required IOPS.

Creating an Amazon EFS file system using Provisioned Throughput provides a shared file system that meets performance requirements and reduces costs by eliminating duplicate EBS volumes. Max I/O performance mode is outdated and does not guarantee specific throughput independent of storage size.

Q10. A media company recently launched a web service that allows users to upload and share short videos. Currently, the web servers are hosted on an Auto Scaling group of Amazon EC2 instances in which the videos are processed and stored in the…

Answer: B. Create an Amazon ECS Fargate cluster and use containers to host the web application. Create an Auto Scaling group of Amazon EC2 Spot instances to process the SQS queue. Use Amazon Rekognition to analyze and categorize the videos instead of the third-party software. Store the videos and static contents on Amazon S3 buckets.

Using ECS Fargate for the web tier and Spot Instances for queue processing minimizes operational overhead and reduces costs. S3 provides durable storage for media files, while Amazon Rekognition completely removes the third-party software dependency for video analysis.

Q11. A leading e-commerce company plans to launch a donation website for all the victims of the recent super typhoon in South East Asia for its Corporate and Social Responsibility program. The company will advertise its program on TV and on soc…

Answer: D. Amazon DynamoDB with a provisioned write throughput. Use an SQS queue to buffer the large incoming traffic to your Auto Scaled EC2 instances, which processes and writes the data to DynamoDB.

Using an SQS queue acts as a buffer to decouple the write operations, protecting the DynamoDB database from being overwhelmed by sudden traffic spikes. For the exam, always pair SQS with Auto Scaling when dealing with unpredictable, write-intensive workloads to ensure system stability.

Q12. A privately funded aerospace and sub-orbital spaceflight services company hosts its rapidly evolving applications in AWS. For its deployment process, the company is using CloudFormation templates which are regularly updated to map the late…

Answer: C. Use CloudFormation with Systems Manager Parameter Store to retrieve the latest AMI IDs for your template. Whenever you decide to update the EC2 instances, call the update-stack API in CloudFormation in your CloudFormation template.

Storing the latest AMI IDs in Systems Manager Parameter Store allows CloudFormation to dynamically retrieve the public parameters during stack updates. This avoids manual template edits and eliminates the need for AWS Service Catalog, which is used for governance, not automation.

Q13. A research company hosts its internal applications inside AWS VPCs in multiple AWS Accounts. The internal applications are accessed securely from inside the company network using an AWS Site-to-Site VPN connection. VPC peering connections…

Answer: B. Install the AWS Client VPN on each employee workstation. Create a Client VPN endpoint in the same VPC region in the main AWS account. Update the VPC route configurations to allow communication with the internal applications.

Installing the client on employee workstations and creating a single Client VPN endpoint in the main account leverages existing VPC peering routes for access. Client VPN is endpoint-based, so deploying it in a data center or across every account adds unnecessary cost and complexity.

Q14. A company has data centers in Europe, Asia, and North America. Each data center has a 10Gbps AWS Direct Connect connection to AWS, and the company uses a custom VPN to encrypt traffic between its data center network and AWS. In total, the…

Answer: B. Leverage AWS Transform MGN for the migration. Install the AWS Replication agent on each physical machine to start the replication to the AWS Cloud. Once syncing is completed, launch test instances and initiate cutover to the AWS Cloud.

AWS Application Migration Service, formerly known as MGN, is designed to lift and shift physical servers using an agent for continuous block-level replication. Manual VM import processes are not scalable for large migrations, and AWS Outposts is used for extending infrastructure on-premises, not migrating to the cloud.

Q15. A big fast-food chain in Asia is planning to implement a location-based alert on their existing mobile app. If a user is in proximity to one of its restaurants, an alert will be shown on the user's mobile phone. The notification needs to h…

Answer: B. The mobile app will send device location to an SQS endpoint. Set up an API that utilizes an Application Load Balancer and an Auto Scaling group of EC2 instances, which will retrieve the relevant offers from DynamoDB. Use Amazon SNS to send offers to the mobile app.

Amazon SNS provides native mobile push notifications directly to consumer devices, unlike Amazon SES which only handles email. While using SQS to buffer location updates is an older EC2-based design pattern, it successfully pairs SNS for the required mobile push delivery.

Q16. An adventure company runs a PostgreSQL database that is used to store events from its monitoring application on its on-premises data center. The database is unable to scale enough to handle frequent write events that need to be ingested in…

Answer: F,H. Create an Amazon OpenSearch Service domain to reliably ingest the events. Leverage the OpenSearch Dashboards tool to create near-real-time dashboards and visualizations. || Ingest the events using Amazon Data Firehose. Write a Lambda function to process and transform the buffered events.

Amazon Data Firehose provides a fully managed, auto-scaling buffer for streaming data and uses Lambda for transformations. OpenSearch Service natively handles semi-structured JSON data and offers OpenSearch Dashboards for visualization.

More AWS Certified Solutions Architect Professional (SAP-C02) drills and other practice exams are on @CertPunch. New rounds drop every few days at certpunch.com.

Scroll to Top