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

Practice for the AWS Certified Solutions Architect Professional (SAP-C02) exam with 18 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: A company has recently released a new mobile game. With the boost in marketing, the mobile game suddenly became viral. T. 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 has recently released a new mobile game. With the boost in marketing, the mobile game suddenly beca…
  • A company is using AWS Managed Microsoft AD to host the company AD in the AWS Cloud with a custom AD domain n…
  • A company is running thousands of virtualized Linux and Microsoft Windows servers on its on-premises data cen…
  • A company has several resources in its production environment that is shared among various business units of…
  • A company is planning to launch a mobile app for the Department of Transportation that allows government staf…
  • A company is planning to migrate its workload to the AWS cloud. The solutions architect is looking to reduce…

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 has recently released a new mobile game. With the boost in marketing, the mobile game suddenly became viral. The registration webpage is bombarded with user registrations from around the world. The registration website is hosted…

Answer: A. Create an Amazon S3 bucket to host the static contents. Set this bucket as the origin for an Amazon CloudFront distribution. Write a Lambda@Edge function to parse the User-Agent HTTP header and serve the appropriate contents based on the user's device type.

Using an S3 bucket with CloudFront and Lambda@Edge offloads static content delivery and dynamically routes traffic based on device headers. Caching based on the raw User-Agent header is an anti-pattern due to cache fragmentation, and Network Load Balancers cannot inspect Layer 7 headers.

Q2. A company is using AWS Managed Microsoft AD to host the company AD in the AWS Cloud with a custom AD domain name private.tutorialsdojo.com. A pair of domain controllers are launched with the default configuration inside the VPC. A VPC inte…

Answer: B,E. Create a forwarding rule inside the endpoint to forward any queries for private.tutorialsdojo.com to the IP addresses of the two domain controllers. || Create an outbound endpoint on the Amazon Route 53 console. Set the AmazonProvidedDNS as the DNS resolver for the VPC.

A Route 53 Outbound Resolver endpoint forwards DNS queries from your VPC to your Managed Microsoft AD domain controllers. Associate it with a forwarding rule so instances using AmazonProvidedDNS can seamlessly resolve both custom domains and VPC interface endpoints.

Q3. A company is running thousands of virtualized Linux and Microsoft Windows servers on its on-premises data center. The virtual servers host a range of Java and PHP applications that use MySQL and Oracle databases. There are also several dep…

Answer: B,E,F. Generate a migration readiness assessment report with the AWS Cloud Adoption Readiness Tool (CART) to highlight gaps in organizational skills and processes. || Use the AWS Transform discovery tool to gather information about the running virtual machines and running applications inside the servers. || Use AWS Transform migration assessment jobs and workspaces to estimate migration costs, generate right-sizing recommendations, produce reports, and support migration planning.

AWS Transform automates discovery and calculates migration cost estimates, while CART highlights organizational readiness gaps. On the exam, avoid confusing planning tools like these with execution services like Migration Hub or monitoring tools like X-Ray.

Q4. A company has several resources in its production environment that is shared among various business units of the company. A single business unit may have one or more AWS accounts that have resources in the production environment. There wer…

Answer: C. Use AWS Organizations to centrally manage all of your accounts. Group your accounts, which belong to a specific business unit, to individual Organization Units (OU). Create an IAM Role in the production account which has a policy that allows access to the EC2 instances including resource-level permission to terminate the instances owned by a particular business unit. Provide the cross-account access and the IAM policy to every member accounts of the OU.

Service Control Policies only set the maximum allowable permissions guardrails but never grant access. To actually allow specific business units to terminate their own resources, you must use IAM roles with resource-level permissions. This grants precise cross-account access.

Q5. A company is planning to launch a mobile app for the Department of Transportation that allows government staff to upload the latest photos of ongoing construction works such as bridges, roads culverts, and dams all over the country. The mo…

Answer: A. Set up an IAM role with permissions to list and write objects to the S3 bucket. Attach the IAM role to the EC2 instance which will enable it to retrieve temporary security credentials from the instance metadata and use that access to upload the photos to the S3 bucket.

