A live-events company is designing a scaling solution for its ticket application on AWS. The
application has high peaks of utilization during sale events. Each sale event is a one-time
event that is scheduled.
The application runs on Amazon EC2 instances that are in an Auto Scaling group. The
application uses PostgreSOL for the database layer.
The company needs a scaling solution to maximize availability during the sale events.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: DUse a scheduled scaling policy for the EC2 instances. Host the database on an Amazon
Aurora PostgreSQL Multi-AZ DB duster. Create an Amazon EventBridge rule that invokes an AWS Lambda function to create a larger Aurora Replica before a sale event. Fail over to
the larger Aurora Replica. Create another EventBridge rule that invokes another Lambda
function to scale down the Aurora Replica after the sale event.
Explanation
Explanation:
The correct answer is D. Use a scheduled scaling policy for the EC2 instances. Host the
database on an Amazon Aurora PostgreSQL Multi-AZ DB cluster. Create an Amazon
EventBridge rule that invokes an AWS Lambda function to create a larger Aurora Replica
before a sale event. Fail over to the larger Aurora Replica. Create another EventBridge rule
that invokes another Lambda function to scale down the Aurora Replica after the sale
event.
This solution will meet the requirements of maximizing availability during the sale events. A
scheduled scaling policy for the EC2 instances will allow the application to scale up and
down according to the predefined schedule of the sale events. Hosting the database on an
Amazon Aurora PostgreSQL Multi-AZ DB cluster will provide high availability and durability,
as well as compatibility with PostgreSQL. Creating an Amazon EventBridge rule that
invokes an AWS Lambda function to create a larger Aurora Replica before a sale event will
ensure that the database can handle the increased read traffic during the peak periods.
Failing over to the larger Aurora Replica will make it the primary instance, which will also
improve the write performance of the database. Creating another EventBridge rule that
invokes another Lambda function to scale down the Aurora Replica after the sale event will
reduce the cost and resources of the database.
Question 82Choose 1
A company wants to migrate its on-premises application to AWS. The database for the
application stores structured product data and temporary user session data. The company
needs to decouple the product data from the user session data. The company also needs
to implement replication in another AWS Region for disaster recovery.
Which solution will meet these requirements with the HIGHEST performance?
Show answerHide answer
Correct answer: BCreate an Amazon RDS DB instance to host the product data. Configure a read replica for the DB instance in another Region. Create a global datastore in Amazon ElastiCache
for Memcached to host the user session data.
Question 83Choose 1
A company has AWS accounts that are in an organization in AWS rganizations. The
company wants to track Amazon EC2 usage as a metric.
The company's architecture team must receive a daily alert if the EC2 usage is more than
10% higher than the average EC2 usage from the last 30 days.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BConfigure an alert to notify the architecture team if the usage threshold is met. Configure
AWS Cost Anomaly Detection in the organization's management account. Configure a
monitor type of AWS Service. Apply a filter of Amazon EC2. Configure an alert subscription
to notify the architecture team if the usage is 10% more than the average usage for the last
30 days.
Question 84Choose 2
A company wants to establish a dedicated connection between its on-premises
infrastructure and AWS. The company is setting up a 1 Gbps AWS Direct Connect connection to its account VPC. The architecture includes a transit gateway and a Direct
Connect gateway to connect multiple VPCs and the on-premises infrastructure.
The company must connect to VPC resources over a transit VIF by using the Direct
Connect connection.
Which combination of steps will meet these requirements? (Select TWO.)
Show answerHide answer
Correct answer: B, CAdvertise the on-premises network prefixes over the transit VIF.Adverse the VPC prefixes from the Direct Connect gateway to the on-premises network
over the transit VIF.
Explanation
Explanation:
To connect VPC resources over a transit Virtual Interface (VIF) using a Direct Connect
connection, the company should advertise the on-premises network prefixes over the
transit VIF and advertise the VPC prefixes from the Direct Connect gateway to the onpremises
network over the same VIF. This configuration ensures seamless connectivity
between the on-premises infrastructure and the AWS VPCs through the transit gateway,
facilitating efficient and secure communication across the network.
Question 85Choose 3
A company is using AWS Organizations with a multi-account architecture. The company's
current security configuration for the account architecture includes SCPs, resource-based
policies, identity-based policies, trust policies, and session policies.
A solutions architect needs to allow an IAM user in Account A to assume a role in Account B.
Which combination of steps must the solutions architect take to meet this requirement?
(Select THREE.)
Show answerHide answer
Correct answer: B, C, EConfigure the resource-based policies to allow the action.Configure the identity-based policy on the user in Account A to allow the action.Configure the trust policy on the target role in Account B to allow the action.
Question 86Choose 1
A company is running its solution on AWS in a manually created VPC. The company is
using AWS CloudFormation to provision other parts of the infrastructure According to a
new requirement the company must manage all infrastructure in an automatic way
What should the comp any do to meet this new requirement with the LEAST effort?
Show answerHide answer
Correct answer: CCreate a new CloudFormation template that strictly provisions the existing VPC
resources and configuration From the CloudFormation console, create a new stack by
importing the existing resources
Question 87Choose 2
A company is migrating a legacy application from an on-premises data center to AWS. The
application consists of a single application server and a Microsoft SQL
Server database server. Each server is deployed on a VMware VM that consumes 500 TB
of data across multiple attached volumes.
The company has established a 10 Gbps AWS Direct Connect connection from the closest
AWS Region to its on-premises data center. The Direct Connect connection is not currently
in use by other services.
Which combination of steps should a solutions architect take to migrate the application with
the LEAST amount of downtime? (Choose two.)
Show answerHide answer
Correct answer: A, DUse an AWS Server Migration Service (AWS SMS) replication job to migrate the
database server VM to AWS.Use an AWS Server Migration Service (AWS SMS) replication job to migrate the
application server VM to AWS.
Question 88Choose 1
A company has implemented a new security requirement According to the new
requirement, the company must scan all traffic from corporate AWS instances in the
company's VPC for violations of the company's security policies. As a result of these scans
the company can block access to and from specific IP addresses.
To meet the new requirement, the company deploys a set of Amazon EC2 instances in
private subnets to serve as transparent proxies The company installs approved proxy
server software on these EC2 instances The company modifies the route tables on all
subnets to use the corresponding EC2 instances with proxy software as the default route
The company also creates security groups that are compliant with the security policies and
assigns these security groups to the EC2 instances
Despite these configurations, the traffic of the EC2 instances in their private subnets is not
being properly forwarded to the internet.
What should a solutions architect do to resolve this issue?
Show answerHide answer
Correct answer: ADisable source'destination checks on the EC2 instances that run the proxy software
Question 89Choose 1
A company is migrating a monolithic on-premises .NET Framework production application
to AWS. Application demand will grow exponentially in the next 6 months. The company
must ensure that the application can scale appropriately.
The application currently connects to a Microsoft SQL Server transactional database. The
company has well-documented source code for the application. Some business logic is
contained within stored procedures.
A solutions architect must recommend a solution to redesign the application to meet the
growth in demand.
Which solution will meet this requirement MOST cost-effectively?
Show answerHide answer
Correct answer: DUse Amazon API Gateway APIs and AWS Lambda functions to decouple the application
into microservices. Use the AWS Schema Conversion Tool (AWS SCT) to review and
modify the stored procedures. Store the data in Amazon Aurora Serverless v2.
Question 90Choose 1
A company is using AWS Control Tower to manage AWS accounts in an organization in
AWS Organizations. The company has an OU that contains accounts. The company
must prevent any new or existing Amazon EC2 instances in the OUs accounts from gaining
a public IP address.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: CCreate an SCP that prevents the launch of instances that have a public IP address.
Additionally, configure the SCP to prevent the attachment of a public IP address to existing
instances. Attach the SCP to the OU.
Explanation
Explanation:
This option will meet the requirements of preventing any new or existing EC2 instances in
the OU’s accounts from gaining a public IP address. An SCP is a policy that you can attach
to an OU or an account in AWS Organizations to define the maximum permissions for the
entities in that OU or account. By creating an SCP that denies the ec2:RunInstances and
ec2:AssociateAddress actions when the value of the aws:RequestTag/aws:PublicIp
condition key is true, you can prevent any user or role in the OU from launching instances
that have a public IP address or attaching a public IP address to existing instances. This will effectively enforce a security best practice and reduce the risk of unauthorized access
to your EC2 instances.
Full mock exam
Sit the SAP-C02 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real SAP-C02 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.