A developer is building an application on AWS. The application has an Amazon API
Gateway API that sends requests to an AWS Lambda function. The API is experiencing
increased latency because the Lambda function has limited available CPU to fulfill the
requests.
Before the developer deploys the API into production, the developer must configure the
Lambda function to have more CPU.
Which solution will meet this requirement?
Show answerHide answer
Correct answer: BIncrease the amount of memory that is allocated to the Lambda function.
Question 102Choose 1
A company developed an API application on AWS by using Amazon CloudFront. Amazon
API Gateway, and AWS Lambda. The API has a minimum of four requests every second A developer notices that many API users run the same query by using the POST method.
The developer wants to cache the POST request to optimize the API resources.
Which solution will meet these requirements'?
Show answerHide answer
Correct answer: AConfigure the CloudFront cache Update the application to return cached content based
upon the default request headers.
Explanation
Explanation: This solution will meet the requirements by using Amazon CloudFront, which
is a content delivery network (CDN) service that speeds up the delivery of web content and
APIs to end users. The developer can configure the CloudFront cache, which is a set of
edge locations that store copies of popular or recently accessed content close to the
viewers. The developer can also update the application to return cached content based
upon the default request headers, which are a set of HTTP headers that CloudFront
automatically forwards to the origin server and uses to determine whether an object in an
edge location is still valid. By caching the POST requests, the developer can optimize the
API resources and reduce the latency for repeated queries. Option B is not optimal
because it will override the cache method in the selected stage of API Gateway, which is
not possible or effective as API Gateway does not support caching for POST methods by
default. Option C is not optimal because it will save the latest request response in Lambda
/tmp directory, which is a local storage space that is available for each Lambda function
invocation, not a cache that can be shared across multiple invocations or requests. Option
D is not optimal because it will save the latest request in AWS Systems Manager
Parameter Store, which is a service that provides secure and scalable storage for
configuration data and secrets, not a cache for API responses.
Question 103Choose 1
A developer is designing an event-driven architecture. An AWS Lambda function that
processes data needs to push processed data to a subset of four consumer Lambda
functions. The data must be routed based on the value of one field in the data. Which solution will meet these requirements with the LEAST operational overhead?
Show answerHide answer
Correct answer: BCreate an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the four
consumer Lambda functions to the topic. Add message filtering logic to each consumer
Lambda function. Subscribe the data-processing Lambda function to the SNS topic.
Question 104Choose 1
A company runs a new application on AWS Elastic Beanstalk. The company needs to
deploy updates to the application. The updates must not cause any downtime for
application users. The deployment mustforward a specified percentage of incoming client
traffic to a new application version during an evaluation period.
Which deployment type will meet these requirements?
Show answerHide answer
Correct answer: BTraffic-splitting
Explanation
Explanation:
AWS Elastic Beanstalk supports several deployment policies, and in this case, the
requirement is to forward a specific percentage of traffic to the new version without causing
downtime. TheTraffic-splittingdeployment policy is the most appropriate choice.
Traffic-splitting Deployment: This deployment method allows you to gradually shift
a specified percentage of incoming traffic from the old environment version to the
new one. During the evaluation period, if any issues are detected, the traffic can
be redirected back to the old version.
No Downtime: This method ensures no downtime since both versions of the
application run concurrently, and traffic is split between them.
A developer needs to perform geographic load testing of an API. The developer must
deploy resources to multiple AWS Regions to support the load testing of the API.
How can the developer meet these requirements without additional application code?
Show answerHide answer
Correct answer: BCreate an AWS CloudFormation template that defines the load test resources. Use the
AWS CLI create-stack-set command to create a stack set in the desired Regions.
Explanation
Explanation: AWS CloudFormation is a service that allows developers to model and
provision AWS resources using templates. A CloudFormation template can define the load
test resources, such as EC2 instances, load balancers, and Auto Scaling groups. A
CloudFormation stack set is a collection of stacks that can be created and managed from a
single template in multiple Regions and accounts. The AWS CLI create-stack-set command
can be used to create a stack set from a template and specify the Regions where the
stacks should be created.
Question 106Choose 1
A banking company is building an application for users to create accounts, view
balances, and review recent transactions. The company integrated an Amazon API
Gateway REST API with AWS Lambda functions. The company wants to deploy a
new version of a Lambda function that gives customers the ability to view their
balances. The new version of the function displays customer transaction insights.
The company wants to test the new version with a small group of users before
deciding whether to make the feature available for all users. Which solution will meet
these requirements with the LEAST disruption to users?
Show answerHide answer
Correct answer: ACreate a canary deployment for the REST API. Gradually increase traffic to the new
version of the function. Revert traffic to the old version if issues are detected.
Question 107Choose 1
A developer has created an AWS Lambda function that makes queries to an Amazon
Aurora MySQL DB instance. When the developer performs a test the OB instance shows
an error for too many connections.
Which solution will meet these requirements with the LEAST operational effort?
Show answerHide answer
Correct answer: DCreate a proxy in Amazon RDS Proxy Query the proxy instead of the DB instance.
Explanation
Explanation: This solution will meet the requirements by using Amazon RDS Proxy, which
is a fully managed, highly available database proxy for Amazon RDS that makes
applications more scalable, more resilient to database failures, and more secure. The
developer can create a proxy in Amazon RDS Proxy, which sits between the application and the DB instance and handles connection management, pooling, and routing.
The developer can query the proxy instead of the DB instance, which reduces the number
of open connections to the DB instance and avoids errors for too many connections. Option
A is not optimal because it will create a read replica for the DB instance, which may not
solve the problem of too many connections as read replicas also have connection limits
and may incur additional costs. Option B is not optimal because it will migrate the data to
an Amazon DynamoDB database, which may introduce additional complexity and
overhead for migrating and accessing data from a different database service. Option C is
not optimal because it will configure the Amazon Aurora MySQL DB instance for Multi-AZ
deployment, which may improve availability and durability of the DB instance but not
reduce the number of connections.
Question 108Choose 1
A developer is creating a mobile app that calls a backend service by using an Amazon API
Gateway REST API. For integration testing during the development phase, the developer
wants to simulate different backend responses without invoking the backend service.
Which solution will meet these requirements with the LEAST operational overhead?
Show answerHide answer
Correct answer: DUse a request mapping template to select the mock integration response.
Explanation
Explanation: Amazon API Gateway supports mock integration responses, which are
predefined responses that can be returned without sending requests to a backend service.
Mock integration responses can be used for testing or prototyping purposes, or for
simulating different backend responses based on certain conditions. A request mapping
template can be used to select a mock integration response based on an expression that
evaluates some aspects of the request, such as headers, query strings, or body content.
This solution does not require any additional resources or code changes and has the least
operational overhead.
Question 109Choose 1
A developer needs to give a new application the ability to retrieve configuration data.
The application must be able to retrieve new configuration data values without the
need to redeploy the application code. If the application becomes unhealthy because
of a bad configuration change, the developer must be able to automatically revert
the configuration change to the previous value.
Show answerHide answer
Correct answer: DUse AWS AppConfig to manage and store the configuration data. Integrate AWS
AppConfig with Amazon CloudWatch to monitor changes to the application. Set up
CloudWatch Application Signals to roll back any bad configuration changes.
Question 110Choose 2
A developer is configuring an applications deployment environment in AWS CodePipeine.
The application code is stored in a GitHub repository. The developer wants to ensure that
the repository package's unit tests run in the new deployment environment. The
deployment has already set the pipeline's source provider to GitHub and has specified the
repository and branch to use in the deployment.
When combination of steps should the developer take next to meet these requirements
with the least the LEAST overhead' (Select TWO).
Show answerHide answer
Correct answer: B, ECreate an AWS CodeBuid project. Add the repository package's build and test
commands to the projects buildspec
Add a new stage to the pipeline alter the source stage. Add an action to the new stage.
Speedy the newly created protect as the action provider. Specify the source artifact as the
action's input artifact.
Explanation
Explanation: This solution will ensure that the repository package’s unit tests run in the
new deployment environment with the least overhead because it uses AWS CodeBuild to
build and test the code in a fully managed service, and AWS CodePipeline to orchestrate
the deployment stages and actions. Option A is not optimal because it will use AWS
CodeCommit instead of AWS CodeBuild, which is a source control service, not a build and
test service. Option C is not optimal because it will use AWS CodeDeploy instead of AWS
CodeBuild, which is a deployment service, not a build and test service. Option D is not
optimal because it will add an action to the source stage instead of creating a new stage,
which will not follow the best practice of separating different deployment phases.
That's the last free question
You've seen the free 30% (110 of 368 questions). Full access unlocks every question and full-length DVA-C02 mock exams (65 questions, 105 minutes), a different mock on every attempt.
Full-length mocks with the same number of questions and the same time limit as the real DVA-C02 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.