Free AWS-SOLUTIONS-ARCHITECT-PROFESSIONAL Exam Braindumps
AWS Certified Solutions Architect - Professional SAP-C02 Questions 265–272 (page: 35)

Updated On: 9-Apr-2026

A company has an application that runs on Amazon EC2 instances in an Amazon EC2 Auto Scaling group. The company uses AWS CodePipeline to deploy the application. The instances that run in the Auto Scaling group are constantly changing because of scaling events.

When the company deploys new application code versions, the company installs the AWS CodeDeploy agent on any new target EC2 instances and associates the instances with the CodeDeploy deployment group. The application is set to go live within the next 24 hours.

What should a solutions architect recommend to automate the application deployment process with the LEAST amount of operational overhead?

  1. Configure Amazon EventBridge to invoke an AWS Lambda function when a new EC2 instance is launched into the Auto Scaling group. Code the Lambda function to associate the EC2 instances with the CodeDeploy deployment group.
  2. Write a script to suspend Amazon EC2 Auto Scaling operations before the deployment of new code. When the deployment is complete, create a new AMI and configure the Auto Scaling group's launch template to use the new AMI for new launches. Resume Amazon EC2 Auto Scaling operations.
  3. Create a new AWS CodeBuild project that creates a new AMI that contains the new code. Configure CodeBuild to update the Auto Scaling group’s launch template to the new AMI. Run an Amazon EC2 Auto Scaling instance refresh operation.
  4. Create a new AMI that has the CodeDeploy agent installed. Configure the Auto Scaling group’s launch template to use the new AMI. Associate the CodeDeploy deployment group with the Auto Scaling group instead of the EC2 instances.

Answer(s): D

Explanation:

D) Creating a new AMI that has the CodeDeploy agent installed and configuring the Auto Scaling group’s launch template to use the new AMI automates the process of ensuring that new EC2 instances are ready for deployment as soon as they are launched. Associating the CodeDeploy deployment group with the Auto Scaling group instead of individual EC2 instances eliminates the need to manually install the CodeDeploy agent and register instances each time new instances are launched. This solution minimizes operational overhead and ensures smooth deployments with minimal effort.



A company has a website that runs on four Amazon EC2 instances that are behind an Application Load Balancer (ALB). When the ALB detects that an EC2 instance is no longer available, an Amazon CloudWatch alarm enters the ALARM state. A member of the company's operations team then manually adds a new EC2 instance behind the ALB.

A solutions architect needs to design a highly available solution that automatically handles the replacement of EC2 instances. The company needs to minimize downtime during the switch to the new solution.

Which set of steps should the solutions architect take to meet these requirements?

  1. Delete the existing ALB. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Create a new ALB. Attach the Auto Scaling group to the new ALB. Attach the existing EC2 instances to the Auto Scaling group.
  2. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Attach the Auto Scaling group to the existing ALAttach the existing EC2 instances to the Auto Scaling group.
  3. Delete the existing ALB and the EC2 instances. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Create a new ALB. Attach the Auto Scaling group to the new ALB. Wait for the Auto Scaling group to launch the minimum number of EC2 instances.
  4. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Attach the Auto Scaling group to the existing ALB. Wait for the existing ALB to register the existing EC2 instances with the Auto Scaling group.

Answer(s): B

Explanation:

B) Creating an Auto Scaling group that is configured to handle the web application traffic and attaching the existing ALB and EC2 instances to the Auto Scaling group allows for seamless integration with minimal downtime. This solution ensures high availability by automatically replacing failed instances. By attaching the Auto Scaling group to the existing ALB, the company avoids the need to create a new ALB, thus minimizing downtime and the impact on the live environment.
This approach automates the process of replacing EC2 instances, improving fault tolerance and reducing manual intervention.



A company wants to optimize AWS data-transfer costs and compute costs across developer accounts within the company's organization in AWS Organizations. Developers can configure VPCs and launch Amazon EC2 instances in a single AWS Region. The EC2 instances retrieve approximately 1 TB of data each day from Amazon S3.

The developer activity leads to excessive monthly data-transfer charges and NAT gateway processing charges between EC2 instances and S3 buckets, along with high compute costs. The company wants to proactively enforce approved architectural patterns for any EC2 instance and VPC infrastructure that developers deploy within the AWS accounts. The company does not want this enforcement to negatively affect the speed at which the developers can perform their tasks.

