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 Part3

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 Amazon Kinesis Data Firehose delivery stream is receiving customer data that contains personally identifiable information. A developer needs to remove pattern-based customer identifiers from the data and store the modified data in an Amazon S3 bucket.What should the developer do to meet these requirements?
A. Implement Kinesis Data Firehose data transformation as an AWS Lambda function
B. Launch an Amazon EC2 instance
C. Create an Amazon OpenSearch Service instance
D. Create an AWS Step Functions workflow to remove the customer identifiers
View answer
Correct Answer: A

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 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. reate a different Amazon Simple Notification Service (Amazon SNS) topic for each partner
B. reate one Amazon Simple Notification Service (Amazon SNS) topic
C. reate a different Lambda function for each partner
D. reate an Amazon Simple Notification Service (Amazon SNS) topic
View answer
Correct Answer: D
Question #3
A company has an application that uses Amazon Cognito user pools as an identity provider. The company must secure access to user records. The company has set up multi-factor authentication (MFA). The company also wants to send a login activity notification by email every time a user logs in.What is the MOST operationally efficient solution that meets this requirement?
A. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification
B. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification
C. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification
D. Configure Amazon Cognito to stream all logs to Amazon Kinesis Data Firehose
View answer
Correct Answer: B
Question #4
A company has a website that is developed in PHP and is launched using AWS Elastic Beanstalk. There is a new version of the website that needs to be deployed in the Elastic Beanstalk environment. The company cannot tolerate having the website offline if an update fails. Deployments must have minimal impact and rollback as soon as possible.
A. All at once
B. Rolling
C. Snapshots
D. Immutable
View answer
Correct Answer: D
Question #5
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 #6
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 #7
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. etry the batch operation immediately
B. etry the batch operation with exponential backoff and randomized delay
C. pdate the application to use an AWS software development kit (AWS SDK) to make the requests
D. ncrease the provisioned read capacity of the DynamoDB tables that the operation accesses
E. ncrease the provisioned write capacity of the DynamoDB tables that the operation accesses
View answer
Correct Answer: BD
Question #8
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 #9
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 #10
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 #11
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 #12
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 #13
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 #14
A company moved some of its secure files to a private Amazon S3 bucket that has no public access. The company wants to develop a serverless application that gives its employees the ability to log in and securely share the files with other users.Which AWS feature should the company use to share and access the files securely?
A. Amazon Cognito user pool
B. S3 presigned URLs
C. S3 bucket policy
D. Amazon Cognito identity pool
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 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 #17
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 #18
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 #19
A company moved some of its secure files to a private Amazon S3 bucket that has no public access. The company wants to develop a serverless application that gives its employees the ability to log in and securely share the files with other users.Which AWS feature should the company use to share and access the files securely?
A. Amazon Cognito user pool
B. S3 presigned URLs
C. S3 bucket policy
D. Amazon Cognito identity pool
View answer
Correct Answer: B
Question #20
A company has an application that uses Amazon Cognito user pools as an identity provider. The company must secure access to user records. The company has set up multi-factor authentication (MFA). The company also wants to send a login activity notification by email every time a user logs in.What is the MOST operationally efficient solution that meets this requirement?
A. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification
B. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification
C. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification
D. Configure Amazon Cognito to stream all logs to Amazon Kinesis Data Firehose
View answer
Correct Answer: B
Question #21
A developer previously deployed an AWS Lambda function as a .zip package. The developer needs to deploy the Lambda function as a container.
A. reate an AWS CloudFormation template that defines the Lambda function and its resources as code
B. reate an AWS SAM template that defines the Lambda function and its resources as code
C. reate an Amazon ECR repository in the same AWS Region as the Lambda function
D. reate an Amazon ECR repository in the same AWS Region as the Lambda function
View answer
Correct Answer: D
Question #22
A developer wants to track the performance of an application that runs on a fleet of Amazon EC2 instances. The developer wants to view and track statistics, such as the average request latency and the maximum request latency, across the fleet. The developer wants to receive immediate notification if the average response time exceeds a threshold.Which solution will meet these requirements?
A. Create an IAM permission policy
B. Create an Amazon Cognito user pool
C. Create an Amazon Cognito identity pool
D. Create a resource policy for the APIs to allow access for each IAM user only
E. Create an Amazon Cognito authorizer for the APIs to allow access for each IAM user only
View answer
Correct Answer: ad
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
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 #25
A developer uses AWS CloudFormation to deploy an Amazon API Gateway API and an AWS Step Functions state machine The state machine must reference the API Gateway API after the CloudFormation template is deployed The developer needs a solution that uses the state machine to reference the API Gateway endpoint.Which solution will meet these requirements MOST cost-effectively?
A. onfigure the CloudFormation template to reference the API endpoint in the DefinitionSubstitutions property for the AWS StepFunctions StateMachme resource
B. onfigure the CloudFormation template to store the API endpoint in a standard AWS::AppConfig;:ConfigurationProfile resource Configure the state machine to reference the resource
C. onfigure the CloudFormation template to store the API endpoint in an environment variable for the AWS::StepFunctions::StateMachine resourc Configure the state machine to reference the environment variable
D. onfigure the CloudFormation template to store the API endpoint in a standard AWS: SecretsManager Secret resource Configure the state machine to reference the resource
View answer
Correct Answer: A
Question #26
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 #27
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 #28
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 #29
A developer is creating a Ruby application and needs to automate the deployment, scaling, and management of an environment without requiring knowledge of the underlying infrastructure.Which service would best accomplish this task?
A. AWS CodeDeploy
B. AWS CloudFormation
C. AWS OpsWorks
D. AWS Elastic Beanstalk
View answer
Correct Answer: D
Question #30
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. reate and launch a Lambda function in a new public subnet that is in a new VPC named VPC2
C. reate the Lambda function
D. xport the data from the Aurora database to Amazon S3
View answer
Correct Answer: A
Question #31
An Amazon Kinesis Data Firehose delivery stream is receiving customer data that contains personally identifiable information. A developer needs to remove pattern-based customer identifiers from the data and store the modified data in an Amazon S3 bucket.What should the developer do to meet these requirements?
A. Implement Kinesis Data Firehose data transformation as an AWS Lambda function
B. Launch an Amazon EC2 instance
C. Create an Amazon OpenSearch Service instance
D. Create an AWS Step Functions workflow to remove the customer identifiers
View answer
Correct Answer: A
Question #32
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 #33
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 #34
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 #35
A developer is automating a new application deployment with AWS SAM. The new application has one AWS Lambda function and one Amazon S3 bucket. The Lambda function must access the S3 bucket to only read objects.How should the developer configure AWS SAM to grant the necessary read permission to the S3 bucket?
A. reate an Amazon SQS topic for only S3 object reads
B. dd the S3ReadPolicy template to the Lambda function ' s execution role
C. dd a custom S3 bucket policy to the Lambda function
D. eference a second Lambda authorizer function
View answer
Correct Answer: B
Question #36
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 #37
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 #38
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 #39
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 #40
A company has a social media application that receives large amounts of traffic User posts and interactions are continuously updated in an Amazon RDS database The data changes frequently, and the data types can be complex The application must serve read requests with minimal latency The application's current architecture struggles to deliver these rapid data updates efficiently The company needs a solution to improve the application's performance. Which solution will meet these requirements'? Amazon ElastiCache for Redis:An in-memory data store known for extremely low latency, ideal for caching frequently accessed, complex data. Write-Through Caching:Ensures that data is always consistent between the cache and the database. Writes go to both Redis and RDS. Performance Gains:Redis handles reads with minimal latency, offloading the RDS database and improving the application's responsiveness. Amazon ElastiCache for Redis Documentation:https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ Caching Strategies:https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Strategies.html
A. Use Amazon DynamoDB Accelerator (DAX) in front of the RDS database to provide a caching layer for the high volume of rapidly changing data
B. Set up Amazon S3 Transfer Acceleration on the RDS database to enhance the speed of data transfer from the databases to the application
C. Add an Amazon CloudFront distribution in front of the RDS database to provide a caching layer for the high volume of rapidly changing data
D. Create an Amazon ElastiCache for Redis cluster
View answer
Correct Answer: D
Question #41
A developer is preparing to deploy an AWS CloudFormation stack for an application from a template that includes an IAM user.The developer needs to configure the application's resources to retain the IAM user after successful creation.However, the developer also needs to configure the application to delete the IAM user if the stack rolls back.
A. pdate CloudFormation template with the following deletion policy:AWSTemplateFormatVersion: '2010-05-09'Resources:appUser:Type: AWS::IAM::UserDeletionPolicy: Retain
B. pdate the stack policy to include the following statements:{"Statement": [{"Effect": "Deny","Action": "Update:*","Principal": "*","Resource": "*","Condition": {"StringEquals": {"ResourceType": "AWS::IAM::User"}}}]}
C. pdate CloudFormation template with the following deletion policy:AWSTemplateFormatVersion: '2010-09-09'Resources:appUser:Type: AWS::IAM::UserDeletionPolicy: RetainExceptOnCreate
D. pdate the CloudFormation service role to include the following policy:{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": ["cloudformation:UpdateTerminationProtection"],"Resource": "*"}]}
View answer
Correct Answer: C
Question #42
A developer is building various microservices for an application that will run on Amazon EC2 instances. The developer needs to monitor the end-to-end view of the requests between the microservices and debug any issues in the various microservices.
A. Use Amazon CloudWatch to aggregate the microservices' logs and metrics, and build the monitoring dashboard
B. Use AWS CloudTrail to aggregate the microservices' logs and metrics, and build the monitoring dashboard
C. Use the AWS X-Ray SDK to add instrumentation in all the microservices, and monitor using the X-Ray service map
D. Use AWS Health to monitor the health of all the microservices
View answer
Correct Answer: C
Question #43
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 #44
A social media application stores millions of video clips in Amazon S3 and serves them to users across the world. The traffic to the application varies, but access often increases suddenly to more than 10,000 PUT requests and GET requests each second. As the application has grown in popularity, users report poor quality of video streaming. Which solution will provide the LARGEST improvement in performance?
A. se S3 Intelligent-Tiering to move data based on access patterns
B. reate an Amazon Route 53 geolocation routing policy
C. uplicate content in multiple AWS Regions by using S3 Cross-Region Replication
D. reate an Amazon CloudFront distribution with Amazon S3 as an origin
View answer
Correct Answer: D
Question #45
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 #46
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. mazon S3
B. WS CloudTrail
C. mazon DynamoDB
D. mazon CloudWatch
View answer
Correct Answer: D
Question #47
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 #48
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 #49
An application that is deployed to Amazon EC2 is using Amazon DynamoDB. The app cation calls the DynamoDB REST API Periodically the application receives a ProvisionedThroughputExceededException error when the application writes to a DynamoDB table.Which solutions will mitigate this error MOST cost-effectively^ (Select TWO)
A. Modify the application code to perform exponential back off when the error is received
B. Modify the application to use the AWS SDKs for DynamoDB
C. Increase the read and write throughput of the DynamoDB table
D. Create a DynamoDB Accelerator (DAX) cluster for the DynamoDB table
E. Create a second DynamoDB table Distribute the reads and writes between the two tables
View answer
Correct Answer: AB
Question #50
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 #51
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 #52
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 #53
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 #54
A developer is building an application that stores objects in an Amazon S3 bucket. The bucket does not have versioning enabled. The objects are accessed rarely after 1 week. However, the objects must be immediately available at all times. The developer wants to optimize storage costs for the S3 bucket.Which solution will meet this requirement?
A. reate an S3 Lifecycle rule to delete objects that have delete markers
B. reate an S3 Lifecycle rule to transition objects to S3 Glacier Flexible Retrieval after 7 days
C. reate an S3 Lifecycle rule to transition objects to S3 Standard-Infrequent Access (S3 Standard-IA) after 7 days
D. reate an S3 Lifecycle rule to expire objects after 7 days
View answer
Correct Answer: C
Question #55
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 #56
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 #57
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 #58
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 #59
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 #60
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 #61
A company operates a media streaming platform that delivers on-demand video content to users from around the world. User requests flow through an Amazon CloudFront distribution, an Amazon API Gateway REST API, AWS Lambda functions, and Amazon DynamoDB tables.Some users have reported intermittent buffering issues and delays when users try to start a video stream. The company needs to investigate the issues to discover the underlying cause.Which solution will meet this requirement?
A. nable AWS X-Ray tracing for the REST API, Lambda functions, and DynamoDB tables
B. se AWS Config to review details of any recent configuration changes to AWS resources in the application that could result in increased latency for users
C. se AWS CloudTrail to track AWS resources in all AWS Regions
D. nable logging in API Gateway
View answer
Correct Answer: A
Question #62
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 #63
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. se 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. ncrypt the access token by using an AWS Key Management Service (AWS KMS) customer managed key
C. se AWS Secrets Manager with an AWS Key Management Service (AWS KMS) customer managed key to store the access token
D. ncrypt the access token by using an AWS Key Management Service (AWS KMS) AWS managed key
View answer
Correct Answer: C
Question #64
A company is deploying serverless infrastructure as an AWS CloudFormation template. When deploying the template, a developer is required to specify whether the deployment is for a production environment or a nonproduction environment.
A. Parameters
B. Conditions
C. Mappings
D. Metadata
E. Outputs
View answer
Correct Answer: AC
Question #65
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 #66
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 #67
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 #68
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 #69
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 #70
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 #71
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. pdate the IAM instance profile that is attached to the EC2 instance to include the S3:* permission for the S3 bucket
B. pdate the IAM instance profile that is attached to the EC2 instance to include the S3:ListBucket permission for the S3 bucket
C. pdate the developer's user permissions to include the S3:ListBucket permission for the S3 bucket
D. pdate 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 #72
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. reate an event with Amazon EventBridge that will monitor the S3 bucket and then insert the records into DynamoDB
B. onfigure an S3 event to invoke an AWS Lambda function that inserts records into DynamoDB
C. reate an AWS Lambda function that will poll the S3 bucket and then insert the records into DynamoDB
D. reate a cron job that will run at a scheduled time and insert the records into DynamoDB
View answer
Correct Answer: B
Question #73
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 #74
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 #75
A company has an application that is deployed on AWS Elastic Beanstalk. The application generates user-specific PDFs and stores the PDFs in an Amazon S3 bucket. The application then uses Amazon Simple Email Service (Amazon SES) to send the PDFs by email to subscribers.Users no longer access the PDFs 90 days after the PDFs are generated. The S3 bucket is not versioned and contains many obsolete PDFs.A developer must reduce the number of files in the S3 bucket by removing PDFs that are older than 90 days.Which solution will meet this requirement with the LEAST development effort?
A. Update the application code
B. Create an AWS Lambda function
C. Create an S3 Lifecycle rule for the S3 bucket to expire objects after 90 days
D. Partition the S3 objects with a // key prefix
View answer
Correct Answer: C
Question #76
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 #77
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 #78
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 #79
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 #80
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 #81
A company has an application that runs across multiple AWS Regions. The application is experiencing performance issues at irregular intervals. A developer must use AWS X-Ray to implement distributed tracing for the application to troubleshoot the root cause of the performance issues.What should the developer do to meet this requirement?
A. se the X-Ray daemon to add annotations for AWS services and user-defined services
B. se the X-Ray console to add annotations for AWS services and user-defined services
C. se Region annotation that X-Ray adds automatically for user-defined services Configure X-Ray to add Region annotation for AWS services
D. se Region annotation that X-Ray adds automatically for AWS services Add Region annotation for user-defined services
View answer
Correct Answer: D
Question #82
A company is using AWS Elastic Beanstalk to deploy a three-tier application. The application uses an Amazon RDS DB instance as the database tier. The com wants to decouple the DB instance from the Elastic Beanstalk environment. Which combination of steps should a developer take to meet this requirement? (Select TWO.)
A. Create a new Elastic Beanstalk environment that connects to the DB instance
B. Create a new DB instance from a snapshot of the previous DB instance
C. Use the Elastic Beanstalk CLI to decouple the DB instance
D. Use the AWS CLI to decouple the DB instance
E. Modify the current Elastic Beanstalk environment to connect to the DB instance
View answer
Correct Answer: BE
Question #83
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 #84
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 #85
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 #86
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 #87
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 #88
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 #89
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 #90
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 #91
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 #92
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 #93
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 #94
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 #95
When a developer tries to run an AWS Code Build project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters.What is the recommended solution?
A. pdate the settings for the build project to use an Amazon S3 bucket for large numbers of environment variables
B. se AWS Systems Manager Parameter Store to store large numbers ot environment variables
C. se Amazon Cognate to store key-value pairs for large numbers of environment variables
D. dd the export LC-_ALL" on _ US, tuft" command to the pre _ build section to ensure POSIX Localization
View answer
Correct Answer: B
Question #96
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. ackage each Python library in its own
B. reate a Lambda layer with the required Python library
C. ombine the two Lambda functions into one Lambda function
D. ownload the Python library to an S3 bucket
View answer
Correct Answer: B
Question #97
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 #98
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 #99
A developer is configuring an application's deployment environment in AWS CodePipeline. The application code is stored in a GitHub repository. The developer wants to ensure that the repository package's unit tests run in the new deployment environment. The developer has already set the pipeline's source provider to GitHub and has specified the repository and branch to use in the deployment.Which combination of steps should the developer take next to meet these requirements with the LEAST overhead? (Choose two.)
A. Create an AWS CodeCommit project
B. Create an AWS CodeBuild project
C. Create an AWS CodeDeploy project
D. Add an action to the source stage
E. Add a new stage to the pipeline after the source stage
View answer
Correct Answer: BE
Question #100
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

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