Attaching an IAM role to an EC2 instance allows applications to retrieve temporary credentials securely from instance metadata. This avoids embedding static credentials. User data is merely a launch script and cannot provide rotating credentials.

Q6. A company is planning to migrate its workload to the AWS cloud. The solutions architect is looking to reduce the amount of time spent managing database instances from the on-premises data center by migrating to a managed relational databas…

Answer: A. Replatform

The replatform strategy involves making a few cloud optimizations to achieve benefits without changing the core architecture. Moving to managed services like RDS perfectly fits this lift, tinker, and shift approach. Rehosting requires no architectural changes.

Q7. There was a major incident that occurred in your company wherein the web application that you are supporting unexpectedly went down in the production environment. Upon investigation, it was found that a junior DevOps engineer terminated th…

Answer: A,E. Modify the associated IAM Role assigned to the developers by removing the policy that allows them to terminate EC2 instances in production. || Add tags to the EC2 instances in the production environment and assign the developers a role with a policy that denies terminating the instance based on the tag.

Removing EC2 termination permissions directly enforces least privilege, while applying resource tags combined with an explicit deny IAM policy scales securely across environments. Remember that security groups manage network traffic, MFA only gates authentication, and PowerUserAccess still grants broad destructive permissions.

Q8. A multinational healthcare company plans to launch a new MedTech information website. The solutions architect decided to use Amazon CloudFormation to deploy a three-tier web application that consists of a web tier, an application tier, and…

Answer: A. Create an IAM Role and assign the required permissions to read and write from the DynamoDB table. Have the instance profile property of the application instance reference the role.

Assigning an IAM role to an instance profile securely grants temporary credentials to applications running on EC2 instances. Never embed long-term IAM user access keys in user data or attempt to pass role ARNs through Systems Manager for authentication.

Q9. As part of the Corporate Social Responsibility of the tech company, the development team created an online learning system for a public university. The application architecture uses an Application Load Balancer in front of two On-Demand EC…

Answer: C. Generate a Public Certificate in ACM. Configure the Application Load Balancer to use the Public Certificate to handle HTTPS requests.

Public certificates provisioned in AWS Certificate Manager are free and integrate natively with Application Load Balancers to terminate HTTPS. Private certificates incur hourly operational costs for the certificate authority and public certificates cannot be exported to EC2 instances.

Q10. A company has built an application that allows painters to upload photos of original creations. The app allows users from North America and European regions to browse the galleries and order chosen artworks. The application is hosted on a…

Answer: A. Enable S3 Transfer Acceleration on the central S3 bucket. Use the s3-accelerate endpoint to upload the images.

Amazon S3 Transfer Acceleration leverages Amazon CloudFront edge locations to route uploads over an optimized AWS network path, significantly improving global transfer speeds. CloudFront POST limits and basic multipart uploads fail to address continental latency effectively.

Q11. An international humanitarian aid organization has a requirement to store 20 TB worth of scanned files for the relief operations, which can grow to a total of 50 TB of data. There is also a requirement to have a website with a search featu…

Answer: D. Set up a new S3 bucket with standard storage to store and serve the scanned files. Use Amazon OpenSearch Service for query processing and use Elastic Beanstalk to host the website across multiple availability zones.

Amazon S3 provides highly durable storage for the scanned files, while Amazon OpenSearch handles robust querying. Elastic Beanstalk simplifies web hosting across multiple availability zones. Option A fails because S3 alone lacks robust native search indexing capabilities.

Q12. A leading media company is building a collaborative news website that is expected to have over 5 million readers per month globally. Each article contains a cover image and has at least 200 words. Based on the trend of their other websites…

Answer: B,C. Use CloudFront as a Content Delivery Network to load the articles much faster anywhere in the globe. || Use Amazon RDS Multi-AZ deployments with Read Replicas. Use S3 to store the static data such as the cover images and other media.

CloudFront provides low-latency global content delivery for readers. Amazon RDS Multi-AZ with Read Replicas offers high availability and read scaling, while S3 stores static media. Option D fails because EBS volumes lack the durability and scalability of S3.

