Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#141 (Accuracy: 95% / 7 votes)
A company is running an application on Amazon Elastic Container Service (Amazon ECS). When the company deploys a new version of the application, the company initially needs to expose 10% of live traffic to the new version. After a period of time, the company needs to immediately route all the remaining live traffic to the new version.
Which ECS deployment should the company use to meet these requirements?
  • A. Rolling update
  • B. Blue/green with canary
  • C. Blue/green with all at once
  • D. Blue/green with linear
#142 (Accuracy: 100% / 7 votes)
A developer is designing an AWS Lambda function to perform a maintenance activity. The developer will use Amazon EventBridge (Amazon CloudWatch Events) to invoke the function on an hourly schedule. The developer wants the function to log information at different levels of detail according to the value of a log level variable. The developer must design the function so that the log level can be set without requiring a change to the function code.
Which solution will meet these requirements?
  • A. Add a custom log level parameter for the Lambda function. Set the parameter by using the Lambda console
  • B. Set the log level in a Lambda environment variable
  • C. Set the log level in the Amazon CloudWatch Logs console.
  • D. Add a custom log level parameter for the Lambda function. Set the parameter by using the AWS CLI.
#143 (Accuracy: 100% / 4 votes)
An AWS Lambda function accesses two Amazon DynamoDB tables. A developer wants to improve the performance of the Lambda function by identifying bottlenecks in the function.
How can the developer inspect the timing of the DynamoDB API calls?
  • A. Add DynamoDB as an event source to the Lambda function. View the performance with Amazon CloudWatch metrics
  • B. Place an Application Load Balancer (ALB) in front of the two DynamoDB tables. Inspect the ALB logs
  • C. Limit Lambda to no more than five concurrent invocations. Monitor from the Lambda console.
  • D. Enable AWS X-Ray tracing for the function. View the traces from the X-Ray service.
#144 (Accuracy: 100% / 10 votes)
A developer is using Amazon S3 as the event source that invokes a Lambda function when new objects are created in the bucket. The event source mapping information is stored in the bucket notification configuration. The developer is working with different versions of the Lambda function, and has a constant need to update notification configuration so that Amazon S3 invokes the correct version.
What is the MOST efficient and effective way to achieve mapping between the S3 event and Lambda?
  • A. Use a different Lambda trigger.
  • B. Use Lambda environment variables.
  • C. Use a Lambda alias.
  • D. Use Lambda tags.
#145 (Accuracy: 92% / 4 votes)
A developer supports an application that accesses data in an Amazon DynamoDB table. One of the item attributes is expiration Date in the timestamp format. The application uses this attribute to find items, archive them, and remove them from the table based on the timestamp value.

The application will be decommissioned soon, and the developer must find another way to implement this functionality.
The developer needs a solution that will require the least amount of code to write.

Which solution will meet these requirements?
  • A. Enable TTL on the expirationDate attribute in the table. Create a DynamoDB stream. Create an AWS Lambda function to process the deleted items. Create a DynamoDB trigger for the Lambda function.
  • B. Create two AWS Lambda functions: one to delete the items and one to process the items. Create a DynamoDB stream. Use the DeleteItem API operation to delete the items based on the expirationDate attribute. Use the GetRecords API operation to get the items from the DynamoDB stream and process them.
  • C. Create two AWS Lambda functions: one to delete the items and one to process the items. Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled rule to invoke the Lambda functions. Use the DeleteItem API operation to delete the items based on the expirationDate attribute. Use the GetRecords API operation to get the items from the DynamoDB table and process them.
  • D. Enable TTL on the expirationDate attribute in the table. Specify an Amazon Simple Queue Service (Amazon SQS) dead-letter queue as the target to delete the items. Create an AWS Lambda function to process the items.
#146 (Accuracy: 100% / 5 votes)
A company is developing a microservice that will manage customer account data in an Amazon DynamoDB table. Insert, update, and delete requests will be rare. Read traffic will be heavy. The company must have the ability to access customer data quickly by using a customer ID. The microservice can tolerate stale data.

Which solution will meet these requirements with the FEWEST possible read capacity units (RCUs)?
  • A. Read the table by using eventually consistent reads.
  • B. Read the table by using strongly consistent reads.
  • C. Read the table by using transactional reads.
  • D. Read the table by using strongly consistent PartiQL queries.
#147 (Accuracy: 100% / 3 votes)
A Development team wants to instrument their code to provide more detailed information to AWS X-Ray than simple outgoing and incoming requests. This will generate large amounts of data, so the Development team wants to implement indexing so they can filter the data.

What should the Development team do to achieve this?
  • A. Add annotations to the segment document and the code
  • B. Add metadata to the segment document and the code
  • C. Configure the necessary X-Ray environment variables
  • D. Install required plugins for the appropriate AWS SDK
#148 (Accuracy: 100% / 6 votes)
A developer is creating an AWS Lambda function that generates a new file each time it runs. Each new file must be checked into an AWS CodeCommit repository hosted in the same AWS account.
How should the developer accomplish this?
  • A. When the Lambda function starts, use the Git CLI to clone the repository. Check the new file into the cloned repository and push the change.
  • B. After the new file is created in Lambda, use cURL to invoke the CodeCommit API. Send the file to the repository.
  • C. Use an AWS SDK to instantiate a CodeCommit client. Invoke the putjile method to add the file to the repository.
  • D. Upload the new file to an Amazon S3 bucket. Create an AWS Step Function to accept S3 events. In the Step Function, add the new file to the repository.
#149 (Accuracy: 93% / 5 votes)
A developer is writing an application to analyze the traffic to a fleet of Amazon EC2 instances. The EC2 instances run behind a public Application Load Balancer
(ALB).
An HTTP server runs on each of the EC2 instances, logging all requests to a log file.
The developer wants to capture the client public IP addresses.
The developer analyzes the log files and notices only the IP address of the ALB.
What must the developer do to capture the client public IP addresses in the log file?
  • A. Add a Host header to the HTTP server log configuration file.
  • B. Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
  • C. Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file.
  • D. Add an X-Forwarded-For header to the HTTP server log configuration file.
#150 (Accuracy: 94% / 5 votes)
A developer is testing an AWS Lambda function by using the AWS Serverless Application Model (AWS SAM) local CLI. The application that is implemented by the
Lambda function makes several AWS API calls by using the AWS software development kit (SDK).
The developer wants to allow the function to make AWS API calls in a test AWS account from the developer's laptop.
What should the developer do to meet these requirements?
  • A. Edit the template.yml file. Add the AWS_ACCESS_KEY_ID property and the AWS_SECRET_ACCESS_KEY property in the Globals section.
  • B. Add a test profile by using the aws configure command with the --profile option. Run AWS SAM by using the sam local invoke command with the -profile option.
  • C. Edit the template.yml tile. For the AWS::Serverless::Function resource, set the role to an IAM role in the AWS account.
  • D. Run the function by using the sam local invoke command. Override the AWS_ACCESS_KEY_ID parameter and the AWS_SECRET_ACCESS_KEY parameter by specifying the --parameter-overrides option.