A company has a solution that analyzes weather data from thousands of weather stations.
The weather stations send the data over an Amazon API Gateway REST API that has an
AWS Lambda function integration. The Lambda function calls a third-party service for data
pre-processing. The third-party service gets overloaded and fails the pre-processing,
causing a loss of data.
A solutions architect must improve the resiliency of the solution. The solutions architect
must ensure that no data is lost and that data can be processed later if failures occur.
What should the solutions architect do to meet these requirements?
Show answerHide answer
Correct answer: CCreate two Amazon EventBridge event buses: a primary event bus and a secondary
event bus. Update the API to use a new integration to the primary event bus. Configure an
EventBridge rule to react to all events on the primary event bus. Specify the Lambda
function as the target of the rule. Configure the secondary event bus as the failure
destination for the Lambda function.
Explanation
Explanation:
Explanation: This option allows the solution to decouple the API from the Lambda function
and use EventBridge as an event-driven service that can handle failures gracefully1. By
using two event buses, one for normal events and one for failed events, the solution can
ensure that no data is lost and that data can be processed later if failures occur2. The
primary event bus receives the data from the weather stations through the API integration
and triggers the Lambda function through a rule. The Lambda function can then call the
third-party service for data pre-processing. If the third-party service fails, the Lambda
function can send an error response to EventBridge, which will route it to the secondary
event bus as a failure destination3. The secondary event bus can then store the failed
events in another service, such as Amazon S3 or Amazon SQS, for troubleshooting or
reprocessing.
Question 122Choose 1
A company is using AWS CodePipeline for the CI/CD of an application to an Amazon EC2
Auto Scaling group. All AWS resources are defined in AWS
CloudFormation templates. The application artifacts are stored in an Amazon S3 bucket
and deployed to the Auto Scaling group using instance user data scripts.
As the application has become more complex, recent resource changes in the
CloudFormation templates have caused unplanned downtime.
How should a solutions architect improve the CI/CD pipeline to reduce the likelihood that
changes in the templates will cause downtime?
Show answerHide answer
Correct answer: BImplement automated testing using AWS CodeBuild in a test environment. Use
CloudFormation change sets to evaluate changes before deployment. Use AWS
CodeDeploy to leverage blue/green deployment patterns to allow evaluations and the
ability to revert changes, if needed.
Question 123Choose 1
A company hosts an application that uses several Amazon EC2 instances in an Auto
Scaling group behind an Application Load Balancer (ALB). During the initial startup of the EC2 instances, the EC2 instances run user data scripts to download critical content for the
application from an Amazon S3 bucket.
The EC2 instances are launching correctly. However, after a period of time, the EC2
instances are terminated with the following error message: "An instance was taken out of
service in response to an ELB system health check failure." EC2 instances continue to
launch and be terminated because of Auto Scaling events in an endless loop.
The only recent change to the deployment is that the company added a large amount of
critical content to the S3 bucket. The company does not want to alter the user data scripts
in production.
What should a solutions architect do so that the production environment can deploy
successfully?
Show answerHide answer
Correct answer: DIncrease the health check grace period for the Auto Scaling group.
Question 124Choose 3
A company is planning to migrate an Amazon RDS for Oracle database to an RDS for
PostgreSQL DB instance in another AWS account. A solutions architect needs to design a
migration strategy that will require no downtime and that will minimize the amount of time
necessary to complete the migration. The migration strategy must replicate all existing data
and any new data that is created during the migration The target database must be
identical to the source database at completion of the migration process
All applications currently use an Amazon Route 53 CNAME record as their endpoint for
communication with the RDS for Oracle DB instance The RDS for Oracle DB instance is in
a private subnet.
Which combination of steps should the solutions architect take to meet these
requirements? (Select THREE)
Show answerHide answer
Correct answer: A, C, ECreate a new RDS for PostgreSQL DB instance in the target account Use the AWS
Schema Conversion Tool (AWS SCT) to migrate the database schema from the source
database to the target databaseConfigure VPC peering between the VPCs in the two AWS accounts to provide connectivity to both DB instances from the target account. Configure the security groups
that are attached to each DB instance to allow traffic on the database port from the VPC in
the target account.Use AWS Database Migration Service (AWS DMS) in the target account to perform a full
load plus change data capture (CDC) migration from the source database to the target
database When the migration is complete, change the CNAME record to point to the target
DB instance endpoint
Question 125Choose 2
An events company runs a ticketing platform on AWS. The company's customers configure
and schedule their events on the platform The events result in large increases of traffic to
the platform The company knows the date and time of each customer's events
The company runs the platform on an Amazon Elastic Container Service (Amazon ECS)
cluster The ECS cluster consists of Amazon EC2 On-Demand Instances that are in an Auto
Scaling group. The Auto Scaling group uses a predictive scaling policy
The ECS cluster makes frequent requests to an Amazon S3 bucket to download ticket
assets The ECS cluster and the S3 bucket are in the same AWS Region and the same
AWS account Traffic between the ECS cluster and the S3 bucket flows across a NAT
gateway
The company needs to optimize the cost of the platform without decreasing the platform's
availability
Which combination of steps will meet these requirements? (Select TWO)
Show answerHide answer
Correct answer: A, BCreate a gateway VPC endpoint for the S3 bucketAdd another ECS capacity provider that uses an Auto Scaling group of Spot Instances
Configure the new capacity provider strategy to have the same weight as the existing
capacity provider strategy
Question 126Choose 1
A company has separate AWS accounts for each of its departments. The accounts are in
OUs that are in an organization in AWS Organizations. The IT department manages a
private certificate authority (CA) by using AWS Private Certificate Authority in its account.
The company needs a solution to allow developer teams in the other departmental
accounts to access the private CA to issue certificates for their applications. The solution
must maintain appropriate security boundaries between accounts.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: CIn the organization's management account, create an AWS CloudFormation stack to set
up a resource-based delegation policy. Update the policy to allow the organizations:
EnableAWSServiceAccess action. Add the ARN of the private CA from the IT account as
the principal in the policy statement.
Question 127Choose 1
To abide by industry regulations, a solutions architect must design a solution that will store
a company's critical data in multiple public AWS Regions, including in the United States,
where the company's headquarters is located The solutions architect is required to provide
access to the data stored in AWS to the company's global WAN network The security team
mandates that no traffic accessing this data should traverse the public internet
How should the solutions architect design a highly available solution that meets the
requirements and is cost-effective'?
Show answerHide answer
Correct answer: DEstablish two AWS Direct Connect connections from the company headquarters to an
AWS Region Use the company WAN to send traffic over a DX connection Use Direct
Connect Gateway to access data in other AWS Regions.
Question 128Choose 1
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 PostgreSQL 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 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.
Question 129Choose 2
A solutions architect is designing an application to accept timesheet entries from
employees on their mobile devices. Timesheets will be submitted weekly, with most of the
submissions occurring on Friday. The data must be stored in a format that allows payroll
administrators to run monthly reports The infrastructure must be highly available and scale
to match the rate of incoming data and reporting requests.
Which combination of steps meets these requirements while minimizing operational
overhead? (Select TWO}
Show answerHide answer
Correct answer: C, EDeploy the application front end to an Amazon S3 bucket served by Amazon CloudFront
Deploy the application backend using Amazon API Gateway with an AWS Lambda proxy
integrationStore the timesheet submission data in Amazon S3. Use Amazon Athena and Amazon
QuickSight to generate the reports using Amazon S3 as the data source.
Question 130Choose 2
A company is running a serverless application that consists of several AWS Lambda
functions and Amazon DynamoDB tables. The company has created new functionality that
requires the Lambda functions to access an Amazon Neptune DB cluster. The Neptune DB
cluster is located in three subnets in a VPC.
Which of the possible solutions will allow the Lambda functions to access the Neptune DB
cluster and DynamoDB tables? (Select TWO.)
Show answerHide answer
Correct answer: B, ECreate three private subnets in the Neptune VPC, and route internet traffic through a
NAT gateway. Host the Lambda functions in the three new private subnets.Create three private subnets in the Neptune VPC. Host the Lambda functions in the
three new isolated subnets. Create a VPC endpoint for DynamoDB, and route DynamoDB
traffic to the VPC endpoint.
Explanation
Explanation:
Explanation: This option allows the company to use private subnets and VPC endpoints to
connect the Lambda functions to the Neptune DB cluster and DynamoDB tables securely
and efficiently1. By creating three private subnets in the Neptune VPC, the company can
isolate the Lambda functions from the public internet and reduce the attack surface2. By
routing internet traffic through a NAT gateway, the company can enable the Lambda
functions to access AWS services that are outside the VPC, such as Amazon S3 or
Amazon CloudWatch3. By hosting the Lambda functions in the three new private subnets,
the company can ensure that the Lambda functions can access the Neptune DB cluster
within the same VPC4. By creating a VPC endpoint for DynamoDB, the company can
enable the Lambda functions to access DynamoDB tables without going through the
internet or a NAT gateway5. By routing DynamoDB traffic to the VPC endpoint, the
company can improve the performance and availability of the DynamoDB access5.
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.