Q13. A company is implementing cloud best practices for its infrastructure. The Solutions Architect is using AWS CloudFormation templates for infrastructure-as-code of its two-tier web application. The application frontend is hosted on an Auto…

Answer: B. On the CloudFormation template, create an AWS Secrets Manager secret resource for the database password. Modify the application to retrieve the database password from Secrets Manager when it launches. Use a dynamic reference for the secret resource to be placed as the value of the MasterUserPassword property of the AWS::RDS::DBInstance resource.

AWS Secrets Manager secures the password and handles automatic rotation. Using a dynamic reference in CloudFormation safely passes the value to RDS without exposing it. Option C fails because passing plain text parameters is highly insecure.

Q14. A leading fast-food chain has recently adopted a hybrid cloud infrastructure that extends its data centers into AWS Cloud. The solutions architect has been tasked to allow on-premises users, who are already signed in using their corporate…

Answer: A. Authenticate using your on-premises SAML 2.0-compliant identity provider (IDP), retrieve temporary credentials using STS, and grant federated access to the AWS console via the AWS IAM Identity Center.

SAML 2.0 federation integrates on-premises identities with AWS via IAM Identity Center for console access. This avoids creating duplicate IAM users while maintaining secure single sign-on. Option B fails because AssumeRoleWithWebIdentity targets public identity providers, not corporate directories.

Q15. A company runs a cryptocurrency analytics website and uses a CloudFront distribution with a custom domain name (tutorialsdojo.com) to speed up the loading time of the site. Since the data being distributed is quite confidential, the manage…

Answer: D,E. Use an SSL/TLS certificate provided by AWS Certificate Manager (ACM). || Configure the CloudFront origin to add a Cache-Control max-age directive to your objects and specify the longest practical value for max-age.

Using an SSL certificate from ACM secures custom domain traffic over HTTPS, while configuring Cache-Control max-age directives increases the cache hit ratio for better performance. Remember that Lambda@Edge customizes content but does not directly increase the cache hit ratio.

Q16. A company stores several terabytes of data on an Amazon S3 bucket. The data will be made available to respective partner companies, however, the management doesn't want the partner companies to access the files directly from Amazon S3 URLs…

Answer: B. Create an Origin Access Control (OAC) and associate it with your CloudFront distribution. Change the permissions on your Amazon S3 bucket so that only the origin access control has read permission.

Creating an Origin Access Control and associating it with your CloudFront distribution ensures users can only access the S3 content via CloudFront. OAC is the modern replacement for Origin Access Identity and is the recommended best practice for securing S3 origins.

Q17. A company located on the west coast of North America plans to release a new online service for its customers. The company already created a new VPC in the us-west-1 region where they will launch the Amazon EC2 instances that will host the…

Answer: C. Create an Application Load Balancer (ALB) in the us-west-1 region that spans multiple Availability Zones (AZs) of the VPC. Create an Auto Scaling group that will deploy EC2 instances across the multiple AZs and place it behind the ALB. Set up the same configuration to the us-east-1 region VPC. Create record entries in Amazon Route 53 pointing to the ALBs with health check enabled and a failover routing policy.

Configuring a standalone Application Load Balancer and Auto Scaling group in each region with Route 53 failover routing properly establishes a passive backup. Remember that Auto Scaling groups and load balancers cannot span across multiple AWS regions.

Q18. A finance company plans to launch a new website to allow users to view tutorials that promote the proper usage of the mobile app. The website contains static media files that are stored on a private Amazon S3 bucket while the dynamic conte…

Answer: D,E. Use CloudFront to add a custom header to all origin requests. Using AWS WAF, create a web rule that denies all requests without this custom header. Associate the web ACL to the Application Load Balancer. || Create a special CloudFront user called an origin access control (OAC) and associate it with your distribution. Configure the S3 bucket policy to only access from the OAC.

Use CloudFront Origin Access Control to restrict direct public access to the private S3 bucket. For the Application Load Balancer, configure CloudFront to pass a custom secret header, and use AWS WAF to block any requests missing it.

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