Which solution will meet these requirements MOST cost-effectively?

  1. Create SCPs to prevent developers from launching unapproved EC2 instance types. Provide the developers with an AWS CloudFormation template to deploy an approved VPC configuration with S3 interface endpoints. Scope the developers' IAM permissions so that the developers can launch VPC resources only with CloudFormation.
  2. Create a daily forecasted budget with AWS Budgets to monitor EC2 compute costs and S3 data-transfer costs across the developer accounts. When the forecasted cost is 75% of the actual budget cost, send an alert to the developer teams. If the actual budget cost is 100%, create a budget action to terminate the developers' EC2 instances and VPC infrastructure.
  3. Create an AWS Service Catalog portfolio that users can use to create an approved VPC configuration with S3 gateway endpoints and approved EC2 instances. Share the portfolio with the developer accounts. Configure an AWS Service Catalog launch constraint to use an approved IAM role. Scope the developers' IAM permissions to allow access only to AWS Service Catalog.
  4. Create and deploy AWS Config rules to monitor the compliance of EC2 and VPC resources in the developer AWS accounts. If developers launch unapproved EC2 instances or if developers create VPCs without S3 gateway endpoints, perform a remediation action to terminate the unapproved resources.

Answer(s): C

Explanation:

C) Creating an AWS Service Catalog portfolio allows the company to provide developers with pre-approved VPC configurations and EC2 instance types, which can include S3 gateway endpoints to minimize data transfer costs. By sharing the portfolio with the developer accounts, the company ensures that only approved infrastructure is deployed. Configuring an AWS Service Catalog launch constraint to use an approved IAM role and scoping developer permissions to Service Catalog enables governance without negatively impacting developer productivity. This solution provides cost optimization and proactive architectural enforcement with minimal operational overhead, making it the most cost-effective option.



A company is expanding. The company plans to separate its resources into hundreds of different AWS accounts in multiple AWS Regions. A solutions architect must recommend a solution that denies access to any operations outside of specifically designated Regions.

Which solution will meet these requirements?

  1. Create IAM roles for each account. Create IAM policies with conditional allow permissions that include only approved Regions for the accounts.
  2. Create an organization in AWS Organizations. Create IAM users for each account. Attach a policy to each user to block access to Regions where an account cannot deploy infrastructure.
  3. Launch an AWS Control Tower landing zone. Create OUs and attach SCPs that deny access to run services outside of the approved Regions.
  4. Enable AWS Security Hub in each account. Create controls to specify the Regions where an account can deploy infrastructure.

Answer(s): C

Explanation:

C) Launching an AWS Control Tower landing zone allows the company to create organizational units (OUs) and attach Service Control Policies (SCPs) that explicitly deny access to services in regions outside of the approved list. SCPs are enforced across all accounts within the organization, ensuring compliance with the designated region restrictions. This solution provides centralized governance and control over multiple accounts and regions, making it the most effective and scalable approach to meet the company's requirements.



A company wants to refactor its retail ordering web application that currently has a load-balanced Amazon EC2 instance fleet for web hosting, database API services, and business logic. The company needs to create a decoupled, scalable architecture with a mechanism for retaining failed orders while also minimizing operational costs.

Which solution will meet these requirements?

  1. Use Amazon S3 for web hosting with Amazon API Gateway for database API services. Use Amazon Simple Queue Service (Amazon SQS) for order queuing. Use Amazon Elastic Container Service (Amazon ECS) for business logic with Amazon SQS long polling for retaining failed orders.
  2. Use AWS Elastic Beanstalk for web hosting with Amazon API Gateway for database API services. Use Amazon MQ for order queuing. Use AWS Step Functions for business logic with Amazon S3 Glacier Deep Archive for retaining failed orders.
  3. Use Amazon S3 for web hosting with AWS AppSync for database API services. Use Amazon Simple Queue Service (Amazon SQS) for order queuing. Use AWS Lambda for business logic with an Amazon SQS dead-letter queue for retaining failed orders.
  4. Use Amazon Lightsail for web hosting with AWS AppSync for database API services. Use Amazon Simple Email Service (Amazon SES) for order queuing. Use Amazon Elastic Kubernetes Service (Amazon EKS) for business logic with Amazon OpenSearch Service for retaining failed orders.

Answer(s): C

Explanation:

