A company runs many workloads on AWS and uses AWS Organizations to manage its
accounts. The workloads are hosted on Amazon EC2. AWS Fargate. and AWS Lambda.
Some of the workloads have unpredictable demand. Accounts record high usage in some
months and low usage in other months.
The company wants to optimize its compute costs over the next 3 years A solutions
architect obtains a 6-month average for each of the accounts across the organization to
calculate usage.
Which solution will provide the MOST cost savings for all the organization's compute
usage?
Show answerHide answer
Correct answer: BPurchase a Compute Savings Plan for the organization from the management account
by using the recommendation at the management account level
Question 32Choose 1
A company is using Amazon API Gateway to deploy a private REST API that will provide
access to sensitive data. The API must be accessible only from an application that is
deployed in a VPC. The company deploys the API successfully. However, the API is not
accessible from an Amazon EC2 instance that is deployed in the VPC.
Which solution will provide connectivity between the EC2 instance and the API?
Show answerHide answer
Correct answer: BCreate an interface VPC endpoint for API Gateway. Attach an endpoint policy that
allows the execute-api:lnvoke action. Enable private DNS naming for the VPC endpoint.
Configure an API resource policy that allows access from the VPC endpoint. Use the API
endpoint's DNS names to access the API. Most Voted
Question 33Choose 1
A company needs to improve the reliability ticketing application. The application runs on an
Amazon Elastic Container Service (Amazon ECS) cluster. The company uses Amazon
CloudFront to servo the application. A single ECS service of the ECS cluster is the
CloudFront distribution's origin.
The application allows only a specific number of active users to enter a ticket purchasing
flow. These users are identified by an encrypted attribute in their JSON Web Token (JWT).
All other users are redirected to a waiting room module until there is available capacity for
purchasing.
The application is experiencing high loads. The waiting room modulo is working as
designed, but load on the waiting room is disrupting the application's availability. This
disruption is negatively affecting the application's ticket sale Transactions.
Which solution will provide the MOST reliability for ticket sale transactions during periods of
high load? '
Show answerHide answer
Correct answer: CCreate a separate service in the ECS cluster for the waiting room. Use a separate
scaling configuration. Create a CloudFront function That inspects the JWT information and
appropriately forwards requests to the ticketing service or the waiting room service
Explanation
Explanation:
Implementing a CloudFront function that inspects the JWT information and appropriately
forwards requests either to the ticketing service or the waiting room service within the
Amazon ECS cluster enhances reliability during high load periods. This solution segregates
the load between the main application and the waiting room, ensuring that the ticketing service remains unaffected by the high load on the waiting room. Using CloudFront
functions for request routing based on JWT attributes allows for efficient distribution of user
traffic, thereby maintaining the application's availability and performance during peak times.
Question 34Choose 1
A company is running multiple workloads in the AWS Cloud. The company has separate
units for software development. The company uses AWS Organizations and federation with
SAML to give permissions to developers to manage resources in their AWS accounts. The
development units each deploy their production workloads into a common production
account.
Recently, an incident occurred in the production account in which members of a
development unit terminated an EC2 instance that belonged to a different development
unit. A solutions architect must create a solution that prevents a similar incident from
happening in the future. The solution also must allow developers the possibility to manage
the instances used for their workloads.
Which strategy will meet these requirements?
Show answerHide answer
Correct answer: BPass an attribute for DevelopmentUnit as an AWS Security Token Service (AWS STS)
session tag during SAML federation. Update the IAM policy for the developers' assumed
IAM role with a deny action and a StringNotEquals condition for the DevelopmentUnit
resource tag and aws:PrincipalTag/ DevelopmentUnit.
Question 35Choose 1
A company is planning to migrate an on-premises data center to AWS. The company
currently hosts the data center on Linux-based VMware VMs. A solutions architect must
collect information about network dependencies between the VMs. The information must
be in the form of a diagram that details host IP addresses, hostnames, and network
connection information.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BUse the AWS Application Discovery Service Agentless Collector for server data
collection. Export the network diagrams from the AWS Migration Hub in .png format.
Explanation
Explanation: To effectively gather information about network dependencies between VMs
in an on-premises data center for migration to AWS, it's crucial to use tools that can
capture detailed application and server dependencies. The AWS Application Discovery
Service is designed for this purpose, particularly when migrating from environments like
Linux-based VMware VMs. By installing the AWS Application Discovery Agent on the onpremises
servers, the service can collect necessary data such as host IP addresses,
hostnames, and network connection information. This data is crucial for creating a
comprehensive network diagram that outlines the interactions and dependencies between
various components of the on-premises infrastructure. The integration with AWS Migration
Hub enhances this process by allowing the visualization of these dependencies in a
network diagram format, aiding in the planning and execution of the migration process. This
approach ensures a thorough understanding of the on-premises environment, which is
essential for a successful migration to AWS.
References:
AWS Documentation on Application Discovery Service: This provides detailed guidance on
how to use the Application Discovery Service, including the installation and configuration of
the Discovery Agent.
AWS Migration Hub User Guide: Offers insights on how to integrate Application Discovery
Service data with Migration Hub for comprehensive migration planning and tracking.
AWS Solutions Architect Professional Learning Path: Contains advanced topics and best
practices for migrating complex on-premises environments to AWS, emphasizing the use of
AWS services and tools for effective migration planning and execution.
Question 36Choose 1
A scientific company needs to process text and image data from an Amazon S3 bucket.
The data is collected from several radar stations during a live, time-critical phase of a deep
space mission. The radar stations upload the data to the source S3 bucket. The data is
prefixed by radar station identification number.
The company created a destination S3 bucket in a second account. Data must be copied
from the source S3 bucket to the destination S3 bucket to meet a compliance objective.
The replication occurs through the use of an S3 replication rule to cover all objects in the
source S3 bucket.
One specific radar station is identified as having the most accurate data. Data replication at
this radar station must be monitored for completion within 30 minutes after the radar station uploads the objects to the source S3 bucket.
What should a solutions architect do to meet these requirements?
Show answerHide answer
Correct answer: DCreate a new S3 replication rule on the source S3 bucket that filters for the keys that
use the prefix of the radar station with the most accurate data. Enable S3 Replication Time
Control (S3 RTC). Monitor the maximum replication time to the destination. Create an
Amazon EventBridge (Amazon CloudWatch Events) rule to trigger an alert when the time
exceeds the desired threshold.
Question 37Choose 1
A company plans to deploy a new private intranet service on Amazon EC2 instances inside
a VPC. An AWS Site-to-Site VPN connects the VPC to the company's on-premises
network. The new service must communicate with existing on-premises services The onpremises
services are accessible through the use of hostnames that reside in the company
example DNS zone This DNS zone is wholly hosted on premises and is available only on
the company's private network.
A solutions architect must ensure that the new service can resolve hostnames on the company example domain to integrate with existing services.
Which solution meets these requirements?
Show answerHide answer
Correct answer: BTurn on DNS hostnames for the VPC Configure a new outbound endpoint with Amazon
Route 53 Resolver. Create a Resolver rule to forward requests for company example to the
on-premises name servers
Question 38Choose 1
A company is deploying AWS Lambda functions that access an Amazon RDS for
PostgreSQL database. The company needs to launch the Lambda functions in a QA
environment and in a production environment.
The company must not expose credentials within application code and must rotate
passwords automatically.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BStore the database credentials for both environments in AWS Secrets Manager with
distinct key entry for the QA environment and the production environment. Turn on rotation.
Provide a reference to the Secrets Manager key as an environment variable for the
Lambda functions.
Explanation
Explanation: The best solution is to store the database credentials for both environments
in AWS Secrets Manager with distinct key entry for the QA environment and the production
environment. AWS Secrets Manager is a web service that can securely store, manage, and
retrieve secrets, such as database credentials. AWS Secrets Manager also supports
automatic rotation of secrets by using Lambda functions or built-in rotation templates. By
storing the database credentials for both environments in AWS Secrets Manager, the
company can avoid exposing credentials within application code and rotate passwords
automatically. By providing a reference to the Secrets Manager key as an environment
variable for the Lambda functions, the company can easily access the credentials from the
code by using the AWS SDK. This solution meets all the requirements of the company.
Question 39Choose 1
A company is preparing to deploy an Amazon Elastic Kubernetes Service (Amazon EKS)
cluster for a workload. The company expects the cluster to support an
unpredictable number of stateless pods. Many of the pods will be created during a short
time period as the workload automatically scales the number of replicas that the workload
uses.
Which solution will MAXIMIZE node resilience?
Show answerHide answer
Correct answer: DConfigure the workload to use topology spread constraints that are based on Availability
Zone.
Explanation
Explanation:
Configuring the workload to use topology spread constraints that are based on Availability
Zone will maximize the node resilience of the workload node groups. This will ensure that
the pods are evenly distributed across different Availability Zones, reducing the impact of
failures or disruptions in one Availability Zone2. This will also improve the availability and
scalability of the workload node groups, as they can leverage the low-latency, highthroughput,
and highly redundant networking between Availability Zones1.
Question 40Choose 1
A company is using an organization in AWS organization to manage AWS accounts. For
each new project the company creates a new linked account. After the creation of a new
account, the root user signs in to the new account and creates a service request to
increase the service quota for Amazon EC2 instances. A solutions architect needs to
automate this process.
Which solution will meet these requirements with tie LEAST operational overhead?
Show answerHide answer
Correct answer: ACreate an Amazon EventBridge rule to detect creation of a new account Send the event
to an Amazon Simple Notification Service (Amazon SNS) topic that invokes an AWS
Lambda function. Configure the Lambda function to run the request-service-quota-increase
command to request a service quota increase for EC2 instances.
Explanation
Explanation:
Automating the process of increasing service quotas for Amazon EC2 instances in new
AWS accounts with minimal operational overhead can be effectively achieved by using
Amazon EventBridge, Amazon SNS, and AWS Lambda. An EventBridge rule can detect
the creation of a new account and trigger an SNS topic, which in turn invokes a Lambda
function. This function can then programmatically request a service quota increase for EC2
instances using the AWS Service Quotas API. This approach streamlines the process,
reduces manual intervention, and ensures that new accounts are automatically configured
with the desired service quotas.
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.