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 Part4

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
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

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 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?
A. Create an AWS Lambda function
B. Create an Amazon EC2 instance that serves the backend REST API by using an AWS CloudFormation template
C. Customize the API Gateway stage to select a response type based on the request
D. Use a request mapping template to select the mock integration response
View answer
Correct Answer: D
Question #3
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 #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. reate an AWS Key Management Service (AWS KMS) key
B. et the x-amz-server-side-encryption header when invoking the PutObject API operation
C. rovide the encryption key in the HTTP header of every request
D. pply TLS to encrypt the traffic to the S3 bucket
View answer
Correct Answer: B
Question #5
A company's developer has deployed an application in AWS by using AWS CloudFormation The CloudFormation stack includes parameters in AWS Systems Manager Parameter Store that the application uses as configuration settings. The application can modify the parameter values When the developer updated the stack to create additional resources with tags, the developer noted that the parameter values were reset and that the values ignored the latest changes made by the application. The developer needs to change the way the company deploys the CloudFormation stack. The developer also needs to avoid resetting the parameter values outside the stack.Which solution will meet these requirements with the LEAST development effort?
A. reate an Amazon RDS DB instance as a resource in the CloudFormation stack
B. odify the CloudFormation stack policy to deny updates on Parameter Store parameters
C. odify the CloudFormation stack to set the deletion policy to Retain for the Parameter Store parameters
D. reate an Amazon DynamoDB table as a resource in the CloudFormation stack to hold configuration data for the application Migrate the parameters that the application is modifying from Parameter Store to the DynamoDB table
View answer
Correct Answer: C
Question #6
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 #7
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 #8
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 #9
A developer is designing an AWS Lambda function that creates temporary files that are less than 10 MB during invocation. The temporary files will be accessed and modified multiple times during invocation. The developer has no need to save or retrieve these files in the future.Where should the temporary files be stored?
A. the /tmp directory
B. Amazon Elastic File System (Amazon EFS)
C. Amazon Elastic Block Store (Amazon EBS)
D. Amazon S3
View answer
Correct Answer: A
Question #10
A developer creates a VPC named VPC-A that has public and private subnets. The developer also creates an Amazon RDS database inside the private subnet of VPC-A. To perform some queries, the developer creates an AWS Lambda function in the default VPC. The Lambda function has code to access the RDS database. When the Lambda function runs, an error message indicates that the function cannot connect to the RDS database.How can the developer solve this problem?
A. Modify the RDS security group
B. Redeploy the Lambda function in the same subnet as the RDS instance
C. Create a security group for the Lambda function
D. Create an IAM role
View answer
Correct Answer: B
Question #11
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 #12
A company is developing a serverless application by using AWS Lambda functions. One of the Lambda functions needs to access an Amazon RDS DB instance. The DB instance is in a private subnet inside a VPC.The company creates a role that includes the necessary permissions to access the DB instance. The company then assigns the role to the Lambda function. A developer must take additional action to give the Lambda function access to the DB instance.What should the developer do to meet these requirements?
A. et up an AWS Direct Connect connection between the Lambda function and the DB instance
B. onfigure the Lambda function to connect to the private subnets in the VPC
C. ssign a public IP address to the DB instance
D. onfigure an Amazon CloudFront distribution to create a secure connection between the Lambda function and the DB instance
View answer
Correct Answer: B
Question #13
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 #14
Given the source code for an AWS Lambda function in the local file store.py containing a handler function called getstore and the following AWS CloudFormation template:Transform: AWS::Serverless-2016-10-31Resources:StoreFunc:Type: AWS::Serverless::FunctionProperties:Handler: store.getstoreRuntime: python3.13What should be done to prepare the template so that it can be deployed using the AWS CLI command aws cloudformation deploy?
A. Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template
B. Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template
C. Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting
D. Use aws serverless create-package to embed the source file directly into the existing CloudFormation template
View answer
Correct Answer: B
Question #15
A company is building a serverless application that uses AWS Lambda functions. The company needs to create a set of test events to test Lambda functions in a development environment. The test events will be created once and then will be used by all the developers in an IAM developer group. The test events must be editable by any of the IAM users in the IAM developer group.Which solution will meet these requirements?
A. Create and store the test events in Amazon S3 as JSON objects
B. Create the test events
C. Create and store the test events in Amazon DynamoDB
D. Create the test events
View answer
Correct Answer: B
Question #16
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?
A. Create an AWS Lambda function
B. Create an Amazon EC2 instance that serves the backend REST API by using an AWS CloudFormation template
C. Customize the API Gateway stage to select a response type based on the request
D. Use a request mapping template to select the mock integration response
View answer
Correct Answer: D
Question #17
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 #18
A company is building a serverless application that uses AWS Lambda functions. The company needs to create a set of test events to test Lambda functions in a development environment. The test events will be created once and then will be used by all the developers in an IAM developer group. The test events must be editable by any of the IAM users in the IAM developer group.Which solution will meet these requirements?
A. Create and store the test events in Amazon S3 as JSON objects
B. Create the test events
C. Create and store the test events in Amazon DynamoDB
D. Create the test events
View answer
Correct Answer: B
Question #19
A company hosts a client-side web application for one of its subsidiaries on Amazon S3. The web application can be accessed through Amazon CloudFront from https://www.example.com. After a successful rollout, the company wants to host three more client-side web applications for its remaining subsidiaries on three separate S3 buckets.To achieve this goal, a developer moves all the common JavaScript files and web fonts to a central S3 bucket that serves the web applications. However, during testing, the developer notices that the browser blocks the JavaScript files and web fonts.What should the developer do to prevent the browser from blocking the JavaScript files and web fonts?
A. Create four access points that allow access to the central S3 bucket
B. Create a bucket policy that allows access to the central S3 bucket
C. Create a cross-origin resource sharing (CORS) configuration that allows access to the central S3 bucket
D. Create a Content-MD5 header that provides a message integrity check for the central S3 bucket
View answer
Correct Answer: C
Question #20
A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream. The company recently observed slow processing of the records. A developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal.Which actions should the developer take to increase the processing speed? (Choose two.)
A. Increase the number of shards of the Kinesis data stream
B. Decrease the timeout of the Lambda function
C. Increase the memory that is allocated to the Lambda function
D. Decrease the number of shards of the Kinesis data stream
E. Increase the timeout of the Lambda function
View answer
Correct Answer: AC
Question #21
A developer is working on an existing application that uses Amazon DynamoDB as its data store. The DynamoDB table has the following attributes: partNumber (partition key), vendor (sort key), description, productFamily, and productType. When the developer analyzes the usage patterns, the developer notices that there are application modules that frequently look for a list of products based on the productFamily and productType attributes.The developer wants to make changes to the application to improve performance of the query operations.Which solution will meet these requirements?
A. Create a global secondary index (GSI) with productFamily as the partition key and productType as the sort key
B. Create a local secondary index (LSI) with productFamily as the partition key and productType as the sort key
C. Recreate the table
D. Update the queries to use Scan operations with productFamily as the partition key and productType as the sort key
View answer
Correct Answer: A
Question #22
A developer used the AWS SDK to create an application that aggregates and produces log records for 10 services. The application delivers data to an Amazon Kinesis Data Streams stream.Each record contains a log message with a service name, creation timestamp, and other log information. The stream has 15 shards in provisioned capacity mode. The stream uses service name as the partition key.The developer notices that when all the services are producing logs,ProvisionedThroughputExceededException errors occur during PutRecord requests. The stream metrics show that the write capacity the applications use is below the provisioned capacity.
A. se a separate Kinesis stream for each service to generate the logs
B. ouble the number of shards until the throttling errors stop occurring
C. hange the partition key from service name to creation timestamp
D. hange the capacity mode from provisioned to on-demand
View answer
Correct Answer: C
Question #23
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. Store the credentials in AWS Systems Manager Parameter Store
B. Encrypt the credentials with the default AWS Key Management Service (AWS KMS) key
C. Store the credentials in AWS Secrets Manager
D. Encrypt the credentials by using AWS Key Management Service (AWS KMS)
View answer
Correct Answer: C
Question #24
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 #25
An 1AM role is attached to an Amazon EC2 instance that explicitly denies access to all Amazon S3 API actions. The EC2 instance credentials file specifies the 1AM access key and secret access key, which allow full administrative access.Given that multiple modes of 1AM access are present for this EC2 instance, which of the following is correct?
A. he EC2 instance will be able to perform all actions on any S3 bucket
B. he EC2 instance will only be able to list the contents of one S3 bucket at a time
C. he EC2 instance will not be able to perform any S3 action on any S3 bucket
D. he EC2 instance will only be able to list the S3 buckets
View answer
Correct Answer: C
Question #26
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 #27
A developer is building an application that processes a stream of user-supplied data. The data stream must be consumed by multiple Amazon EC2 based processing applications in parallel and in real time. Each processor must be able to resume without losing data if there is a service interruption. The application architect plans to add other processors in the near future, and wants to minimize the amount of data duplication involved.Which solution will satisfy these requirements?
A. ublish the data to Amazon Kinesis Data Streams
B. ublish the data to Amazon Simple Queue Service (Amazon SQS)
C. ublish the data to Amazon Data Firehose
D. ublish the data to Amazon EventBridge
View answer
Correct Answer: A
Question #28
A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda.Which AWS service or tool should the developer use to define serverless resources in YAML?
A. loudFormation serverless intrinsic functions
B. WS Elastic Beanstalk
C. WS Serverless Application Model (AWS SAM)
D. WS Cloud Development Kit (AWS CDK)
View answer
Correct Answer: C
Question #29
A developer deployed an application to an Amazon EC2 instance. The application needs to know the public IPv4 address of the instance.How can the application find this information?
A. Query the instance metadata from http://169
B. Query the instance user data from http://169
C. Query the Amazon Machine Image (AMI) information from http://169
D. Check the hosts file of the operating system
View answer
Correct Answer: A
Question #30
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 #31
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 #32
A developer needs to migrate an online retail application to AWS to handle an anticipated increase in traffic. The application currently runs on two servers: one server for the web application and another server for the database. The web server renders webpages and manages session state in memory. The database server hosts a MySQL database that contains order details. When traffic to the application is heavy, the memory usage for the web server approaches 100% and the application slows down considerably.The developer has found that most of the memory increase and performance decrease is related to the load of managing additional user sessions. For the web server migration, the developer will use Amazon EC2 instances with an Auto Scaling group behind an Application Load Balancer.Which additional set of changes should the developer make to the application to improve the application's performance?
A. Use an EC2 instance to host the MySQL database
B. Use Amazon ElastiCache for Memcached to store and manage the session data
C. Use Amazon ElastiCache for Memcached to store and manage the session data and the application data
D. Use the EC2 instance store to manage the session data
View answer
Correct Answer: B
Question #33
A developer has created an AWS Lambda function to provide notification through Amazon Simple Notification Service (Amazon SNS) whenever a file is uploaded to Amazon S3 that is larger than 50 MB. The developer has deployed and tested the Lambda function by using the CLI. However, when the event notification is added to the S3 bucket and a 3,000 MB file is uploaded, the Lambda function does not launch.Which of the following is a possible reason for the Lambda function's inability to launch?
A. The S3 event notification does not activate for files that are larger than 1,000 MB
B. The resource-based policy for the Lambda function does not have the required permissions to be invoked by Amazon S3
C. Lambda functions cannot be invoked directly from an S3 event
D. The S3 bucket needs to be made public
View answer
Correct Answer: B
Question #34
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. pdate the application to retrieve the variables from AWS Systems Manager Parameter Store
B. pdate the application to retrieve the variables from AWS Key Management Service (AWS KMS)
C. pdate the application to retrieve the variables from an encrypted file that is stored with the application
D. pdate the application to retrieve the variables from each of the deployed environments
View answer
Correct Answer: A
Question #35
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 #36
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 #37
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 #38
A developer wants to debug an application by searching and filtering log data. The application logs are stored in Amazon CloudWatch Logs. The developer creates a new metric filter to count exceptions in the application logs. However, no results are returned from the logs.What is the reason that no filtered results are being returned?
A. A setup of the Amazon CloudWatch interface VPC endpoint is required for filtering the CloudWatch Logs in the VPC
B. CloudWatch Logs only publishes metric data for events that happen after the filter is created
C. The log group for CloudWatch Logs should be first streamed to Amazon OpenSearch Service before metric filtering returns the results
D. Metric data points for logs groups can be filtered only after they are exported to an Amazon S3 bucket
View answer
Correct Answer: B
Question #39
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 #40
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 #41
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 #42
A developer has code that is stored in an Amazon S3 bucket. The code must be deployed as an AWS Lambda function across multiple accounts in the same AWS Region as the S3 bucket an AWS CloudPormation template that runs for each account will deploy the Lambda function.What is the MOST secure way to allow CloudFormaton to access the Lambda Code in the S3 bucket?
A. se a service-based link to grant the Lambda function the S3 ListBucket and GetObject permissions by explicitly adding the S3 bucket's account number in the resource
B. se a service-based link to grant the Lambda function the S3 GetObject permission Add a resource of"** to allow access to the S3 bucket
C. rant the CloudFormation service role the S3 ListBucket and GetObject permissions
D. rant the CloudFormation service row the S3 GetObfect permission
View answer
Correct Answer: D
Question #43
A company is planning to securely manage one-time fixed license keys in AWS. The company's development team needs to access the license keys in automaton scripts that run in Amazon EC2 instances and in AWS CloudFormation stacks.Which solution will meet these requirements MOST cost-effectively?
A. Amazon S3 with encrypted files prefixed with “config”
B. AWS Secrets Manager secrets with a tag that is named SecretString
C. AWS Systems Manager Parameter Store SecureString parameters
D. CloudFormation NoEcho parameters
View answer
Correct Answer: C
Question #44
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 #45
A developer is creating an application that will store personal health information (PHI). The PHI needs to be encrypted at all times. An encrypted Amazon RDS for MySQL DB instance is storing the data. The developer wants to increase the performance of the application by caching frequently accessed data while adding the ability to sort or rank the cached datasets.Which solution will meet these requirements?
A. Create an Amazon ElastiCache for Redis instance
B. Create an Amazon ElastiCache for Memcached instance
C. Create an Amazon RDS for MySQL read replica
D. Create an Amazon DynamoDB table and a DynamoDB Accelerator (DAX) cluster for the table
View answer
Correct Answer: A
Question #46
A developer is using an AWS Lambda function to generate avatars for profile pictures that are uploaded to an Amazon S3 bucket. The Lambda function is automatically invoked for profile pictures that are saved under the /original/ S3 prefix. The developer notices that some pictures cause the Lambda function to time out. The developer wants to implement a fallback mechanism by using another Lambda function that resizes the profile picture.Which solution will meet these requirements with the LEAST development effort?
A. Set the image resize Lambda function as a destination of the avatar generator Lambda function for the events that fail processing
B. Create an Amazon Simple Queue Service (Amazon SQS) queue
C. Create an AWS Step Functions state machine that invokes the avatar generator Lambda function and uses the image resize Lambda function as a fallback
D. Create an Amazon Simple Notification Service (Amazon SNS) topic
View answer
Correct Answer: A
Question #47
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. Store the credentials in AWS Systems Manager Parameter Store
B. Encrypt the credentials with the default AWS Key Management Service (AWS KMS) key
C. Store the credentials in AWS Secrets Manager
D. Encrypt the credentials by using AWS Key Management Service (AWS KMS)
View answer
Correct Answer: C
Question #48
A company is using Amazon API Gateway for its REST APIs in an AWS account. A Developer wants to allow only IAM users from another AWS account to access the APIs.Which combination of Steps should the developer take to meet these requirements?(Select TWO.)
A. Create a REST API for each environment
B. Create one REST API
C. Create one REST API
D. Create one REST API
View answer
Correct Answer: b
Question #49
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: D
Question #50
An ecommerce company is using an AWS Lambda function behind Amazon API Gateway as its application tier. To process orders during checkout, the application calls a POST API from the frontend. The POST API invokes the Lambda function asynchronously. In rare situations, the application has not processed orders. The Lambda application logs show no errors or failures.What should a developer do to solve this problem?
A. Inspect the frontend logs for API failures
B. Create and inspect the Lambda dead-letter queue
C. Inspect the Lambda logs in Amazon CloudWatch for possible errors
D. Make sure that caching is disabled for the POST API in API Gateway
View answer
Correct Answer: B
Question #51
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 #52
A developer wants to store information about movies. Each movie has a title, release year, and genre. The movie information also can include additional properties about the cast and production crew. This additional information is inconsistent across movies. For example, one movie might have an assistant director, and another movie might have an animal trainer.The developer needs to implement a solution to support the following use cases:For a given title and release year, get all details about the movie that has that title and release year.For a given title, get all details about all movies that have that title.For a given genre, get all details about all movies in that genre.Which data store configuration will meet these requirements?
A. Create an Amazon DynamoDB table
B. Create an Amazon DynamoDB table
C. On an Amazon RDS DB instance, create a table that contains columns for title, release year, and genre
D. On an Amazon RDS DB instance, create a table where the primary key is the title and all other data is encoded into JSON format as one additional column
View answer
Correct Answer: A
Question #53
A company is using an Amazon API Gateway REST API endpoint as a webhook to publish events from an on-premises source control management (SCM) system to Amazon EventBridge. The company has configured an EventBridge rule to listen for the events and to control application deployment in a central AWS account. The company needs to receive the same events across multiple receiver AWS accounts.How can a developer meet these requirements without changing the configuration of the SCM system?
A. Deploy the API Gateway REST API to all the required AWS accounts
B. Deploy the API Gateway REST API to all the receiver AWS accounts
C. Grant permission to the central AWS account for EventBridge to access the receiver AWS accounts
D. Convert the API Gateway type from REST API to HTTP API
View answer
Correct Answer: C
Question #54
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?
A. Create an AWS Lambda function
B. Create an Amazon EC2 instance that serves the backend REST API by using an AWS CloudFormation template
C. Customize the API Gateway stage to select a response type based on the request
D. Use a request mapping template to select the mock integration response
View answer
Correct Answer: D
Question #55
A company is building a serverless application that uses AWS Lambda functions. The company needs to create a set of test events to test Lambda functions in a development environment. The test events will be created once and then will be used by all the developers in an IAM developer group. The test events must be editable by any of the IAM users in the IAM developer group.Which solution will meet these requirements?
A. Create and store the test events in Amazon S3 as JSON objects
B. Create the test events
C. Create and store the test events in Amazon DynamoDB
D. Create the test events
View answer
Correct Answer: B
Question #56
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. Store the credentials in AWS Systems Manager Parameter Store
B. Encrypt the credentials with the default AWS Key Management Service (AWS KMS) key
C. Store the credentials in AWS Secrets Manager
D. Encrypt the credentials by using AWS Key Management Service (AWS KMS)
View answer
Correct Answer: C
Question #57
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 #58
A developer is adding Amazon ElastiCache for Memcached to a company's existing record storage application. The developer has decided to use lazy loading based on an analysis of common record handling patterns. Which pseudocode example will correctly implement lazy loading?
A. record_value = db
B. record_value = cache
C. record_value = cache
D. record_value = db
View answer
Correct Answer: b
Question #59
A company hosts a batch processing application on AWS Elastic Beanstalk with instances that run the most recent version of Amazon Linux. The application sorts and processes large datasets.In recent weeks, the application's performance has decreased significantly during a peak period for traffic. A developer suspects that the application issues are related to the memory usage. The developer checks the Elastic Beanstalk console and notices that memory usage is not being tracked.How should the developer gather more information about the application performance issues?
A. Configure the Amazon CloudWatch agent to push logs to Amazon CloudWatch Logs by using port 443
B. Configure the Elastic Beanstalk
C. Configure the Amazon CloudWatch agent to track the memory usage of the instances
D. Configure an Amazon CloudWatch dashboard to track the memory usage of the instances
View answer
Correct Answer: C
Question #60
An online sales company is developing a serverless application that runs on AWS. The application uses an AWS Lambda function that calculates order success rates and stores the data in an Amazon DynamoDB table.A developer wants an efficient way to invoke the Lambda function every 15 minutes.Which solution will meet this requirement with the LEAST development effort?
A. reate an AWS Systems Manager document that has a script that will invoke the Lambda function on Amazon EC2
B. reate an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minutes
C. reate an AWS Step Functions state machine
D. rovision a small Amazon EC2 instance
View answer
Correct Answer: B
Question #61
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 #62
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 #63
A developer previously deployed an AWS Lambda function as a .zip package. The developer needs to deploy the Lambda function as a container. Why Option A is Correct:Converting a Lambda function to use a container image involves packaging the function code into a container image, storing the image in Amazon Elastic Container Registry (ECR), and updating the function to use the ECR repository URI. Why Other Options are Incorrect: Option B: SAM templates support container-based Lambda deployment, but storing the image in S3 is not applicable. Option C: CloudFormation does not natively support specifying Lambda container images in S3. Option D: While partially correct, it omits the need to specify the image tag for the deployment. AWS Documentation Reference: Lambda Container Images
A. Create an Amazon ECR repository in the same AWS Region as the Lambda function
B. Create an AWS SAM template that defines the Lambda function and its resources as code
C. Create an AWS CloudFormation template that defines the Lambda function and its resources as code
D. Create an Amazon ECR repository in the same AWS Region as the Lambda function
View answer
Correct Answer: A
Question #64
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 #65
A company hosts a client-side web application for one of its subsidiaries on Amazon S3. The web application can be accessed through Amazon CloudFront from https://www.example.com. After a successful rollout, the company wants to host three more client-side web applications for its remaining subsidiaries on three separate S3 buckets.To achieve this goal, a developer moves all the common JavaScript files and web fonts to a central S3 bucket that serves the web applications. However, during testing, the developer notices that the browser blocks the JavaScript files and web fonts.What should the developer do to prevent the browser from blocking the JavaScript files and web fonts?
A. Create four access points that allow access to the central S3 bucket
B. Create a bucket policy that allows access to the central S3 bucket
C. Create a cross-origin resource sharing (CORS) configuration that allows access to the central S3 bucket
D. Create a Content-MD5 header that provides a message integrity check for the central S3 bucket
View answer
Correct Answer: C
Question #66
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. se S3 Event Notifications to validate the file upload and download requests and update the user interface (UI)
B. ave the details of the uploaded files in a separate Amazon DynamoDB table
C. se Amazon API Gateway and an AWS Lambda function to upload and download files
D. se 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 #67
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 #68
A developer deployed an application to an Amazon EC2 instance. The application needs to know the public IPv4 address of the instance.How can the application find this information?
A. Query the instance metadata from http://169
B. Query the instance user data from http://169
C. Query the Amazon Machine Image (AMI) information from http://169
D. Check the hosts file of the operating system
View answer
Correct Answer: A
Question #69
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. btain the request identifier from the AWS request ID field in the context object
B. btain the request identifier from the AWS request ID field in the event object
C. btain the request identifier from the AWS request ID field in the event object
D. btain the request identifier from the AWS request ID field in the context object
View answer
Correct Answer: A
Question #70
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 #71
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 #72
A company hosts a batch processing application on AWS Elastic Beanstalk with instances that run the most recent version of Amazon Linux. The application sorts and processes large datasets.In recent weeks, the application's performance has decreased significantly during a peak period for traffic. A developer suspects that the application issues are related to the memory usage. The developer checks the Elastic Beanstalk console and notices that memory usage is not being tracked.How should the developer gather more information about the application performance issues?
A. Configure the Amazon CloudWatch agent to push logs to Amazon CloudWatch Logs by using port 443
B. Configure the Elastic Beanstalk
C. Configure the Amazon CloudWatch agent to track the memory usage of the instances
D. Configure an Amazon CloudWatch dashboard to track the memory usage of the instances
View answer
Correct Answer: C
Question #73
A company hosts a batch processing application on AWS Elastic Beanstalk with instances that run the most recent version of Amazon Linux. The application sorts and processes large datasets.In recent weeks, the application's performance has decreased significantly during a peak period for traffic. A developer suspects that the application issues are related to the memory usage. The developer checks the Elastic Beanstalk console and notices that memory usage is not being tracked.How should the developer gather more information about the application performance issues?
A. Configure the Amazon CloudWatch agent to push logs to Amazon CloudWatch Logs by using port 443
B. Configure the Elastic Beanstalk
C. Configure the Amazon CloudWatch agent to track the memory usage of the instances
D. Configure an Amazon CloudWatch dashboard to track the memory usage of the instances
View answer
Correct Answer: C
Question #74
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 #75
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 #76
A developer has an application that makes batch requests directly to Amazon DynamoDB by using the BatchGetItem low-level API operation. The responses frequently return values in the UnprocessedKeys element.Which actions should the developer take to increase the resiliency of the application when the batch response includes values in UnprocessedKeys? (Choose two.)
A. Retry the batch operation immediately
B. Retry the batch operation with exponential backoff and randomized delay
C. Update the application to use an AWS software development kit (AWS SDK) to make the requests
D. Increase the provisioned read capacity of the DynamoDB tables that the operation accesses
E. Increase the provisioned write capacity of the DynamoDB tables that the operation accesses
View answer
Correct Answer: BD
Question #77
A developer is designing an AWS Lambda function that creates temporary files that are less than 10 MB during invocation. The temporary files will be accessed and modified multiple times during invocation. The developer has no need to save or retrieve these files in the future.Where should the temporary files be stored?
A. the /tmp directory
B. Amazon Elastic File System (Amazon EFS)
C. Amazon Elastic Block Store (Amazon EBS)
D. Amazon S3
View answer
Correct Answer: A
Question #78
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. tore the API credentials in AWS Secrets Manager
B. tore the API credentials in a local code variable
C. tore the API credentials as an object in a private Amazon S3 bucket
D. tore the API credentials in an Amazon DynamoDB table
View answer
Correct Answer: A
Question #79
A developer is deploying an AWS Lambda function The developer wants the ability to return to older versions of the function quickly and seamlessly.How can the developer achieve this goal with the LEAST operational overhead?
A. Use AWS OpsWorks to perform blue/green deployments
B. Use a function alias with different versions
C. Maintain deployment packages for older versions in Amazon S3
D. Use AWS CodePipeline for deployments and rollbacks
View answer
Correct Answer: B
Question #80
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 #81
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 #82
A company wants to migrate applications from its on-premises servers to AWS. As a first step, the company is modifying and migrating a non-critical application to a single Amazon EC2 instance. The application will store information in an Amazon S3 bucket. The company needs to follow security best practices when deploying the application on AWS.Which approach should the company take to allow the application to interact with Amazon S3?
A. Create an 1AM role that has administrative access to AWS
B. Create an 1AM user
C. Create an 1AM role that has the necessary access to Amazon S3
D. Create an 1AM user
View answer
Correct Answer: C
Question #83
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 #84
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 #85
A company has an analytics application that uses an AWS Lambda function to process transaction data asynchronously A developer notices that asynchronous invocations of the Lambda function sometimes fail When failed Lambda function invocations occur, the developer wants to invoke a second Lambda function to handle errors and log details.Which solution will meet these requirements?
A. reate a status check alarm on the initial Lambda function
B. onfigure a Lambda function destination with a failure condition Specify Lambda function as the destination type Specify the error-handling Lambda function's Amazon Resource Name (ARN) as the resource
C. nable AWS X-Ray active tracing on the initial Lambda function
D. onfigure a Lambda function trigger with a failure condition Specify Lambda function as the destination type Specify the error-handling Lambda function's Amazon Resource Name (ARN) as the resource
View answer
Correct Answer: B
Question #86
A developer is incorporating AWS X-Ray into an application that handles personal identifiable information (PII). The application is hosted on Amazon EC2 instances. The application trace messages include encrypted PII and go to Amazon CloudWatch. The developer needs to ensure that no PII goes outside of the EC2 instances.Which solution will meet these requirements?
A. Manually instrument the X-Ray SDK in the application code
B. Use the X-Ray auto-instrumentation agent
C. Use Amazon Macie to detect and hide PII
D. Use AWS Distro for Open Telemetry
View answer
Correct Answer: A
Question #87
A developer is creating an application that will give users the ability to store photos from their cellphones in the cloud. The application needs to support tens of thousands of users. The application uses an Amazon API Gateway REST API that is integrated with AWS Lambda functions to process the photos. The application stores details about the photos in Amazon DynamoDB.Users need to create an account to access the application. In the application, users must be able to upload photos and retrieve previously uploaded photos. The photos will range in size from 300 KB to 5 MB.Which solution will meet these requirements with the LEAST operational overhead?
A. Use Amazon Cognito user pools to manage user accounts
B. Use Amazon Cognito user pools to manage user accounts
C. Create an IAM user for each user of the application during the sign-up process
D. Create a users table in DynamoDB
View answer
Correct Answer: B
Question #88
A developer has created an AWS Lambda function to provide notification through Amazon Simple Notification Service (Amazon SNS) whenever a file is uploaded to Amazon S3 that is larger than 50 MB. The developer has deployed and tested the Lambda function by using the CLI. However, when the event notification is added to the S3 bucket and a 3,000 MB file is uploaded, the Lambda function does not launch.Which of the following is a possible reason for the Lambda function's inability to launch?
A. The S3 event notification does not activate for files that are larger than 1,000 MB
B. The resource-based policy for the Lambda function does not have the required permissions to be invoked by Amazon S3
C. Lambda functions cannot be invoked directly from an S3 event
D. The S3 bucket needs to be made public
View answer
Correct Answer: B
Question #89
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 #90
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: B
Question #91
A developer is designing an AWS Lambda function that creates temporary files that are less than 10 MB during invocation. The temporary files will be accessed and modified multiple times during invocation. The developer has no need to save or retrieve these files in the future.Where should the temporary files be stored?
A. he /tmp directory
B. mazon Elastic File System (Amazon EFS)
C. mazon Elastic Block Store (Amazon EBS)
D. mazon S3
View answer
Correct Answer: A
Question #92
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 #93
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 #94
A company has many microservices that are comprised of AWS Lambda functions. Multiple teams within the company split ownership of the microservices.An application reads configuration values from environment variables that are contained in the Lambda functions. During a security audit, the company discovers that some of the environment variables contain sensitive information.The company's security policy requires each team to have full control over the rotation of AWS KMS keys that the team uses for its respective microservices.
A. reate customer managed keys for all Lambda functions
B. reate AWS managed keys for all Lambda functions
C. reate AWS managed keys for all Lambda functions
D. reate customer managed keys for all Lambda functions
View answer
Correct Answer: A
Question #95
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 #96
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 #97
A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda.Which AWS service or tool should the developer use to define serverless resources in YAML?
A. CloudFormation serverless intrinsic functions
B. AWS Elastic Beanstalk
C. AWS Serverless Application Model (AWS SAM)
D. AWS Cloud Development Kit (AWS CDK)
View answer
Correct Answer: C
Question #98
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 #99
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

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