C) Using Amazon S3 for web hosting and AWS AppSync for database API services provides a highly scalable and cost-effective architecture. For order queuing, Amazon Simple Queue Service (SQS) ensures decoupling and scalability. Integrating AWS Lambda for business logic provides a serverless, scalable solution that minimizes operational overhead. Implementing an SQS dead-letter queue ensures that failed orders are retained for future processing or debugging. This solution effectively refactors the application to meet the requirements of scalability, decoupling, and operational cost minimization.



A company hosts a web application on AWS in the us-east-1 Region. The application servers are distributed across three Availability Zones behind an Application Load Balancer. The database is hosted in a MySQL database on an Amazon EC2 instance. A solutions architect needs to design a cross-Region data recovery solution using AWS services with an RTO of less than 5 minutes and an RPO of less than 1 minute. The solutions architect is deploying application servers in us-west-2, and has configured Amazon Route 53 health checks and DNS failover to us-west-2.

Which additional step should the solutions architect take?

  1. Migrate the database to an Amazon RDS for MySQL instance with a cross-Region read replica in us-west-2.
  2. Migrate the database to an Amazon Aurora global database with the primary in us-east-1 and the secondary in us-west-2.
  3. Migrate the database to an Amazon RDS for MySQL instance with a Multi-AZ deployment.
  4. Create a MySQL standby database on an Amazon EC2 instance in us-west-2.

Answer(s): B

Explanation:

B) Using an Amazon Aurora global database provides a highly available and low-latency cross-Region replication solution. With the primary database in us-east-1 and a secondary in us-west-2, Aurora ensures RPO of less than 1 minute due to asynchronous replication with low lag. In case of a failure in us-east-1, the secondary in us-west-2 can be promoted to primary within the required RTO of less than 5 minutes. This solution meets both the RTO and RPO requirements and ensures seamless cross-Region disaster recovery.



A company is using AWS Organizations to manage multiple accounts. Due to regulatory requirements, the company wants to restrict specific member accounts to certain AWS Regions, where they are permitted to deploy resources. The resources in the accounts must be tagged, enforced based on a group standard, and centrally managed with minimal configuration.

What should a solutions architect do to meet these requirements?

  1. Create an AWS Config rule in the specific member accounts to limit Regions and apply a tag policy.
  2. From the AWS Billing and Cost Management console, in the management account, disable Regions for the specific member accounts and apply a tag policy on the root.
  3. Associate the specific member accounts with the root. Apply a tag policy and an SCP using conditions to limit Regions.
  4. Associate the specific member accounts with a new OU. Apply a tag policy and an SCP using conditions to limit Regions.

Answer(s): D

Explanation:

D) Associating the specific member accounts with a new Organizational Unit (OU) and applying both a tag policy and a Service Control Policy (SCP) is the best approach. The SCP can be used to restrict access to certain AWS Regions, while the tag policy ensures consistent tagging across resources in those accounts. This solution allows for centralized management and enforces the required limitations on Region access and tagging, fulfilling the regulatory requirements with minimal configuration.



A company has an application that generates reports and stores them in an Amazon S3 bucket. When a user accesses their report, the application generates a signed URL to allow the user to download the report. The company's security team has discovered that the files are public and that anyone can download them without authentication. The company has suspended the generation of new reports until the problem is resolved.

Which set of actions will immediately remediate the security issue without impacting the application's normal workflow?

  1. Create an AWS Lambda function that applies a deny all policy for users who are not authenticated. Create a scheduled event to invoke the Lambda function.
  2. Review the AWS Trusted Advisor bucket permissions check and implement the recommended actions.
  3. Run a script that puts a private ACL on all of the objects in the bucket.
  4. Use the Block Public Access feature in Amazon S3 to set the IgnorePublicAcIs option to TRUE on the bucket.

Answer(s): D

Explanation:

D) Using the Block Public Access feature in Amazon S3 and setting the IgnorePublicAcls option to TRUE on the bucket will immediately prevent any public access to the objects in the bucket without disrupting the application's normal workflow. This will ensure that only authenticated and authorized users can access the reports via signed URLs, addressing the security issue while maintaining the application's functionality.



Viewing page 35 of 68
Viewing questions 273 - 280 out of 533 questions


Post your Comments and Discuss Amazon AWS-SOLUTIONS-ARCHITECT-PROFESSIONAL exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!