Amazon AWS Certified Developer - Associate DVA-C02
Prev

There are 313 results

Next
#101 (Accuracy: 100% / 1 votes)
A developer is working on an app for a company that uses an Amazon DynamoDB table named Orders to store customer orders. The table uses OrderID as the partition key and there is no sort key. The table contains more than 100,000 records. The developer needs to add a functionality that will retrieve all Orders records that contain an OrderSource attribute with the MobileApp value.

Which solution will improve the user experience in the MOST efficient way?
  • A. Perform a Scan operation on the Orders table. Provide a QueryFilter condition to filter to only the items where the OrderSource attribute is equal to the MobileApp value.
  • B. Create a local secondary index (LSI) with OrderSource as the partition key. Perform a Query operation by using MobileApp as the key.
  • C. Create a global secondary index (GSI) with OrderSource as the sort key. Perform a Query operation by using MobileApp as the key.
  • D. Create a global secondary index (GSI) with OrderSource as the partition key. Perform a Query operation by using MobileApp as the key.
#102 (Accuracy: 100% / 3 votes)
A developer is writing a web application that is deployed on Amazon EC2 instances behind an internet-facing Application Load Balancer (ALB). The developer must add an Amazon CloudFront distribution in front of the ALB. The developer also must ensure that customer data from outside the VPC is encrypted in transit.

Which combination of CloudFront configuration settings should the developer use to meet these requirements? (Choose two.)
  • A. Restrict viewer access by using signed URLs.
  • B. Set the Origin Protocol Policy setting to Match Viewer.
  • C. Enable field-level encryption.
  • D. Enable automatic object compression.
  • E. Set the Viewer Protocol Policy setting to Redirect HTTP to HTTPS.
#103 (Accuracy: 100% / 3 votes)
A developer is running an application on an Amazon EC2 instance. When the application tries to read an Amazon S3 bucket, the application fails. The developer notices that the associated IAM role is missing the S3 read permission. The developer needs to give the application the ability to read the S3 bucket.

Which solution will meet this requirement with the LEAST application disruption?
  • A. Add the permission to the role. Terminate the existing EC2 instance. Launch a new EC2 instance.
  • B. Add the permission to the role so that the change will take effect automatically.
  • C. Add the permission to the role. Hibernate and restart the existing EC2 instance.
  • D. Add the permission to the S3 bucket. Restart the EC2 instance.
#104 (Accuracy: 100% / 4 votes)
A developer built an application by using multiple AWS Lambda functions. The Lambda functions must access dynamic configuration data at runtime. The data is maintained as a 6 KB JSON document in AWS AppConfig. The configuration data needs to be updated without requiring the redeployment of the application.

The developer needs a solution that will give the Lambda functions access to the dynamic configuration data.


What should the developer do to meet these requirements with the LEAST development effort?
  • A. Migrate the document from AWS AppConfig to a Lambda environment variable. Read the document at the runtime.
  • B. Configure the AWS AppConfig Agent Lambda extension. Access the dynamic configuration data by calling the extension on a local host.
  • C. Use the AWS X-Ray SDK to call the AWS AppConfig APIs. Retrieve the configuration file at runtime.
  • D. Migrate the configuration file to a Lambda deployment package. Read the file from the file system at runtime.
#105 (Accuracy: 100% / 2 votes)
A company had an Amazon RDS for MySQL DB instance that was named mysql-db. The DB instance was deleted within the past 90 days.

A developer needs to find which IAM user or role deleted the DB instance in the AWS environment.


Which solution will provide this information?
  • A. Retrieve the AWS CloudTrail events for the resource mysql-db where the event name is DeleteDBInstance. Inspect each event.
  • B. Retrieve the Amazon CloudWatch log events from the most recent log stream within the rds/mysql-db log group. Inspect the log events.
  • C. Retrieve the AWS X-Ray trace summaries. Filter by services with the name mysql-db. Inspect the ErrorRootCauses values within each summary.
  • D. Retrieve the AWS Systems Manager deletions inventory. Filter the inventory by deletions that have a TypeName value of RDS. Inspect the deletion details.
