DON'T WANT TO MISS A THING?

Certification Exam Passing Tips

Latest exam news and discount info

Curated and up-to-date by our experts

Yes, send me the newsletter

Free AWS DVA-C02 Practice Questions & Answers 2026 Part2

Are you preparing for the AWS DVA-C02 certification exam? SPOTO offers the AWS DVA-C02 Premium File; all questions are aligned with the latest exam content and come with expert-provided answers. Our question banks cover the latest question types, core concepts, and detailed explanations, helping you familiarize yourself with the exam format and difficulty level. Whether you are reviewing core concepts or simulating a real exam environment, these resources will rapidly boost your confidence and readiness.
For over two decades, SPOTO has successfully helped numerous IT professionals secure their ideal positions at Fortune 500 companies. Download now to start practicing efficiently and ensure a high score on the actual exam. Don't miss this opportunity to pass your certification exam with ease!
Take other online exams

Question #1
A developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit.Which of the following API Gateway metrics in Amazon CloudWatch can help the developer troubleshoot the issue? (Choose two.)
A. CacheHitCount
B. IntegrationLatency
C. CacheMissCount
D. Latency
E. Count
View answer
Correct Answer: BD

View The Updated DVA-C02 Exam Questions

SPOTO Provides 100% Real DVA-C02 Exam Questions for You to Pass Your DVA-C02 Exam!

