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 company recently developed a web application that processes customer behavioral data and stores the results in a Dynam. 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 company recently developed a web application that processes customer behavioral data and stores the results…
- A world-renowned logistics company runs its global enterprise e-commerce platform on the AWS cloud. The compa…
- The European Organization for Nuclear Research, also known as CERN, is a research organization that operates…
- A company runs its legacy web application in its on-premises data center. The solutions architect has been ta…
- A company has a multi-tier web application hosted in AWS. It leverages Amazon CloudFront to reliably scale an…
- A global finance company has multiple data centers around the globe. Due to the ever-growing data that the co…
Answers and explanations
Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.
Q1. A company recently developed a web application that processes customer behavioral data and stores the results in a DynamoDB table. The application is expected to receive a high usage load. To ensure that data is not lost when DynamoDB writ…
Answer: A. Use an SQS queue to decouple messages from the application and the database.
Using an SQS queue decouples the application from the database, allowing messages to buffer smoothly during traffic spikes. Increasing write-capacity units is a valid distractor for performance, but the prompt specifically asks for the most cost-effective load reduction strategy.
Q2. A world-renowned logistics company runs its global enterprise e-commerce platform on the AWS cloud. The company has built a multi-tier web application running in a VPC that uses an Elastic Load Balancer in front of both the web tier and th…
Answer: C. Set up AWS WAF and AWS Shield Advanced on all web endpoints. Launch AWS WAF rules against SQL injection and other common web exploits.
Deploying AWS WAF and Shield Advanced provides scalable, managed protection against sophisticated DDoS attacks, SQL injection, and HTTP floods. Blocking specific IP addresses manually via network ACLs is easily bypassed by distributed attackers and fails to address automated bot traffic.
Q3. The European Organization for Nuclear Research, also known as CERN, is a research organization that operates the largest particle accelerator in the world and generates terabytes of experimental data every day. A group of data scientists i…
Answer: A. Use On-Demand EC2 instances for both the master and core nodes and use Spot EC2 instances for the task nodes.
For transient EMR clusters, you should use On-Demand instances for master and core nodes to guarantee cluster stability and HDFS data persistence. Spot instances are perfect for optional task nodes, providing cheap compute capacity that can handle processing without risking the cluster.
Q4. A company runs its legacy web application in its on-premises data center. The solutions architect has been tasked to move the legacy web application in a virtual machine running inside the data center to the Amazon VPC. However, this appli…
Answer: B,D. An AWS Direct Connect link between the VPC and the network housing the internal services. || A network device in your data center that supports Border Gateway Protocol (BGP) and BGP MD5 authentication.
AWS Direct Connect establishes a dedicated, private network connection between your on-premises data center and your VPC. Setting this up requires a customer gateway device that supports Border Gateway Protocol to handle dynamic routing over the virtual interfaces.
Q5. A company has a multi-tier web application hosted in AWS. It leverages Amazon CloudFront to reliably scale and quickly serve requests from users around the world. After several months in operation, the company received user complaints of s…
Answer: C. Write a Lamda@Edge function that will normalize the query parameters by sorting them in alphabetical order and converting them into lower case. Deploy this function with the CloudFront distribution and set "viewer request" as the trigger to invoke the function.
A Lambda@Edge viewer request function can normalize query strings before CloudFront caches the object, which directly fixes the cache miss problem. CloudFront has no native case-insensitive caching setting, so origin-side proxies fail because the edge cache is already bypassed.
Q6. A global finance company has multiple data centers around the globe. Due to the ever-growing data that the company is storing, the solutions architect was instructed to set up a durable, cost-effective solution to archive sensitive data fr…
Answer: C. Set up a Tape Gateway to back up your data in Amazon S3 and archive it in Amazon Glacier using your existing tape-based processes.
Tape Gateway provides a virtual tape library interface, letting you use existing on-premises backup software to seamlessly archive data directly into Amazon S3 Glacier. File and Volume Gateways fail because they do not integrate with tape-based backup infrastructure.
Q7. A company has several financial applications hosted in AWS that uses Amazon S3 buckets to store static data. The Solutions Architect recently discovered that some employees store highly classified data into S3 buckets without proper approv…
Answer: A. Enable Amazon Macie on the S3 buckets to automatically classify the data and detect any objects with personally identifiable information (PII). Determine if the objects with PII have been recently accessed by tracking the GET API calls in AWS CloudTrail.
Amazon Macie uses machine learning to automatically discover and classify sensitive data like PII stored in Amazon S3. CloudTrail tracks the GET API calls to determine access. Inspector only assesses EC2 vulnerabilities, not S3 data.
Q8. A financial services company operates a multi-account AWS environment managed by AWS Control Tower. The security team must centralize the management of compliance and security findings across all accounts. The solution should implement pre…
Answer: C. Create a new member account in AWS Organizations. Enable AWS Security Hub and designate the account as the delegated administrator.
AWS Security Hub centrally aggregates compliance and security findings across organizational accounts using a delegated administrator. GuardDuty alone lacks comprehensive preventive controls. CloudTrail Lake only captures API events without native compliance mapping.
Q9. A medical firm uses an image analysis application that extracts data from multiple images. The input stream analyzes a batch of images and for each file, it writes the result data to an output stream of files. The number of input files per…
Answer: B. Store I/O files in S3 instead and use SQS to facilitate a group of hosts working in parallel. Include the hosts in an auto scaling group that scales accordingly to the length of your SQS queue.
Storing files in S3 decouples storage from compute, enabling an Auto Scaling group to process jobs from an SQS queue in parallel. EBS volumes cannot be easily shared across multiple instances like S3 objects.
Q10. A supermarket chain has a team that handles branded credit card transactions from major card schemes such as Mastercard, Visa, Discover, and AMEX. The company requested an external auditor to audit its AWS environment as part of the Paymen…
Answer: B. Create an IAM role in each AWS account that requires auditing, with a trust policy that lists the auditor's ARN as a principal. Assign this role read-only permissions to access necessary resources.
IAM roles with cross-account trust policies provide temporary secure access without sharing long-term credentials. Creating IAM users requires managing passwords and access keys, violating security best practices for external guest access.
Q11. A company runs its critical application in an Auto Scaling group of Amazon EC2 instances that uses ElastiCache with Append Only Files (AOF) enabled in multiple AWS regions. Recently, one of the regions experienced a power outage due to a s…
Answer: A. Set up a DNS active-active failover using latency based routing policy that resolves to an ELB. Configure the 'Evaluate Target Health' attribute to Yes.
Using Route 53 latency-based routing with active-active failover directs user traffic to the healthiest, lowest-latency regional endpoint. Setting Evaluate Target Health to Yes is required so Route 53 automatically removes unhealthy endpoints from consideration.
Q12. A company wants to improve the security of its cloud resources by ensuring that all running EC2 instances were launched from pre-approved AMIs only, which are set by the Security team. Their Development team has an agile CI/CD process whic…
Answer: D,E. Set up a scheduled Lambda function to search through the list of running EC2 instances within your VPC and determine if any of these are based on unauthorized AMIs. Afterward, publish a new message to an SNS topic to inform the Security team that this occurred and then terminate the EC2 instance. || Set up AWS Config rules to determine any launches of EC2 instances based on non-approved AMIs and then trigger an AWS Lambda function to automatically terminate the instance. Afterward, publish a message to an SNS topic to inform the Security team about the occurrence.
AWS Config rules continuously evaluate EC2 instances against approved AMIs, automatically triggering remediation without impacting deployments. A scheduled Lambda function acts as a valid detective control, terminating unauthorized instances and alerting security post-deployment.
Q13. A leading insurance firm operates across the AWS Global Infrastructure and has several new members in its development team. The solutions architect was instructed to provision access to certain IAM users who perform application development…
Answer: C. Attach the PowerUserAccess AWS managed policy to the IAM users.
The PowerUserAccess managed policy grants full access to AWS services except IAM and Organizations administration, matching the requirement perfectly. It specifically allows viewing organization details while adhering to least privilege, avoiding the excessive permissions of AdministratorAccess.
Q14. A startup currently runs a web application on an extra-large Amazon EC2 instance. The application allows users to upload and download various pdf files from a private Amazon S3 bucket using a pre-signed URL. The web application checks if t…
Answer: C. 1. Create an IAM role with a policy that allows listing and uploading of the objects in the S3 bucket. Launch the EC2 instance with the IAM role.
Assigning an IAM role to the EC2 instance allows the application to securely retrieve temporary credentials from the instance metadata. This avoids the security risks of embedding long-term access keys directly on the instance. Instance user data is strictly for launch scripts, not credential retrieval.
Q15. A company hosts an internal web portal on a fleet of Amazon EC2 instances that allows access to confidential files stored in an encrypted Amazon S3 bucket. Because the files contain sensitive information, the company does not want any file…
Answer: D. Create a VPC endpoint policy that restricts access to the specific Amazon S3 bucket. Create an IAM role that grants access to the S3 bucket and attach it to the application EC2 instances. Apply an Amazon S3 bucket policy that only allows access from the VPC endpoint and those using the IAM role.
Attaching an IAM role to the application instances grants necessary permissions to read the bucket securely. Applying a bucket policy that restricts access to the VPC endpoint ensures traffic does not traverse the public internet. IP address restrictions fail because source IPs change within a VPC.
Q16. A company recently patched a vulnerability in its web application hosted on AWS. The solutions architect was tasked to improve the security of the company's AWS resources as well as secure the web applications from common web vulnerabiliti…
Answer: D,E. Configure the Network Access Control Lists (ACLs) to only allow the required ports to your network. Identify and block common DDoS request patterns to effectively mitigate a DDoS attack by using AWS WAF. || Always add a security group that only allows certain ports and authorized servers and protects your origin servers by putting it behind a CloudFront distribution. Enable AWS Shield Advanced which provides enhanced DDoS attack detection and monitoring for application-layer traffic to your AWS resources.
Securing origin servers behind CloudFront and AWS Shield Advanced provides robust edge protection against distributed attacks. Configuring network access control lists and using AWS WAF rules further limits the attack surface. Simply oversizing compute resources is not a recommended mitigation tactic.
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.