Practice for the AWS Certified Solutions Architect Professional (SAP-C02) exam with 17 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: A hospital chain in London uses an online central hub for its doctors and nurses. The application interacts with million. 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 hospital chain in London uses an online central hub for its doctors and nurses. The application interacts w…
- A media company in South Korea offers high-quality wildlife photos to its clients. Its photographers upload a…
- An analytics company plans to create a self-service solution that will provide a safe and cost-effective way…
- A manufacturing company is developing a system to monitor and analyze equipment performance using IoT devices…
- A company runs its internal tool on AWS. It is used for logistics and shipment tracking for the company's war…
- A company has an on-premises identity provider (IdP) used for authenticating employees. The Solutions Archite…
Answers and explanations
Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.
Q1. A hospital chain in London uses an online central hub for its doctors and nurses. The application interacts with millions of requests per day to fetch various medical data of their patients. The system is composed of a web tier, an applica…
Answer: C. Run the web and application tiers in stateless instances in an autoscaling group, using Amazon ElastiCache Serverless for tier synchronization and CloudWatch for monitoring. Run the database tier using RDS with read replicas, and Multi-AZ enabled.
Running stateless instances in an Auto Scaling group with Amazon ElastiCache Serverless and an RDS database with read replicas and Multi-AZ provides the best scalability and availability. A key exam cue is that stateful instances cannot scale dynamically without losing session data.
Q2. A media company in South Korea offers high-quality wildlife photos to its clients. Its photographers upload a large number of photographs to the company's Amazon S3 bucket. Currently, the company is using a dedicated group of on-premises s…
Answer: D. Create an Auto-scaling group of spot instance workers that scale according to the queue depth in SQS to process job messages. After the data has been processed, transfer your S3 objects to Amazon Glacier.
Using an Auto Scaling group of Spot Instances driven by Amazon SQS queue depth handles asynchronous photo processing at a low cost. Transitioning the processed Amazon S3 objects to Amazon S3 Glacier provides the required long-term archival storage.
Q3. An analytics company plans to create a self-service solution that will provide a safe and cost-effective way for data scientists to access Amazon SageMaker AI on the company's AWS accounts. The data scientists have limited knowledge of the…
Answer: D. Write an AWS CloudFormation template that contains the AWS::SageMaker::NotebookInstance resource type to launch a Jupyter notebook instance with a preconfigured KMS key. Create Mappings on the CloudFormation to map simpler parameter names for instance sizes such as Small, Medium, Large. Reference the URL of the notebook instance on the Outputs section of the template. Create a portfolio in AWS Service Catalog and upload the template to be shared with the IAM role of the data scientists.
AWS Service Catalog provides a secure self-service portal that allows data scientists to launch predefined Amazon SageMaker AI environments. This approach abstracts complex AWS configuration details while centrally enforcing mandatory security controls like KMS encryption.
Q4. A manufacturing company is developing a system to monitor and analyze equipment performance using IoT devices. They plan to use AWS IoT Core to collect data from 500 sensors across their production lines. The collected data must be enriche…
Answer: D. Use AWS IoT Core Basic Ingest for data collection. Configure an AWS IoT rule action to send data to Amazon Data Firehose. Set up Data Firehose with an AWS Lambda function for data enrichment and a buffer interval of 300 seconds.
AWS IoT Core Basic Ingest routes messages directly to the Rules Engine, minimizing messaging costs. Routing this data to Amazon Data Firehose provides a fully managed pipeline to batch the incoming sensor data, seamlessly run AWS Lambda transformations, and deliver it to Amazon S3.
Q5. A company runs its internal tool on AWS. It is used for logistics and shipment tracking for the company's warehouse. With the current system process, the application receives an order and it sends an email to the employees with the informa…
Answer: B. Store the order information on an Amazon DynamoDB table. Create an AWS Step Functions workflow that will be triggered for every new order. Have the workflow mark the order as "in progress" and print the shipping label for the package. Once the package is scanned and leaves the warehouse, trigger an AWS Lambda function to mark the order as "shipped" and complete the Step Functions workflow.
Step Functions provides the serverless orchestration needed to track the multi-step order workflow, while DynamoDB stores the order state. Polling SQS introduces unnecessary delays, and using EC2 with EFS violates the serverless and low-operational-overhead requirements.
Q6. A company has an on-premises identity provider (IdP) used for authenticating employees. The Solutions Architect has created a SAML 2.0 based federated identity solution that integrates with the company IdP. This solution is used to authent…
Answer: A,C,D. Ensure that the trust policy of the IAM roles created for the federated users or groups has set the SAML provider as principal. || Ensure that the appropriate IAM roles are mapped to company users and groups in the IdP's SAML assertions. || Ensure that the ARN of the SAML provider, the ARN of the created IAM role, and SAML assertion from the IdP are all included when the federated identity web portal calls the AWS STS AssumeRoleWithSAML API.
SAML federation requires mapping IdP groups to IAM roles, setting the SAML provider as the role principal, and passing all required ARNs to STS. Federated users do not need IAM policies directly attached, and VPC connectivity is irrelevant to browser-based SAML SSO.
Q7. An enterprise plans to create a new cloud deployment that will be used by several project teams. The network must be designed so that it allows autonomy for the administrators of the individual AWS accounts to modify their route tables fre…
Answer: C. Create a shared transit gateway. Have each spoke VPC connect to the transit gateway. In a central VPC, deploy a Gateway Load Balancer (GWLB) that fronts a fleet of firewall appliances with routing to the public internet.
AWS Transit Gateway connects thousands of VPCs without managing complex peering limitations. Deploying a Gateway Load Balancer in a central VPC lets you scale firewall appliances for centralized egress inspection. VPC peering fails here because strict connection limits prevent scaling to thousands of accounts.
Q8. An electric utility company deploys smart meters for its customers to easily track electricity usage. Each smart meter sends data every five minutes to an Amazon API Gateway, which is then processed by several AWS Lambda functions before b…
Answer: B,E. As more customers are sending data, adjust the Write Capacity Unit (WCU) of the DynamoDB table to be able to accommodate all the write requests being processed by the Lambda functions. || Process the data in batches to avoid reaching the write limits to the DynamoDB table. Group the requests from API Gateway by streaming the data into an Amazon Kinesis data stream.
DynamoDB throws a provisioned throughput error when write capacity is exceeded, so increasing WCUs fixes that bottleneck. To prevent Lambda concurrency limits, stream API Gateway payloads into Kinesis, allowing Lambda to process data in resilient batches.
Q9. An e-commerce company is having its annual sale event, where buyers will be able to purchase goods at a large discount on its e-commerce website. The e-commerce site will receive millions of visitors in a short period of time when the sale…
Answer: A. Combine an Elastic Load balancer in front of an Auto Scaling group of web servers with Amazon CloudFront for fast delivery. The web servers will first authenticate the users by logging into their social media accounts which are integrated in Amazon Cognito, then process the user's purchases and store them into an Amazon SQS queue using IAM Roles for Amazon EC2 Instances to gain permissions to the queue. Finally, the items from the queue are retrieved by a set of application servers and stored into an Amazon DynamoDB table.
CloudFront, a load balancer, and an Auto Scaling group handle sudden traffic spikes for the web tier. Decoupling the checkout process using an SQS queue buffers incoming requests, protecting the backend DynamoDB database during massive usage surges.
Q10. An online gambling site is hosted in two Elastic Compute Cloud (EC2) instances inside a Virtual Private Cloud (VPC) in the same Availability Zone (AZ) but in different subnets. The first EC2 instance is running a database and the other EC2…
Answer: C,E. Check and configure the network ACL to allow communication between the two subnets. Ensure that the security groups allow the application host to talk to the database on the right port and protocol. || Use AWS Config to track historical changes to the security configurations associated to your instances.
Configuring security groups and network ACLs properly permits traffic between the application and database subnets. AWS Config is the designated service for tracking historical resource configuration changes, whereas Systems Manager handles operational tasks.
Q11. A financial startup offers flexible short-term loans of up to $5,000 to its users. Their online portal is hosted in AWS which uses S3 for scalable storage, DynamoDB as a NoSQL database, and a fleet of EC2 instances to host their web server…
Answer: B. 1. Enable CloudTrail logging to required AWS resources. 2. Create an IAM user with read-only permissions to the required AWS resources. 3. Provide the access credential to the auditor.
AWS CloudTrail records API calls and account events for auditing. You grant external auditors access by creating an IAM user with read-only permissions to the CloudTrail S3 bucket. Option A fails because you manage audits directly without AWS intervention.
Q12. An online stock trading application is deployed to multiple Availability Zones in the us-east-1 Region (N. Virginia) and uses RDS to host the database. Considering the massive financial transactions that the trading application handles, th…
Answer: A,D. Take hourly database backups and export to an S3 bucket with transaction logs stored in S3 every 5 minutes. Set up a Cross-Region Replication (CRR) to another AWS Region. || Set up an AWS Backup plan for the Amazon RDS database with the continuous backups for point-in-time recovery (PITR) option enabled
AWS Backup with continuous backups enables point-in-time recovery to meet strict recovery objectives. Exporting hourly snapshots and transaction logs to S3 with cross-region replication provides offsite disaster recovery. Option B fails because Glacier retrieval times exceed the required time.
Q13. A company wants to improve data protection for the sensitive information stored on its AWS account – both in transit and at rest. Data protection in transit means that the data should be secured while it travels to and from Amazon S3. Data…
Answer: B. SSE-S3 provides strong multi-factor encryption in which each object is encrypted with a unique key. It also encrypts the key itself with a master key that it rotates regularly.
SSE-S3 provides strong encryption where Amazon S3 encrypts each object with a unique key and encrypts that key with a regularly rotated master key. A quick exam cue is that if you need to manage the keys yourself, you must choose SSE-KMS, not SSE-S3.
Q14. An international insurance company has clients all across the globe. The company has financial files that are stored in an Amazon S3 bucket which is behind CloudFront. At present, their clients can access their data by directly using an S3…
Answer: A,C. Create a new S3 bucket in US West (N. California) region and upload the files. Use S3 pre-signed URLs to ensure that only their client can access the files. Remove permission to use Amazon S3 URLs to read the files for anyone else. || Use CloudFront signed URLs to ensure that only their client can access the files. Create an origin access control (OAC) and give it permission to read the files in the bucket. Remove permission to use Amazon S3 URLs to read the files for anyone else.
Using S3 pre-signed URLs directly restricts file access, while using CloudFront signed URLs with an origin access control restricts content to CloudFront. Remember that signed cookies are better for multiple files, but do not secure direct S3 access without further restrictions.
Q15. A company has an Oracle Real Application Clusters (RAC) database on their on-premises data center which they want to migrate to AWS. The Chief Information Security Officer (CISO) instructed the solutions architects to automate the patch ma…
Answer: D. Migrate the database to a cluster of EBS-backed Amazon EC2 instances across multiple AZs. Automate the creation of EBS snapshots from EBS volumes of the EC2 instance by using Amazon Data Lifecycle Manager. Install the SSM Agent to the EC2 instance and automate the patch management process using AWS Systems Manager Patch Manager.
Since Amazon RDS does not support Oracle Real Application Clusters, you must deploy the database on Amazon EC2. You can then use AWS Systems Manager Patch Manager to automate operating system updates and Amazon Data Lifecycle Manager for scheduled EBS snapshots.
Q16. A company hosts its main web application on the AWS cloud which is composed of web servers and database servers. To ensure high availability, the web servers are deployed on an Auto Scaling group of Amazon EC2 instances across multiple Ava…
Answer: C. The canonical name record (CNAME) is changed from the primary database to standby database.
During an Amazon RDS Multi-AZ failover, AWS automatically updates the DNS canonical name record to point to the standby instance. Applications seamlessly reconnect using the same endpoint without needing manual IP address reconfiguration.
Q17. A company is building a new cryptocurrency trading platform that will be hosted on the AWS cloud. The solutions architect needs to set up the designed architecture in a single VPC. The solution should mitigate distributed denial-of-service…
Answer: A,C. Use AWS WAF to define customizable web security rules that control which traffic can access your web applications. || Use AWS Shield Advanced which provides enhanced DDoS attack detection and monitoring for application-layer traffic to your AWS resources.
AWS Shield Advanced provides managed DDoS protection and detailed attack notifications for network and transport layer threats. AWS WAF complements this by inspecting HTTP requests to block layer seven exploits like SQL injection.
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.