Question #2
A developer is working on a serverless application that needs to process any changes to an Amazon DynamoDB table with an AWS Lambda function.How should the developer configure the Lambda function to detect changes to the DynamoDB table?
A. Create an Amazon Kinesis data stream, and attach it to the DynamoDB table
B. Create an Amazon EventBridge rule to invoke the Lambda function on a regular schedule
C. Enable DynamoDB Streams on the table
D. Create an Amazon Kinesis Data Firehose delivery stream, and attach it to the DynamoDB table
View answer
Correct Answer: C
Question #3
A developer is creating a web application that must give users the ability to post comments and receive feedback in near real time. Which solutions will meet these requirements?(Select TWO.)
A. Create an AWS AppSync schema and corresponding APIs
B. Create a WebSocket API in Amazon API Gateway
C. Create an AWS Elastic Beanstalk application that is backed by an Amazon RDS database
D. Create a GraphQL endpoint in Amazon API Gateway
E. Establish WebSocket connections to Amazon CloudFront
View answer
Correct Answer: ab
Question #4
A developer has an application that stores data in an Amazon S3 bucket. The application uses an HTTP API to store and retrieve objects. When the PutObject API operation adds objects to the S3 bucket the developer must encrypt these objects at rest by using server-side encryption with Amazon S3 managed keys (SSE-S3).Which solution will meet this requirement?
A. Create an AWS Key Management Service (AWS KMS) key
B. Set the x-amz-server-side-encryption header when invoking the PutObject API operation
C. Provide the encryption key in the HTTP header of every request
D. Apply TLS to encrypt the traffic to the S3 bucket
View answer
Correct Answer: B
Question #5
A developer is creating an application that includes an Amazon API Gateway REST API in the us-east-2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider.How should the developer configure the custom domain for the application?
A. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
B. Import the SSL/TLS certificate into CloudFront
C. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
D. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Region
View answer
Correct Answer: D
Question #6
A company has deployed infrastructure on AWS. A development team wants to create an AWS Lambda function that will retrieve data from an Amazon Aurora database. The Amazon Aurora database is in a private subnet in company's VPC. The VPC is named VPC1. The data is relational in nature. The Lambda function needs to access the data securely.Which solution will meet these requirements?
A. Create the Lambda function
B. Create and launch a Lambda function in a new public subnet that is in a new VPC named VPC2
C. Create the Lambda function
D. Export the data from the Aurora database to Amazon S3
View answer
Correct Answer: A
Question #7
A developer is modifying an AWS Lambda function that accesses an Amazon RDS for MySQL database. The developer discovers that the Lambda function has the database credentials stored as plaintext in the Lambda function code.The developer must implement a solution to make the credentials more secure. The solution must include automated credential rotation every 30 days.Which solution will meet these requirements?
A. ove the credentials to an encrypted Amazon S3 bucket
B. ove the credentials to a secure string parameter in AWS Systems Manager Parameter Store
C. ove the credentials to a secure string parameter in AWS Systems Manager Parameter Store
D. ove the credentials to a secret in AWS Secrets Manager
View answer
Correct Answer: D
Question #8
A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table. What is the simplest way to do this?
A. Write a script that deletes old records; schedule the script as a cron job on an Amazon EC2 instance
B. Add an attribute with the expiration time; enable the Time To Live feature based on that attribute
C. Each day, create a new table to hold session data; delete the previous day's table
D. Add an attribute with the expiration time; name the attribute ItemExpiration
View answer
Correct Answer: B
Question #9
A company has a critical application on AWS. The application exposes an HTTP API by using Amazon API Gateway. The API is integrated with an AWS Lambda function. The application stores data in an Amazon RDS for MySQL DB instance with 2 virtual CPUs (vCPUs) and 64 GB of RAM.Customers have reported that some of the API calls return HTTP 500 Internal Server Error responses. Amazon CloudWatch Logs shows errors for “too many connections.” The errors occur during peak usage times that are unpredictable.The company needs to make the application resilient. The database cannot be down outside of scheduled maintenance hours.Which solution will meet these requirements?
A. Decrease the number of vCPUs for the DB instance
B. Use Amazon RDS Proxy to create a proxy that connects to the DB instance
C. Add a CloudWatch alarm that changes the DB instance class when the number of connections increases to more than 1,000
D. Add an Amazon EventBridge rule that increases the max_connections setting of the DB instance when CPU utilization is above 75%
View answer
Correct Answer: B
Question #10
A company runs an application on AWS. The company deployed the application on Amazon EC2 instances. The application stores data on Amazon Aurora.The application recently logged multiple application-specific custom DECRYP_ERROR errors to Amazon CloudWatch logs. The company did not detect the issue until the automated tests that run every 30 minutes failed. A developer must implement a solution that will monitor for the custom errors and alert a development team in real time when these errors occur in the production environment.Which solution will meet these requirements with the LEAST operational overhead?
A. Configure the application to create a custom metric and to push the metric to CloudWatch
B. Create an AWS Lambda function to run every 5 minutes to scan the CloudWatch logs for the keyword DECRYP_ERROR
C. Use Amazon CloudWatch Logs to create a metric filter that has a filter pattern for DECRYP_ERROR
D. Install the CloudWatch unified agent on the EC2 instance
View answer
Correct Answer: C
Question #11
A company is implementing an application on Amazon EC2 instances. The application needs to process incoming transactions. When the application detects a transaction that is not valid, the application must send a chat message to the company's support team. To send the message, the application needs to retrieve the access token to authenticate by using the chat API.A developer needs to implement a solution to store the access token. The access token must be encrypted at rest and in transit. The access token must also be accessible from other AWS accounts.Which solution will meet these requirements with the LEAST management overhead?
A. Use an AWS Systems Manager Parameter Store SecureString parameter that uses an AWS Key Management Service (AWS KMS) AWS managed key to store the access token
B. Encrypt the access token by using an AWS Key Management Service (AWS KMS) customer managed key
C. Use AWS Secrets Manager with an AWS Key Management Service (AWS KMS) customer managed key to store the access token
D. Encrypt the access token by using an AWS Key Management Service (AWS KMS) AWS managed key
View answer
Correct Answer: C
Question #12
A developer has a legacy application that is hosted on-premises. Other applications hosted on AWS depend on the on-premises application for proper functioning. In case of any application errors, the developer wants to be able to use Amazon CloudWatch to monitor and troubleshoot all applications from one place.How can the developer accomplish this?
A. Install an AWS SDK on the on-premises server to automatically send logs to CloudWatch
B. Download the CloudWatch agent to the on-premises server
C. Upload log files from the on-premises server to Amazon S3 and have CloudWatch read the files
D. Upload log files from the on-premises server to an Amazon EC2 instance and have the instance forward the logs to CloudWatch
View answer
Correct Answer: B
Question #13
An application uses Lambda functions to extract metadata from files uploaded to an S3 bucket; the metadata is stored in Amazon DynamoDB. The application starts behaving unexpectedly, and the developer wants to examine the logs of the Lambda function code for errors.Based on this system configuration, where would the developer find the logs?
A. Amazon S3
B. AWS CloudTrail
C. Amazon CloudWatch
D. Amazon DynamoDB
View answer
Correct Answer: C
Question #14
A company is building a scalable data management solution by using AWS services to improve the speed and agility of development. The solution will ingest large volumes of data from various sources and will process this data through multiple business rules and transformations.The solution requires business rules to run in sequence and to handle reprocessing of data if errors occur when the business rules run. The company needs the solution to be scalable and to require the least possible maintenance.Which AWS service should the company use to manage and automate the orchestration of the data flows to meet these requirements?
A. AWS Batch
B. AWS Step Functions
C. AWS Glue
D. AWS Lambda
View answer
Correct Answer: B
Question #15
A developer is creating an application that will be deployed on IoT devices. The application will send data to a RESTful API that is deployed as an AWS Lambda function. The application will assign each API request a unique identifier. The volume of API requests from the application can randomly increase at any given time of day.During periods of request throttling, the application might need to retry requests. The API must be able to handle duplicate requests without inconsistencies or data loss.Which solution will meet these requirements?
A. Create an Amazon RDS for MySQL DB instance
B. Create an Amazon DynamoDB table
C. Create an Amazon DynamoDB table
D. Create an Amazon ElastiCache for Memcached instance
View answer
Correct Answer: B
Question #16
A developer is building a highly secure healthcare application using serverless components. This application requires writing temporary data to /tmp storage on an AWS Lambda function.How should the developer encrypt this data?
A. Enable Amazon EBS volume encryption with an AWS KMS key in the Lambda function configuration so that all storage attached to the Lambda function is encrypted
B. Set up the Lambda function with a role and key policy to access an AWS KMS key
C. Use OpenSSL to generate a symmetric encryption key on Lambda startup
D. Use an on-premises hardware security module (HSM) to generate keys, where the Lambda function requests a data key from the HSM and uses that to encrypt data on all requests to the function
View answer
Correct Answer: B
Question #17
A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table.What is the simplest way to do this?
A. Write a script that deletes old records; schedule the script as a cron job on an Amazon EC2 instance
B. Add an attribute with the expiration time; enable the Time To Live feature based on that attribute
C. Each day, create a new table to hold session data; delete the previous day's table
D. Add an attribute with the expiration time; name the attribute ItemExpiration
View answer
Correct Answer: B
Question #18
A developer wants to use an Amazon CloudFront distribution to deliver a web application to users. Users will access the application through the internet. The developer needs to create an SSL/TLS certificate to use with the CloudFront distribution. The developer wants to minimize operational overhead by ensuring that the certificate is renewed automatically. Which solution will meet these requirements? The best answer is to request a public certificate in AWS Certificate Manager and validate it with DNS. ACM manages public certificate renewal automatically when validation remains in place, which minimizes operational overhead. DNS validation is preferable to email validation because it does not require manual approval emails during renewal workflows. IAM server certificates are legacy-style certificate storage and do not provide the same managed lifecycle experience as ACM. Imported certificates are not automatically renewed by ACM because ACM does not control their issuance lifecycle. For CloudFront, AWS recommends ACM certificates, and CloudFront certificates must be requested or imported in the US East (N. Virginia) Region, although the option's key point is ACM public certificate with DNS validation. (AWS Documentation) ===============
A. Create a public certificate that uses DNS validation in IAM
B. Import a certificate into IAM
C. Create a public certificate that uses DNS validation in AWS Certificate Manager (ACM)
D. Create a public certificate that uses email validation in AWS Certificate Manager (ACM)
View answer
Correct Answer: C
Question #19
A developer has an application that stores data in an Amazon S3 bucket. The application uses an HTTP API to store and retrieve objects. When the PutObject API operation adds objects to the S3 bucket the developer must encrypt these objects at rest by using server-side encryption with Amazon S3 managed keys (SSE-S3).Which solution will meet this requirement?
A. Create an AWS Key Management Service (AWS KMS) key
B. Set the x-amz-server-side-encryption header when invoking the PutObject API operation
C. Provide the encryption key in the HTTP header of every request
D. Apply TLS to encrypt the traffic to the S3 bucket
View answer
Correct Answer: B
Question #20
A company receives food orders from multiple partners. The company has a microservices application that uses Amazon API Gateway APIs with AWS Lambda integration. Each partner sends orders by calling a customized API that is exposed through API Gateway. The API call invokes a shared Lambda function to process the orders.Partners need to be notified after the Lambda function processes the orders. Each partner must receive updates for only the partner's own orders. The company wants to add new partners in the future with the fewest code changes possible.Which solution will meet these requirements in the MOST scalable way?
A. Create a different Amazon Simple Notification Service (Amazon SNS) topic for each partner
B. Create a different Lambda function for each partner
C. Create an Amazon Simple Notification Service (Amazon SNS) topic
D. Create one Amazon Simple Notification Service (Amazon SNS) topic
View answer
Correct Answer: C
Question #21
A developer is using AWS Amplify Hosting to build and deploy an application. The developer is receiving an increased number of bug reports from users. The developer wants to add end-to-end testing to the application to eliminate as many bugs as possible before the bugs reach production.Which solution should the developer implement to meet these requirements?
A. Run the amplify add test command in the Amplify CLI
B. Create unit tests in the application
C. Add a test phase to the amplify
D. Add a test phase to the aws-exports
View answer
Correct Answer: C
Question #22
A company has a critical application on AWS. The application exposes an HTTP API by using Amazon API Gateway. The API is integrated with an AWS Lambda function. The application stores data in an Amazon RDS for MySQL DB instance with 2 virtual CPUs (vCPUs) and 64 GB of RAM.Customers have reported that some of the API calls return HTTP 500 Internal Server Error responses. Amazon CloudWatch Logs shows errors for “too many connections.” The errors occur during peak usage times that are unpredictable.The company needs to make the application resilient. The database cannot be down outside of scheduled maintenance hours.Which solution will meet these requirements?
A. Decrease the number of vCPUs for the DB instance
B. Use Amazon RDS Proxy to create a proxy that connects to the DB instance
C. Add a CloudWatch alarm that changes the DB instance class when the number of connections increases to more than 1,000
D. Add an Amazon EventBridge rule that increases the max_connections setting of the DB instance when CPU utilization is above 75%
View answer
Correct Answer: B
Question #23
A company has deployed an application on AWS Elastic Beanstalk. The company has configured the Auto Scaling group that is associated with the Elastic Beanstalk environment to have five Amazon EC2 instances. If the capacity is fewer than four EC2 instances during the deployment, application performance degrades. The company is using the all-at-once deployment policy.What is the MOST cost-effective way to solve the deployment issue?
A. Change the Auto Scaling group to six desired instances
B. Change the deployment policy to traffic splitting
C. Change the deployment policy to rolling with additional batch
D. Change the deployment policy to rolling
View answer
Correct Answer: C
Question #24
A developer is migrating some features from a legacy monolithic application to use AWS Lambda functions instead. The application currently stores data in an Amazon Aurora DB cluster that runs in private subnets in a VPC. The AWS account has one VPC deployed. The Lambda functions and the DB cluster are deployed in the same AWS Region in the same AWS account.The developer needs to ensure that the Lambda functions can securely access the DB cluster without crossing the public internet.Which solution will meet these requirements?
A. Configure the DB cluster's public access setting to Yes
B. Configure an Amazon RDS database proxy for he Lambda functions
C. Configure a NAT gateway and a security group for the Lambda functions
D. Configure the VPC, subnets, and a security group for the Lambda functions
View answer
Correct Answer: D
Question #25
A development team maintains a web application by using a single AWS CloudFormation template. The template defines web servers and an Amazon RDS database. The team uses the Cloud Formation template to deploy the Cloud Formation stack to different environments.During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future.Which solutions will meet these requirements? (Choose two.)
A. dd a CloudFormation Deletion Policy attribute with the Retain value to the database resource
B. pdate the CloudFormation stack policy to prevent updates to the database
C. odify the database to use a Multi-AZ deployment
D. reate a CloudFormation stack set for the web application and database deployments
E. dd a Cloud Formation DeletionPolicy attribute with the Retain value to the stack
View answer
Correct Answer: AB
Question #26
A developer is creating an application that uses an Amazon DynamoDB table. The developer needs to develop code that reads all records that were added to the table during the previous day. creates HTML reports, and pushes the reports into third-party storage. The item size varies from 1 KB to 4 KB, and the index structure is defined with the date. The developer needs to minimize the read capacity that the application requires from the DynamoDB table.Which DynamoDB API operation should the developer use in the code to meet these requirements?
A. uery
B. atchGetltem
C. can
D. etltem
View answer
Correct Answer: A
Question #27
A developer wants to expand an application to run in multiple AWS Regions. The developer wants to copy Amazon Machine Images (AMIs) with the latest changes and create a new application stack in the destination Region. According to company requirements, all AMIs must be encrypted in all Regions. However, not all the AMIs that the company uses are encrypted.How can the developer expand the application to run in the destination Region while meeting the encryption requirement?
A. Create new AMIs, and specify encryption parameters
B. Use AWS Key Management Service (AWS KMS) to enable encryption on the unencrypted AMIs
C. Use AWS Certificate Manager (ACM) to enable encryption on the unencrypted AMIs
D. Copy the unencrypted AMIs to the destination Region
View answer
Correct Answer: A
Question #28
A developer maintains an Amazon API Gateway REST API. Customers use the API through a frontend UI and Amazon Cognito authentication.The developer has a new version of the API that contains new endpoints and backward-incompatible interface changes. The developer needs to provide beta access to other developers on the team without affecting customers.Which solution will meet these requirements with the LEAST operational overhead?
A. Define a development stage on the API Gateway API
B. Define a new API Gateway API that points to the new API application code
C. Implement a query parameter in the API application code that determines which code version to call
D. Specify new API Gateway endpoints for the API endpoints that the developer wants to add
View answer
Correct Answer: A
Question #29
A developer is building a highly secure healthcare application using serverless components. This application requires writing temporary data to /tmp storage on an AWS Lambda function.How should the developer encrypt this data?
A. Enable Amazon EBS volume encryption with an AWS KMS key in the Lambda function configuration so that all storage attached to the Lambda function is encrypted
B. Set up the Lambda function with a role and key policy to access an AWS KMS key
C. Use OpenSSL to generate a symmetric encryption key on Lambda startup
D. Use an on-premises hardware security module (HSM) to generate keys, where the Lambda function requests a data key from the HSM and uses that to encrypt data on all requests to the function
View answer
Correct Answer: B
Question #30
A company runs a batch processing application by using AWS Lambda functions and Amazon API Gateway APIs with deployment stages for development, user acceptance testing and production A development team needs to configure the APIs in the deployment stages to connect to third-party service endpoints.Which solution will meet this requirement?
A. tore the third-party service endpoint for each environment in AWS AppConfig
B. ncode the third-party service endpoints as query parameters in the API Gateway request URL
C. tore the third-party service endpoints in Lambda layers that correspond to the stage
D. tore the third-party service endpoints in API Gateway stage variables that correspond to the stage
View answer
Correct Answer: D
Question #31
A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage.How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?
A. Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service
B. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service
C. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call
D. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call
View answer
Correct Answer: B
Question #32
A company is running Amazon EC2 instances in multiple AWS accounts. A developer needs to implement an application that collects all the lifecycle events of the EC2 instances. The application needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in the company's main AWS account for further processing.Which solution will meet these requirements?
A. onfigure Amazon EC2 to deliver the EC2 instance lifecycle events from all accounts to the Amazon EventBridge event bus of the main account
B. se the resource policies of the SQS queue in the main account to give each account permissions to write to that SQS queue
C. rite an AWS Lambda function that scans through all EC2 instances in the company accounts to detect EC2 instance lifecycle changes
D. onfigure the permissions on the main account event bus to receive events from all accounts
View answer
Correct Answer: D
Question #33
A company is building a scalable data management solution by using AWS services to improve the speed and agility of development. The solution will ingest large volumes of data from various sources and will process this data through multiple business rules and transformations.The solution requires business rules to run in sequence and to handle reprocessing of data if errors occur when the business rules run. The company needs the solution to be scalable and to require the least possible maintenance.Which AWS service should the company use to manage and automate the orchestration of the data flows to meet these requirements?
A. WS Batch
B. WS Step Functions
C. WS Glue
D. WS Lambda
View answer
Correct Answer: B
Question #34
A company has an Amazon S3 bucket that contains sensitive data. The data must be encrypted in transit and at rest. The company encrypts the data in the S3 bucket by using an AWS Key Management Service (AWS KMS) key. A developer needs to grant several other AWS accounts the permission to use the S3 GetObject operation to retrieve the data from the S3 bucket.How can the developer enforce that all requests to retrieve the data provide encryption in transit?
A. Define a resource-based policy on the S3 bucket to deny access when a request meets the condition “aws:SecureTransport”: “false”
B. Define a resource-based policy on the S3 bucket to allow access when a request meets the condition “aws:SecureTransport”: “false”
C. Define a role-based policy on the other accounts' roles to deny access when a request meets the condition of “aws:SecureTransport”: “false”
D. Define a resource-based policy on the KMS key to deny access when a request meets the condition of “aws:SecureTransport”: “false”
View answer
Correct Answer: A
Question #35
An application is using Amazon Cognito user pools and identity pools for secure access. A developer wants to integrate the user-specific file upload and download features in the application with Amazon S3. The developer must ensure that the files are saved and retrieved in a secure manner and that users can access only their own files. The file sizes range from 3 KB to 300 MB.Which option will meet these requirements with the HIGHEST level of security?
A. Use S3 Event Notifications to validate the file upload and download requests and update the user interface (UI)
B. Save the details of the uploaded files in a separate Amazon DynamoDB table
C. Use Amazon API Gateway and an AWS Lambda function to upload and download files
D. Use an IAM policy within the Amazon Cognito identity prefix to restrict users to use their own folders in Amazon S3
View answer
Correct Answer: D
Question #36
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?
A. Create and deploy an AWS Lambda function in each desired Region
B. Create an AWS CloudFormation template that defines the load test resources
C. Create an AWS Systems Manager document that defines the resources
D. Create an AWS CloudFormation template that defines the load test resources
View answer
Correct Answer: B
Question #37
An application uses an Amazon EC2 Auto Scaling group. A developer notices that EC2 instances are taking a long time to become available during scale-out events. The UserData script is taking a long time to run.The developer must implement a solution to decrease the time that elapses before an EC2 instance becomes available. The solution must make the most recent version of the application available at all times and must apply all available security updates. The solution also must minimize the number of images that are created. The images must be validated.Which combination of steps should the developer take to meet these requirements? (Choose two.)
A. Use EC2 Image Builder to create an Amazon Machine Image (AMI)
B. Use EC2 Image Builder to create an Amazon Machine Image (AMI)
C. Set up AWS CodeDeploy to deploy the most recent version of the application at runtime
D. Set up AWS CodePipeline to deploy the most recent version of the application at runtime
E. Remove any commands that perform operating system patching from the UserData script
View answer
Correct Answer: AC
Question #38
A company has deployed an application on AWS Elastic Beanstalk. The company has configured the Auto Scaling group that is associated with the Elastic Beanstalk environment to have five Amazon EC2 instances. If the capacity is fewer than four EC2 instances during the deployment, application performance degrades. The company is using the all-at-once deployment policy.What is the MOST cost-effective way to solve the deployment issue?
A. Change the Auto Scaling group to six desired instances
B. Change the deployment policy to traffic splitting
C. Change the deployment policy to rolling with additional batch
D. Change the deployment policy to rolling
View answer
Correct Answer: C
Question #39
A company is building a serverless application on AWS. The application uses an AWS Lambda function to process customer orders 24 hours a day, 7 days a week. The Lambda function calls an external vendor's HTTP API to process payments.During load tests, a developer discovers that the external vendor payment processing API occasionally times out and returns errors. The company expects that some payment processing API calls will return errors.The company wants the support team to receive notifications in near real time only when the payment processing external API error rate exceed 5% of the total number of transactions in an hour. Developers need to use an existing Amazon Simple Notification Service (Amazon SNS) topic that is configured to notify the support team.Which solution will meet these requirements?
A. Write the results of payment processing API calls to Amazon CloudWatch
B. Publish custom metrics to CloudWatch that record the failures of the external payment processing API calls
C. Publish the results of the external payment processing API calls to a new Amazon SNS topic
D. Write the results of the external payment processing API calls to Amazon S3
View answer
Correct Answer: B
Question #40
A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table.What is the MOST likely cause of this issue?
A. The Lambda function's concurrency limit has been exceeded
B. DynamoDB table requires a global secondary index (GSI) to support writes
C. The Lambda function does not have IAM permissions to write to DynamoDB
D. The DynamoDB table is not running in the same Availability Zone as the Lambda function
View answer
Correct Answer: C
Question #41
A developer is deploying a new application to Amazon Elastic Container Service (Amazon ECS). The developer needs to securely store and retrieve different types of variables. These variables include authentication information for a remote API, the URL for the API, and credentials. The authentication information and API URL must be available to all current and future deployed versions of the application across development, testing, and production environments.How should the developer retrieve the variables with the FEWEST application changes?
A. Update the application to retrieve the variables from AWS Systems Manager Parameter Store
B. Update the application to retrieve the variables from AWS Key Management Service (AWS KMS)
C. Update the application to retrieve the variables from an encrypted file that is stored with the application
D. Update the application to retrieve the variables from each of the deployed environments
View answer
Correct Answer: A
Question #42
A developer has written the following IAM policy to provide access to an Amazon S3 bucket:Which access does the policy allow regarding the s3:GetObject and s3:PutObject actions?
A. Access on all buckets except the “DOC-EXAMPLE-BUCKET” bucket
B. Access on all buckets that start with “DOC-EXAMPLE-BUCKET” except the “DOC-EXAMPLE-BUCKET/secrets” bucket
C. Access on all objects in the “DOC-EXAMPLE-BUCKET” bucket along with access to all S3 actions for objects in the “DOC-EXAMPLE-BUCKET” bucket that start with “secrets”
D. Access on all objects in the “DOC-EXAMPLE-BUCKET” bucket except on objects that start with “secrets”
View answer
Correct Answer: D
Question #43
A developer created an AWS Lambda function that accesses resources in a VPC. The Lambda function polls an Amazon Simple Queue Service (Amazon SQS) queue for new messages through a VPC endpoint. Then the function calculates a rolling average of the numeric values that are contained in the messages. After initial tests of the Lambda function, the developer found that the value of the rolling average that the function returned was not accurate.How can the developer ensure that the function calculates an accurate rolling average?
A. Set the function's reserved concurrency to 1
B. Modify the function to store the values in Amazon ElastiCache
C. Set the function's provisioned concurrency to 1
D. Modify the function to store the values in the function's layers
View answer
Correct Answer: A
Question #44
A company is planning to use AWS CodeDeploy to deploy an application to Amazon Elastic Container Service (Amazon ECS). During the deployment of a new version of the application, the company initially must expose only 10% of live traffic to the new version of the deployed application. Then, after 15 minutes elapse, the company must route all the remaining live traffic to the new version of the deployed application.Which CodeDeploy predefined configuration will meet these requirements?
A. CodeDeployDefault
B. CodeDeployDefault
C. CodeDeployDefault
D. CodeDeployDefault
View answer
Correct Answer: A
Question #45
A company has a multi-node Windows legacy application that runs on premises. The application uses a network shared folder as a centralized configuration repository to store configuration files in .xml format. The company is migrating the application to Amazon EC2 instances. As part of the migration to AWS, a developer must identify a solution that provides high availability for the repository.Which solution will meet this requirement MOST cost-effectively?
A. Mount an Amazon Elastic Block Store (Amazon EBS) volume onto one of the EC2 instances
B. Deploy a micro EC2 instance with an instance store volume
C. Create an Amazon S3 bucket to host the repository
D. Create an Amazon S3 bucket to host the repository
View answer
Correct Answer: C
Question #46
A developer is creating an application that includes an Amazon API Gateway REST API in the us-east-2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider.How should the developer configure the custom domain for the application?
A. mport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
B. mport the SSL/TLS certificate into CloudFront
C. mport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
D. mport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Region
View answer
Correct Answer: D
Question #47
A developer is testing a new file storage application that uses an Amazon CloudFront distribution to serve content from an Amazon S3 bucket. The distribution accesses the S3 bucket by using an origin access identity (OAI). The S3 bucket's permissions explicitly deny access to all other users.The application prompts users to authenticate on a login page and then uses signed cookies to allow users to access their personal storage directories. The developer has configured the distribution to use its default cache behavior with restricted viewer access and has set the origin to point to the S3 bucket. However, when the developer tries to navigate to the login page, the developer receives a 403 Forbidden error.The developer needs to implement a solution to allow unauthenticated access to the login page. The solution also must keep all private content secure.Which solution will meet these requirements?
A. Add a second cache behavior to the distribution with the same origin as the default cache behavior
B. Add a second cache behavior to the distribution with the same origin as the default cache behavior
C. Add a second origin as a failover origin to the default cache behavior
D. Add a bucket policy to the S3 bucket to allow read access
View answer
Correct Answer: A
Question #48
A developer is designing a serverless application for a game in which users register and log in through a web browser The application makes requests on behalf of users to a set of AWS Lambda functions that run behind an Amazon API Gateway HTTP API The developer needs to implement a solution to register and log in users on the application's sign-in page. The solution must minimize operational overhead and must minimize ongoing management of user identities. Which solution will meet these requirements'? Amazon Cognito User Pools:A managed user directory service, simplifying user registration and login. Social Identity Providers:Cognito supports integration with external providers (e.g., Google, Facebook), reducing development effort. IAM Roles for Authorization:Cognito-managed IAM roles grant fine-grained access to AWS resources (like Lambda functions). Operational Overhead:Cognito minimizes the need to manage user identities and credentials independently. Amazon Cognito Documentationhttps://docs.aws.amazon.com/cognito/ Cognito User Pools for Web Applications:https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-integration.html
A. Create Amazon Cognito user pools for external social identity providers Configure 1AM roles for the identity pools
B. Program the sign-in page to create users' 1AM groups with the 1AM roles attached to the groups
C. Create an Amazon RDS for SQL Server DB instance to store the users and manage the permissions to the backend resources in AWS
D. Configure the sign-in page to register and store the users and their passwords in an Amazon DynamoDB table with an attached IAM policy
View answer
Correct Answer: A
Question #49
A company wants to share information with a third party. The third party has an HTTP API endpoint that the company can use to share the information. The company has the required API key to access the HTTP API.The company needs a way to manage the API key by using code. The integration of the API key with the application code cannot affect application performance.Which solution will meet these requirements MOST securely?
A. Store the API credentials in AWS Secrets Manager
B. Store the API credentials in a local code variable
C. Store the API credentials as an object in a private Amazon S3 bucket
D. Store the API credentials in an Amazon DynamoDB table
View answer
Correct Answer: A
Question #50
A developer maintains an Amazon API Gateway REST API. Customers use the API through a frontend UI and Amazon Cognito authentication.The developer has a new version of the API that contains new endpoints and backward-incompatible interface changes. The developer needs to provide beta access to other developers on the team without affecting customers.Which solution will meet these requirements with the LEAST operational overhead?
A. Define a development stage on the API Gateway API
B. Define a new API Gateway API that points to the new API application code
C. Implement a query parameter in the API application code that determines which code version to call
D. Specify new API Gateway endpoints for the API endpoints that the developer wants to add
View answer
Correct Answer: A
Question #51
A developer has written an AWS Lambda function. The function is CPU-bound. The developer wants to ensure that the function returns responses quickly.How can the developer improve the function's performance?
A. Increase the function's CPU core count
B. Increase the function's memory
C. Increase the function's reserved concurrency
D. Increase the function's timeout
View answer
Correct Answer: B
Question #52
A developer is creating an application that includes an Amazon API Gateway REST API in the us-east-2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider.How should the developer configure the custom domain for the application?
A. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
B. Import the SSL/TLS certificate into CloudFront
C. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
D. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Region
View answer
Correct Answer: D
Question #53
A company is migrating legacy internal applications to AWS. Leadership wants to rewrite the internal employee directory to use native AWS services. A developer needs to create a solution for storing employee contact details and high-resolution photos for use with the new application.Which solution will enable the search and retrieval of each employee's individual details and high-resolution photos using AWS APIs?
A. Encode each employee's contact information and photos using Base64
B. Store each employee's contact information in an Amazon DynamoDB table along with the object keys for the photos stored in Amazon S3
C. Use Amazon Cognito user pools to implement the employee directory in a fully managed software-as-a-service (SaaS) method
D. Store employee contact information in an Amazon RDS DB instance with the photos stored in Amazon Elastic File System (Amazon EFS)
View answer
Correct Answer: B
Question #54
A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket.Which set of steps would be necessary to achieve this?
A. Create an event with Amazon EventBridge that will monitor the S3 bucket and then insert the records into DynamoDB
B. Configure an S3 event to invoke an AWS Lambda function that inserts records into DynamoD
C. Create an AWS Lambda function that will poll the S3 bucket and then insert the records into DynamoDB
D. Create a cron job that will run at a scheduled time and insert the records into DynamoDB
View answer
Correct Answer: B
Question #55
A development team wants to build a continuous integration/continuous delivery (CI/CD) pipeline. The team is using AWS CodePipeline to automate the code build and deployment. The team wants to store the program code to prepare for the CI/CD pipeline.Which AWS service should the team use to store the program code?
A. AWS CodeDeploy
B. AWS CodeArtifact
C. AWS CodeCommit
D. Amazon CodeGuru
View answer
Correct Answer: C
Question #56
A company needs to harden its container images before the images are in a running state. The company's application uses Amazon Elastic Container Registry (Amazon ECR) as an image registry. Amazon Elastic Kubernetes Service (Amazon EKS) for compute, and an AWS CodePipeline pipeline that orchestrates a continuous integration and continuous delivery (CI/CD) workflow.Dynamic application security testing occurs in the final stage of the pipeline after a new image is deployed to a development namespace in the EKS cluster. A developer needs to place an analysis stage before this deployment to analyze the container image earlier in the CI/CD pipeline.Which solution will meet these requirements with the MOST operational efficiency?
A. Build the container image and run the docker scan command locally
B. Create a new CodePipeline stage that occurs after the container image is built
C. Create a new CodePipeline stage that occurs after source code has been retrieved from its repository
D. Add an action to the deployment stage of the pipeline so that the action occurs before the deployment to the EKS cluster
View answer
Correct Answer: B
Question #57
An application that is hosted on an Amazon EC2 instance needs access to files that are stored in an Amazon S3 bucket. The application lists the objects that are stored in the S3 bucket and displays a table to the user. During testing, a developer discovers that the application does not show any objects in the list.What is the MOST secure way to resolve this issue?
A. Update the IAM instance profile that is attached to the EC2 instance to include the S3:* permission for the S3 bucket
B. Update the IAM instance profile that is attached to the EC2 instance to include the S3:ListBucket permission for the S3 bucket
C. Update the developer's user permissions to include the S3:ListBucket permission for the S3 bucket
D. Update the S3 bucket policy by including the S3:ListBucket permission and by setting the Principal element to specify the account number of the EC2 instance
View answer
Correct Answer: B
Question #58
A developer is building a new application on AWS. The application uses an AWS Lambda function that retrieves information from an Amazon DynamoDB table. The developer hard coded the DynamoDB table name into the Lambda function code. The table name might change over time. The developer does not want to modify the Lambda code if the table name changes.Which solution will meet these requirements MOST efficiently?
A. Create a Lambda environment variable to store the table name
B. Store the table name in a file
C. Create a file to store the table name
D. Create a global variable that is outside the handler in the Lambda function to store the table name
View answer
Correct Answer: A
Question #59
A developer is creating an application that includes an Amazon API Gateway REST API in the us-east-2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider.How should the developer configure the custom domain for the application?
A. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
B. Import the SSL/TLS certificate into CloudFront
C. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the API
D. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Region
View answer
Correct Answer: D
Question #60
A company is migrating legacy internal applications to AWS. Leadership wants to rewrite the internal employee directory to use native AWS services. A developer needs to create a solution for storing employee contact details and high-resolution photos for use with the new application.Which solution will enable the search and retrieval of each employee's individual details and high-resolution photos using AWS APIs?
A. Encode each employee's contact information and photos using Base64
B. Store each employee's contact information in an Amazon DynamoDB table along with the object keys for the photos stored in Amazon S3
C. Use Amazon Cognito user pools to implement the employee directory in a fully managed software-as-a-service (SaaS) method
D. Store employee contact information in an Amazon RDS DB instance with the photos stored in Amazon Elastic File System (Amazon EFS)
View answer
Correct Answer: B
Question #61
An application under development is required to store hundreds of video files. The data must be encrypted within the application prior to storage, with a unique key for each video file.How should the developer code the application?
A. Use the KMS Encrypt API to encrypt the data
B. Use a cryptography library to generate an encryption key for the application
C. Use the KMS GenerateDataKey API to get a data key
D. Upload the data to an S3 bucket using server side-encryption with an AWS KMS key
View answer
Correct Answer: C
Question #62
An engineer created an A/B test of a new feature on an Amazon CloudWatch Evidently project. The engineer configured two variations of the feature (Variation A and Variation B) for the test. The engineer wants to work exclusively with Variation A. The engineer needs to make updates so that Variation A is the only variation that appears when the engineer hits the application's endpoint.Which solution will meet this requirement?
A. Add an override to the feature
B. Add an override to the feature
C. Add an experiment to the project
D. Add an experiment to the project
View answer
Correct Answer: A
Question #63
A company is building a web application on AWS. When a customer sends a request, the application will generate reports and then make the reports available to the customer within one hour. Reports should be accessible to the customer for 8 hours. Some reports are larger than 1 MB. Each report is unique to the customer. The application should delete all reports that are older than 2 days.Which solution will meet these requirements with the LEAST operational overhead?
A. Generate the reports and then store the reports as Amazon DynamoDB items that have a specified TTL
B. Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption
C. Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption
D. Generate the reports and then store the reports in an Amazon RDS database with a date stamp
View answer
Correct Answer: C
Question #64
A developer is storing JSON files in an Amazon S3 bucket. The developer wants to securely share an object with a specific group of people.How can the developer securely provide temporary access to the objects that are stored in the S3 bucket?
A. et a bucket policy that restricts access after a period of time
B. se the AWS SDK to generate a presigned URL
C. onfigure static web hosting on the S3 bucket
D. et object retention on the files
View answer
Correct Answer: B
Question #65
A developer is migrating some features from a legacy monolithic application to use AWS Lambda functions instead. The application currently stores data in an Amazon Aurora DB cluster that runs in private subnets in a VPC. The AWS account has one VPC deployed. The Lambda functions and the DB cluster are deployed in the same AWS Region in the same AWS account.The developer needs to ensure that the Lambda functions can securely access the DB cluster without crossing the public internet.Which solution will meet these requirements?
A. Configure the DB cluster's public access setting to Yes
B. Configure an Amazon RDS database proxy for he Lambda functions
C. Configure a NAT gateway and a security group for the Lambda functions
D. Configure the VPC, subnets, and a security group for the Lambda functions
View answer
Correct Answer: D
Question #66
An application that is hosted on an Amazon EC2 instance needs access to files that are stored in an Amazon S3 bucket. The application lists the objects that are stored in the S3 bucket and displays a table to the user. During testing, a developer discovers that the application does not show any objects in the list.What is the MOST secure way to resolve this issue?
A. Update the IAM instance profile that is attached to the EC2 instance to include the S3:* permission for the S3 bucket
B. Update the IAM instance profile that is attached to the EC2 instance to include the S3:ListBucket permission for the S3 bucket
C. Update the developer's user permissions to include the S3:ListBucket permission for the S3 bucket
D. Update the S3 bucket policy by including the S3:ListBucket permission and by setting the Principal element to specify the account number of the EC2 instance
View answer
Correct Answer: B
Question #67
A company has deployed infrastructure on AWS. A development team wants to create an AWS Lambda function that will retrieve data from an Amazon Aurora database. The Amazon Aurora database is in a private subnet in company's VPC. The VPC is named VPC1. The data is relational in nature. The Lambda function needs to access the data securely.Which solution will meet these requirements?
A. reate the Lambda function
B. xport the data from the Aurora database to Amazon S3
C. reate the Lambda function
D. reate and launch a Lambda function in a new public subnet that is in a new VPC named VPC2
View answer
Correct Answer: C
Question #68
A development team maintains a web application by using a single AWS CloudFormation template. The template defines web servers and an Amazon RDS database. The team uses the Cloud Formation template to deploy the Cloud Formation stack to different environments.During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future.Which solutions will meet these requirements? (Choose two.)
A. Add a CloudFormation Deletion Policy attribute with the Retain value to the database resource
B. Update the CloudFormation stack policy to prevent updates to the database
C. Modify the database to use a Multi-AZ deployment
D. Create a CloudFormation stack set for the web application and database deployments
E. Add a Cloud Formation DeletionPolicy attribute with the Retain value to the stack
View answer
Correct Answer: AB
Question #69
A developer has a legacy application that is hosted on-premises. Other applications hosted on AWS depend on the on-premises application for proper functioning. In case of any application errors, the developer wants to be able to use Amazon CloudWatch to monitor and troubleshoot all applications from one place.How can the developer accomplish this?
A. Install an AWS SDK on the on-premises server to automatically send logs to CloudWatch
B. Download the CloudWatch agent to the on-premises server
C. Upload log files from the on-premises server to Amazon S3 and have CloudWatch read the files
D. Upload log files from the on-premises server to an Amazon EC2 instance and have the instance forward the logs to CloudWatch
View answer
Correct Answer: B
Question #70
A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage.How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?
A. nstall and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service
B. nstall and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service
C. apture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call
D. apture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call
View answer
Correct Answer: B
Question #71
A developer wants to expand an application to run in multiple AWS Regions. The developer wants to copy Amazon Machine Images (AMIs) with the latest changes and create a new application stack in the destination Region. According to company requirements, all AMIs must be encrypted in all Regions. However, not all the AMIs that the company uses are encrypted.How can the developer expand the application to run in the destination Region while meeting the encryption requirement?
A. Create new AMIs, and specify encryption parameters
B. Use AWS Key Management Service (AWS KMS) to enable encryption on the unencrypted AMIs
C. Use AWS Certificate Manager (ACM) to enable encryption on the unencrypted AMIs
D. Copy the unencrypted AMIs to the destination Region
View answer
Correct Answer: A
Question #72
A developer is creating an AWS CloudFormation template to deploy Amazon EC2 instances across multiple AWS accounts. The developer must choose the EC2 instances from a list of approved instance types.How can the developer incorporate the list of approved instance types in the CloudFormation template?
A. Create a separate CloudFormation template for each EC2 instance type in the list
B. In the Resources section of the CloudFormation template, create resources for each EC2 instance type in the list
C. In the CloudFormation template, create a separate parameter for each EC2 instance type in the list
D. In the CloudFormation template, create a parameter with the list of EC2 instance types as AllowedValues
View answer
Correct Answer: D
Question #73
A developer is migrating some features from a legacy monolithic application to use AWS Lambda functions instead. The application currently stores data in an Amazon Aurora DB cluster that runs in private subnets in a VPC. The AWS account has one VPC deployed. The Lambda functions and the DB cluster are deployed in the same AWS Region in the same AWS account.The developer needs to ensure that the Lambda functions can securely access the DB cluster without crossing the public internet.Which solution will meet these requirements?
A. Configure the DB cluster's public access setting to Yes
B. Configure an Amazon RDS database proxy for he Lambda functions
C. Configure a NAT gateway and a security group for the Lambda functions
D. Configure the VPC, subnets, and a security group for the Lambda functions
View answer
Correct Answer: D
Question #74
A company has installed smart meters in all its customer locations. The smart meters measure power usage at 1-minute intervals and send the usage readings to a remote endpoint for collection. The company needs to create an endpoint that will receive the smart meter readings and store the readings in a database. The company wants to store the location ID and timestamp information.The company wants to give its customers low-latency access to their current usage and historical usage on demand. The company expects demand to increase significantly. The solution must not impact performance or include downtime while scaling.Which solution will meet these requirements MOST cost-effectively?
A. Store the smart meter readings in an Amazon RDS database
B. Store the smart meter readings in an Amazon DynamoDB table
C. Store the smart meter readings in Amazon ElastiCache for Redis
D. Store the smart meter readings in Amazon S3
View answer
Correct Answer: B
Question #75
A developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit.Which of the following API Gateway metrics in Amazon CloudWatch can help the developer troubleshoot the issue? (Choose two.)
A. CacheHitCount
B. IntegrationLatency
C. CacheMissCount
D. Latency
E. Count
View answer
Correct Answer: BD
Question #76
For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?
A. BeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
B. ApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
C. BeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
D. ApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
View answer
Correct Answer: B
Question #77
A company has a web application that is deployed on AWS. The application uses an Amazon API Gateway API and an AWS Lambda function as its backend.The application recently demonstrated unexpected behavior. A developer examines the Lambda function code, finds an error, and modifies the code to resolve the problem. Before deploying the change to production, the developer needs to run tests to validate that the application operates properly.The application has only a production environment available. The developer must create a new development environment to test the code changes. The developer must also prevent other developers from overwriting these changes during the test cycle.Which combination of steps will meet these requirements with the LEAST development effort? (Choose two.)
A. Create a new resource in the current stage
B. Update the Lambda function in the API Gateway API integration request to use the hotfix alias
C. Modify the Lambda function by fixing the code
D. Modify the Lambda function by fixing the code
E. Create a new API Gateway API for the development environment
View answer
Correct Answer: BD
Question #78
A company is offering APIs as a service over the internet to provide unauthenticated read access to statistical information that is updated daily. The company uses Amazon API Gateway and AWS Lambda to develop the APIs. The service has become popular, and the company wants to enhance the responsiveness of the APIs.Which action can help the company achieve this goal?
A. Enable API caching in API Gateway
B. Configure API Gateway to use an interface VPC endpoint
C. Enable cross-origin resource sharing (CORS) for the APIs
D. Configure usage plans and API keys in API Gateway
View answer
Correct Answer: A
Question #79
An application uses Lambda functions to extract metadata from files uploaded to an S3 bucket; the metadata is stored in Amazon DynamoDB. The application starts behaving unexpectedly, and the developer wants to examine the logs of the Lambda function code for errors.Based on this system configuration, where would the developer find the logs?
A. Amazon S3
B. AWS CloudTrail
C. Amazon CloudWatch
D. Amazon DynamoDB
View answer
Correct Answer: C
Question #80
A developer is writing an AWS Lambda function. The developer wants to log key events that occur while the Lambda function runs. The developer wants to include a unique identifier to associate the events with a specific function invocation. The developer adds the following code to the Lambda function:Which solution will meet this requirement?
A. Obtain the request identifier from the AWS request ID field in the context object
B. Obtain the request identifier from the AWS request ID field in the event object
C. Obtain the request identifier from the AWS request ID field in the event object
D. Obtain the request identifier from the AWS request ID field in the context object
View answer
Correct Answer: A
Question #81
An application interacts with Amazon Aurora to store and track customer information. The primary database is set up with multiple read replicas to improve the performance of read queries. However, one of the Aurora replicas is receiving most or all of the traffic, while the other Aurora replicas remain idle.
A. Disable application-level DNS caching
B. Enable application-level DNS caching
C. Enable application pooling
D. Disable application pooling
View answer
Correct Answer: A
Question #82
A developer is designing a serverless application with two AWS Lambda functions to process photos. One Lambda function stores objects in an Amazon S3 bucket and stores the associated metadata in an Amazon DynamoDB table. The other Lambda function fetches the objects from the S3 bucket by using the metadata from the DynamoDB table. Both Lambda functions use the same Python library to perform complex computations and are approaching the quota for the maximum size of zipped deployment packages.What should the developer do to reduce the size of the Lambda deployment packages with the LEAST operational overhead?
A. Package each Python library in its own
B. Create a Lambda layer with the required Python library
C. Combine the two Lambda functions into one Lambda function
D. Download the Python library to an S3 bucket
View answer
Correct Answer: B
Question #83
A company has installed smart meters in all its customer locations. The smart meters measure power usage at 1-minute intervals and send the usage readings to a remote endpoint for collection. The company needs to create an endpoint that will receive the smart meter readings and store the readings in a database. The company wants to store the location ID and timestamp information.The company wants to give its customers low-latency access to their current usage and historical usage on demand. The company expects demand to increase significantly. The solution must not impact performance or include downtime while scaling.Which solution will meet these requirements MOST cost-effectively?
A. Store the smart meter readings in an Amazon RDS database
B. Store the smart meter readings in an Amazon DynamoDB table
C. Store the smart meter readings in Amazon ElastiCache for Redis
D. Store the smart meter readings in Amazon S3
View answer
Correct Answer: B
Question #84
A developer is testing an application locally and has deployed the application to an AWS Lambda function. To avoid exceeding the deployment package size quota, the developer did not include the dependencies in the deployment file.When the developer tests the application remotely, the Lambda function does not run because of missing dependencies. Which solution will resolve this issue?
A. Use the Lambda console editor to update the code and include the missing dependencies
B. Create an additional
C. Add references to the missing dependencies in the Lambda function's environment variables
D. Create a layer that contains the missing dependencies
View answer
Correct Answer: d
Question #85
A developer is using AWS Amplify Hosting to build and deploy an application. The developer is receiving an increased number of bug reports from users. The developer wants to add end-to-end testing to the application to eliminate as many bugs as possible before the bugs reach production.Which solution should the developer implement to meet these requirements?
A. Run the amplify add test command in the Amplify CLI
B. Create unit tests in the application
C. Add a test phase to the amplify
D. Add a test phase to the aws-exports
View answer
Correct Answer: C
Question #86
A company has deployed an application on AWS Elastic Beanstalk. The company has configured the Auto Scaling group that is associated with the Elastic Beanstalk environment to have five Amazon EC2 instances. If the capacity is fewer than four EC2 instances during the deployment, application performance degrades. The company is using the all-at-once deployment policy.What is the MOST cost-effective way to solve the deployment issue?
A. Change the Auto Scaling group to six desired instances
B. Change the deployment policy to traffic splitting
C. Change the deployment policy to rolling with additional batch
D. Change the deployment policy to rolling
View answer
Correct Answer: C
Question #87
An engineer created an A/B test of a new feature on an Amazon CloudWatch Evidently project. The engineer configured two variations of the feature (Variation A and Variation B) for the test. The engineer wants to work exclusively with Variation A. The engineer needs to make updates so that Variation A is the only variation that appears when the engineer hits the application's endpoint.Which solution will meet this requirement?
A. Add an override to the feature
B. Add an override to the feature
C. Add an experiment to the project
D. Add an experiment to the project
View answer
Correct Answer: A
Question #88
A developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit.Which of the following API Gateway metrics in Amazon CloudWatch can help the developer troubleshoot the issue? (Choose two.)
A. acheHitCount
B. ntegrationLatency
C. acheMissCount
D. atency
E. ount
View answer
Correct Answer: BD
Question #89
A company is migrating an on-premises database to Amazon RDS for MySQL. The company has read-heavy workloads. The company wants to refactor the code to achieve optimum read performance for queries.Which solution will meet this requirement with LEAST current and future effort?
A. Use a multi-AZ Amazon RDS deployment
B. Use a multi-AZ Amazon RDS deployment
C. Deploy Amazon RDS with one or more read replicas
D. Use open source replication software to create a copy of the MySQL database on an Amazon EC2 instance
View answer
Correct Answer: C
Question #90
A financial company must store original customer records for 10 years for legal reasons. A complete record contains personally identifiable information (PII). According to local regulations, PII is available to only certain people in the company and must not be shared with third parties. The company needs to make the records available to third-party organizations for statistical analysis without sharing the PII.A developer wants to store the original immutable record in Amazon S3. Depending on who accesses the S3 document, the document should be returned as is or with all the PII removed. The developer has written an AWS Lambda function to remove the PII from the document. The function is named removePii.What should the developer do so that the company can meet the PII requirements while maintaining only one copy of the document?
A. Set up an S3 event notification that invokes the removePii function when an S3 GET request is made
B. Set up an S3 event notification that invokes the removePii function when an S3 PUT request is made
C. Create an S3 Object Lambda access point from the S3 console
D. Create an S3 access point from the S3 console
View answer
Correct Answer: C
Question #91
A company is running Amazon EC2 instances in multiple AWS accounts. A developer needs to implement an application that collects all the lifecycle events of the EC2 instances. The application needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in the company's main AWS account for further processing.Which solution will meet these requirements?
A. Configure Amazon EC2 to deliver the EC2 instance lifecycle events from all accounts to the Amazon EventBridge event bus of the main account
B. Use the resource policies of the SQS queue in the main account to give each account permissions to write to that SQS queue
C. Write an AWS Lambda function that scans through all EC2 instances in the company accounts to detect EC2 instance lifecycle changes
D. Configure the permissions on the main account event bus to receive events from all accounts
View answer
Correct Answer: D
Question #92
A developer is implementing an AWS Cloud Development Kit (AWS CDK) serverless application. The developer will provision several AWS Lambda functions and Amazon API Gateway APIs during AWS CloudFormation stack creation. The developer's workstation has the AWS Serverless Application Model (AWS SAM) and the AWS CDK installed locally.How can the developer test a specific Lambda function locally?
A. Run the sam package and sam deploy commands
B. Run the cdk synth and cdk deploy commands
C. Run the cdk synth and sam local invoke commands with the function construct identifier and the path to the synthesized CloudFormation template
D. Run the cdk synth and sam local start-lambda commands with the function construct identifier and the path to the synthesized CloudFormation template
View answer
Correct Answer: C
Question #93
A developer has written the following IAM policy to provide access to an Amazon S3 bucket:Which access does the policy allow regarding the s3:GetObject and s3:PutObject actions?
A. Access on all buckets except the “DOC-EXAMPLE-BUCKET” bucket
B. Access on all buckets that start with “DOC-EXAMPLE-BUCKET” except the “DOC-EXAMPLE-BUCKET/secrets” bucket
C. Access on all objects in the “DOC-EXAMPLE-BUCKET” bucket along with access to all S3 actions for objects in the “DOC-EXAMPLE-BUCKET” bucket that start with “secrets”
D. Access on all objects in the “DOC-EXAMPLE-BUCKET” bucket except on objects that start with “secrets”
View answer
Correct Answer: D
Question #94
An application is processing clickstream data using Amazon Kinesis. The clickstream data feed into Kinesis experiences periodic spikes. The PutRecords API call occasionally fails and the logs show that the failed call returns the response shown below:Which techniques will help mitigate this exception? (Choose two.)
A. Implement retries with exponential backoff
B. Use a PutRecord API instead of PutRecords
C. Reduce the frequency and/or size of the requests
D. Use Amazon SNS instead of Kinesis
E. Reduce the number of KCL consumers
View answer
Correct Answer: AC
Question #95
A developer is creating an AWS Lambda function that needs credentials to connect to an Amazon RDS for MySQL database. An Amazon S3 bucket currently stores the credentials. The developer needs to improve the existing solution by implementing credential rotation and secure storage. The developer also needs to provide integration with the Lambda function.Which solution should the developer use to store and retrieve the credentials with the LEAST management overhead?
A. ncrypt the credentials by using AWS Key Management Service (AWS KMS)
B. tore the credentials in AWS Secrets Manager
C. ncrypt the credentials with the default AWS Key Management Service (AWS KMS) key
D. tore the credentials in AWS Systems Manager Parameter Store
View answer
Correct Answer: B
Question #96
A company wants to share information with a third party. The third party has an HTTP API endpoint that the company can use to share the information. The company has the required API key to access the HTTP API.The company needs a way to manage the API key by using code. The integration of the API key with the application code cannot affect application performance.Which solution will meet these requirements MOST securely?
A. Store the API credentials in AWS Secrets Manager
B. Store the API credentials in a local code variable
C. Store the API credentials as an object in a private Amazon S3 bucket
D. Store the API credentials in an Amazon DynamoDB table
View answer
Correct Answer: A
Question #97
A company has deployed infrastructure on AWS. A development team wants to create an AWS Lambda function that will retrieve data from an Amazon Aurora database. The Amazon Aurora database is in a private subnet in company's VPC. The VPC is named VPC1. The data is relational in nature. The Lambda function needs to access the data securely.Which solution will meet these requirements?
A. Create the Lambda function
B. Create and launch a Lambda function in a new public subnet that is in a new VPC named VPC2
C. Create the Lambda function
D. Export the data from the Aurora database to Amazon S3
View answer
Correct Answer: A
Question #98
A developer is implementing an AWS Cloud Development Kit (AWS CDK) serverless application. The developer will provision several AWS Lambda functions and Amazon API Gateway APIs during AWS CloudFormation stack creation. The developer's workstation has the AWS Serverless Application Model (AWS SAM) and the AWS CDK installed locally.How can the developer test a specific Lambda function locally?
A. Run the sam package and sam deploy commands
B. Run the cdk synth and cdk deploy commands
C. Run the cdk synth and sam local invoke commands with the function construct identifier and the path to the synthesized CloudFormation template
D. Run the cdk synth and sam local start-lambda commands with the function construct identifier and the path to the synthesized CloudFormation template
View answer
Correct Answer: C

View The Updated AWS Exam Questions

SPOTO Provides 100% Real AWS Exam Questions for You to Pass Your AWS Exam!

View Answers after Submission

Please submit your email and WhatsApp to get the answers of questions.

Note: Please make sure your email ID and Whatsapp are valid so that you can get the correct exam results.

Email:
Whatsapp/phone number:
Contact Us