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 logistics company is developing a new application that will be used for all its departments. All of the company's AWS . 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 logistics company is developing a new application that will be used for all its departments. All of the com…
- An insurance company collects contributions from its clients and invests in the stock market. Using the on-pr…
- An enterprise software company has just recently started using AWS as its cloud infrastructure. The company i…
- A company runs a popular photo-sharing site hosted on the AWS cloud. There are user complaints about the freq…
- A leading online media company runs a popular sports news website. The solutions architect has been tasked to…
- A company that manages hundreds of AWS client accounts has created a central logging service running on an Au…
Answers and explanations
Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.
Q1. A logistics company is developing a new application that will be used for all its departments. All of the company's AWS accounts are under OrganizationA in its AWS Organizations. A certain feature of the application must allow AWS resource…
Answer: C. The third-party account should create an External ID that will be given to OrganizationA. The logistics company should then create an IAM role with the required access and put the External ID in the IAM role's trust policy. The third-party account should use the IAM role's ARN and External ID when requesting access to OrganizationA's AWS resources.
Using an External ID in the IAM role trust policy securely delegates cross-account access, preventing unauthorized third-party accounts from assuming the role. Sharing static IAM user credentials violates security best practices, and standard STS assumption lacks the required contextual verification.
Q2. An insurance company collects contributions from its clients and invests in the stock market. Using the on-premises data center, the company ingests raw data feeds from the stock market, transforms it, and sends it to the internal Apache K…
Answer: B,C,F. Pull the messages from the on-premises Apache Kafka cluster by using a fleet of Amazon EC2 instances in an Auto Scaling Group. Send the data into an Amazon Kinesis Data Stream by using the Kinesis Producer Library. || To have consistent performance, request for an AWS Direct Connect connection from the on-premises data center to the AWS VPC. || Write an AWS Lambda function to process the Amazon Kinesis data stream and create a WebSocket API in Amazon API Gateway to invoke the function. Send the callback messages to connected clients by using the @connections command for the API.
Direct Connect provides the consistent, high-performance network required for critical production workloads. For the exam, remember that Kinesis Producer Library ingests data, while WebSocket APIs push real-time updates to clients, unlike AppSync GraphQL.
Q3. An enterprise software company has just recently started using AWS as its cloud infrastructure. The company is building an enterprise proprietary issue tracking system which would be accessed by its customers worldwide. Hence, the CTO care…
Answer: C. Use an AWS CloudFormation template to launch an Auto Scaling group of Amazon EC2 instances across multiple Availability Zones, which are all connected via an ELB to handle the load balancing. Leverage Amazon CloudFront for distributing your static content and an Amazon RDS instance with a Multi-AZ deployment configuration.
An Auto Scaling group across multiple Availability Zones with a load balancer provides the required scalability and high availability. For OLTP workloads, Multi-AZ RDS provides synchronous standby replication for fault tolerance, whereas Read Replicas only improve performance.
Q4. A company runs a popular photo-sharing site hosted on the AWS cloud. There are user complaints about the frequent downtime of the site considering the hefty price for using their service. The company is using a MySQL RDS instance to record…
Answer: B. Use Amazon Macie to automatically discover, classify, and protect personally identifiable information (PII) data in the Amazon S3 bucket. Use a lifecycle policy in S3 to move the old photos to Infrequent Access storage class after a month. Re-configure the existing database to use RDS Multi-AZ Deployments.
Amazon Macie is the correct service to automatically discover and protect sensitive personally identifiable information in S3. RDS Multi-AZ provides high availability, and an S3 lifecycle policy to Standard-IA optimizes storage costs for less frequently accessed images.
Q5. A leading online media company runs a popular sports news website. The solutions architect has been tasked to analyze each web visitor's clickstream data on the website to populate user analytics, which gives insights about the sequence of…
Answer: D. Push web clicks by session to Amazon Kinesis and analyze behavior using Amazon Kinesis workers.
Kinesis Data Streams ingests massive real-time clickstream data, allowing workers to analyze user behavior instantly. Remember for the exam that batch-oriented services like SQS or EMR cannot provide the immediate sub-second response needed to dynamically alter page layouts.
Q6. A company that manages hundreds of AWS client accounts has created a central logging service running on an Auto Scaling group of Amazon EC2 instances. The logging service receives logs from the client AWS accounts through the connectivity…
Answer: C,D. Ensure that the NACL associated with the logging service subnet allows communication to and from the NLB subnets. Ensure that the NACL associated with the NLB subnets allows communication to and from the EC2 instances subnets running the logging service. || Ensure that the security group attached to the EC2 instances hosting the logging service allows inbound traffic from the NLB's security group. Also, ensure that the security group attached to the NLB allows inbound traffic from the interface endpoint subnet.
For AWS PrivateLink, the Network Load Balancer masks the original client IP, meaning target security groups must allow traffic from the NLB. Network ACLs are stateless and must explicitly allow bidirectional traffic between the endpoint, NLB, and target subnets.
Q7. A company is using Microsoft Active Directory to manage all employee accounts and devices. The IT department instructed the solutions architect to implement a single sign-on feature to allow the employees to use their existing Windows acco…
Answer: D. Use AWS Directory Service to integrate your AWS resources with the existing Active Directory using trust relationship. Enable single sign-on using Managed Microsoft AD.
Managed Microsoft AD integrates with on-premises Active Directory by establishing forest trusts to extend single sign-on capabilities. While IAM Identity Center handles AWS access, AWS Directory Service is required to connect your existing domain. Cognito is for public apps.
Q8. A clothing company is using a proprietary e-commerce platform as their online shopping website. The e-commerce platform is hosted on a fleet of on-demand EC2 instances that are launched in a public subnet. Aside from acting as web servers…
Answer: B. In your VPC, launch a new web proxy server that only allows outbound access to the URLs provided by the proprietary e-commerce platform.
Proxy servers act as relays to filter outbound web requests based on specific URLs. This meets the requirement without breaking inbound connectivity. NAT gateways operate at the IP layer and cannot filter domain names or URLs.
Q9. A multinational software provider in the US hosts both of its development and test environments in the AWS cloud. The CTO decided to use separate AWS accounts in hosting each environment. The solutions architect has enabled Consolidated Bi…
Answer: D. First, create IAM users in the master account. Then in the Dev and Test accounts, generate cross-account roles that have full admin permissions while granting access for the master account.
Cross-account roles are created in the target accounts and specify the master account as a trusted entity. This delegates the necessary permissions without duplicating IAM users. Permissions cannot be inherited simply through consolidated billing.
Q10. A BPO company uses a multitiered, java-based content management system (CMS) hosted on an on-premises data center. The CMS has a JBoss Application server present in the application tier. The database tier consists of an Oracle database whi…
Answer: D. Provision EC2 servers for both your JBoss application and Oracle database, and then restore the database backups from an S3 bucket. Also provision an EBS volume containing static content obtained from Storage Gateway, and attach the volume to the JBoss EC2 server.
Provisioning Amazon EBS volumes directly from Storage Gateway snapshots provides the fastest recovery path and lowest RTO for static files. Avoid AWS Storage Gateway-VTL or Amazon Glacier for urgent disaster recovery scenarios, as their retrieval times are significantly slower.
Q11. A telecommunications company has several Amazon EC2 instances inside an AWS VPC. To improve data leak protection, the company wants to restrict the internet connectivity of its EC2 instances. The EC2 instances that are launched on a public…
Answer: C. You can use a forward web proxy server in your VPC and manage outbound access using URL-based rules. Default routes are also removed.
Deploying a forward web proxy allows you to filter outbound VPC traffic using specific URL domains. Security groups and network ACLs operate at the network layer and cannot inspect HTTP URLs, making them ineffective for domain-based content filtering.
Q12. A company uses a CloudFormation script to deploy an online voting application. The app is used for a Nature Photography Contest that accepts high-resolution images, stores them in an S3 bucket, and records a 100-character summary about the…
Answer: D. 1. Set the DeletionPolicy on the S3 resource declaration in the CloudFormation template to Retain. 2. Set the RDS resource declaration DeletionPolicy to Snapshot.
Setting the S3 DeletionPolicy to Retain preserves the bucket during stack deletion. Setting RDS to Snapshot backs up the database and stops compute costs when idle. Option B fails because retaining the RDS instance incurs unnecessary charges during the year.
Q13. A company has several NFS shares in its on-premises data center that contain millions of small log files totaling around 50TB in size. The files in these NFS shares need to be migrated to an Amazon S3 bucket. To start the migration process…
Answer: B. This is due to encryption overhead when copying files to the Snowball Edge device. Open multiple sessions to the Snowball Edge device and initiate parallel copy jobs to improve the overall copying throughput.
Copying millions of small files to Snowball Edge incurs heavy encryption overhead per file. Running multiple parallel copy jobs across terminal sessions drastically improves throughput. Option C fails because clustering increases storage and durability, not single-file transfer speeds.
Q14. An electronics and communications company in Japan has several VPCs in the AWS Cloud. It uses NAT instances to allow multiple EC2 instances from the private subnet to initiate connections to the internet while also restricting any requests…
Answer: C. Create a NAT gateway then specify its corresponding subnet and Elastic IP address. Update the route tables of the private subnet to point the Internet traffic to the NAT gateway.
A managed NAT gateway provides better availability and bandwidth automatically, requiring no administrative effort compared to a NAT instance. For the exam, remember that egress-only internet gateways are strictly for IPv6 traffic, not IPv4.
Q15. An organization is migrating its on-premises web application to AWS. The application comprises a Java-based backend and a NoSQL MongoDB database. Due to constraints, the application cannot be modified during the migration process, and the…
Answer: C. Deploy the Java application on Amazon EC2 instances within an Auto Scaling group spanning multiple Availability Zones. Migrate the MongoDB database to Amazon DocumentDB (with MongoDB compatibility) across multiple Availability Zones.
Deploying the Java application on EC2 instances in an Auto Scaling group and migrating the database to Amazon DocumentDB across multiple Availability Zones meets all requirements. DocumentDB is crucial here because it offers MongoDB compatibility without requiring application code changes.
Q16. A global enterprise web application is using a private S3 bucket, named MANILATECH-CONFIG, which has Server-Side Encryption with Amazon S3-Managed Encryption Keys (SSE-S3) to store its configuration files for different regions in North Ame…
Answer: A,E. The MNL-EUR.config and MNL-ASIA.config files will have a Version ID of null. || There would be two available versions for each of the MNL-NA.config, MNL-LA.config, and MNL-O.config files. The first Version ID of MNL-NA.config and MNL-LA.config has a value of null.
When S3 versioning is enabled, existing objects receive a version ID of null, while any new uploads or updates get a unique alphanumeric version ID. A practical exam cue is that versioning does not apply retroactively to unmodified objects.
Q17. A company has launched a web service in the cloud that analyzes tweets filtered by keywords. This service is hosted on a fleet of on-demand EC2 instances running in multiple Availability Zones with Auto Scaling, and are load-balanced by an…
Answer: D. The availability zone that is not receiving traffic was not associated with the application load balancer.
If an Availability Zone is not associated with the Application Load Balancer, instances in that zone will not receive any traffic. For the exam, remember that Auto Scaling groups can span multiple zones, but the load balancer must be explicitly configured to route traffic there.
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.