#106 (Accuracy: 92% / 7 votes)
A company is creating an application that processes .csv files from Amazon S3. A developer has created an S3 bucket. The developer has also created an AWS Lambda function to process the .csv files from the S3 bucket.

Which combination of steps will invoke the Lambda function when a .csv file is uploaded to Amazon S3? (Choose two.)
  • A. Create an Amazon EventBridge rule. Configure the rule with a pattern to match the S3 object created event.
  • B. Schedule an Amazon EventBridge rule to run a new Lambda function to scan the S3 bucket.
  • C. Add a trigger to the existing Lambda function. Set the trigger type to EventBridge. Select the Amazon EventBridge rule.
  • D. Create a new Lambda function to scan the S3 bucket for recently added S3 objects.
  • E. Add S3 Lifecycle rules to invoke the existing Lambda function.
#107 (Accuracy: 100% / 2 votes)
A company has a monolithic desktop-based application that processes images. A developer is converting the application into an AWS Lambda function by using Python. Currently, the desktop application runs every 5 minutes to process the latest image from an Amazon S3 bucket. The desktop application completes the image processing task within 1 minute.

During testing on AWS, the developer notices that the Lambda function runs at the specified 5-minute interval.
However, the Lambda function takes more than 2 minutes to complete the image processing task. The developer needs a solution that will improve the Lambda function's performance.

Which solution will meet this requirement?
  • A. Update the instance type of the Lambda function to a compute optimized instance with at least eight virtual CPU (vCPU).
  • B. Update the configuration of the Lambda function to use the latest Python runtime.
  • C. Increase the memory that is allocated to the Lambda function.
  • D. Configure a reserved concurrency on the Lambda function.
#108 (Accuracy: 93% / 6 votes)
A company is releasing a new feature. Users can request early access to the new feature by using an application form. The company expects a surge of requests when the application form becomes available. Each request will be stored as an item in an Amazon DynamoDB table.

Each item will contain the user's username, the submission date, and a validation status of UNVALIDATED.
VALID, or NOT VALID. Each item also will contain the user's rating of the process on a scale of 1 to 5.

Each user can submit one request.
For the DynamoDB table, the developer must choose a partition key that will give the workload well-distributed records across partitions.

Which DynamoDB attribute will meet these requirements?
  • A. Username
  • B. Submission date
  • C. Validation status
  • D. Rating of the process on a scale of 1 to 5
#109 (Accuracy: 92% / 5 votes)
A developer works for a company that only has a single pre-production AWS account with an AWS CloudFormation AWS Serverless Application Model (AWS SAM) stack. The developer made changes to an existing AWS Lambda function specified in the AWS SAM template and additional Amazon Simple Notification service (Amazon SNS) topics.

The developer wants to do a one-time deploy of the changes to test if the changes are working.
The developer does not want to impact the existing pre-production application that is currently being used by other team members as part of the release pipeline.

Which solution will meet these requirements?
  • A. Use the AWS SAM CLI to package and deploy the SAM application to the pre-production AWS account. Specify the debug parameter.
  • B. Use the AWS SAM CLI to package and create a change set against the pre-production AWS account. Execute the change set in a new AWS account designated for a development environment.
  • C. Use the AWS SAM CLI to package and deploy the SAM application to a new AWS account designated for a development environment.
  • D. Update the CloudFormation stack in the pre-production account. Add a separate stage that points to a new AWS account designated for a development environment.
#110 (Accuracy: 94% / 6 votes)
A developer needs to deploy an application in three AWS Regions by using AWS CloudFormation. Each Region will use an AWS Elastic Beanstalk environment with an Application Load Balancer (ALB). The developer wants to use AWS Certificate Manager (ACM) to deploy SSL certificates to each ALB.

Which solution will meet these requirements?
  • A. Create a certificate in ACM in any one of the Regions. Import the certificate into the ALB that is in each Region.
  • B. Create a global certificate in ACM. Update the CloudFormation template to deploy the global certificate to each ALB.
  • C. Create a certificate in ACM in each Region. Import the certificate into the ALB for each Region.
  • D. Create a certificate in ACM in the us-east-1 Region. Update the CloudFormation template to deploy the certificate to each ALB.