Amazon AWS Certified Developer - Associate DVA-C02
Prev

There are 313 results

Next
#221 (Accuracy: 100% / 4 votes)
A company runs a batch processing application by using AWS Lambda functions and Amazon API Gateway APIs with deployment stages for development, user acceptance testing, and production. A development team needs to configure the APIs in the deployment stages to connect to third-party service endpoints.

Which solution will meet this requirement?
  • A. Store the third-party service endpoints in Lambda layers that correspond to the stage.
  • B. Store the third-party service endpoints in API Gateway stage variables that correspond to the stage.
  • C. Encode the third-party service endpoints as query parameters in the API Gateway request URL.
  • D. Store the third-party service endpoint for each environment in AWS AppConfig.
#222 (Accuracy: 100% / 3 votes)
A company uses AWS CloudFormation to deploy an application that uses an Amazon API Gateway REST API with AWS Lambda function integration. The application uses Amazon DynamoDB for data persistence. The application has three stages: development, testing, and production. Each stage uses its own DynamoDB table.

The company has encountered unexpected issues when promoting changes to the production stage.
The changes were successful in the development and testing stages. A developer needs to route 20% of the traffic to the new production stage API with the next production release. The developer needs to route the remaining 80% of the traffic to the existing production stage. The solution must minimize the number of errors that any single customer experiences.

Which approach should the developer take to meet these requirements?
  • A. Update 20% of the planned changes to the production stage. Deploy the new production stage. Monitor the results. Repeat this process five times to test all planned changes.
  • B. Update the Amazon Route 53 DNS record entry for the production stage API to use a weighted routing policy. Set the weight to a value of 80. Add a second record for the production domain name. Change the second routing policy to a weighted routing policy. Set the weight of the second policy to a value of 20. Change the alias of the second policy to use the testing stage API.
  • C. Deploy an Application Load Balancer (ALB) in front of the REST API. Change the production API Amazon Route 53 record to point traffic to the ALB. Register the production and testing stages as targets of the ALB with weights of 80% and 20%, respectively.
  • D. Configure canary settings for the production stage API. Change the percentage of traffic directed to canary deployment to 20%. Make the planned updates to the production stage. Deploy the changes
#223 (Accuracy: 100% / 4 votes)
An online sales company is developing a serverless application that runs on AWS. The application uses an AWS Lambda function that calculates order success rates and stores the data in an Amazon DynamoDB table. A developer wants an efficient way to invoke the Lambda function every 15 minutes.

Which solution will meet this requirement with the LEAST development effort?
  • A. Create an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minutes. Add the Lambda function as the target of the EventBridge rule.
  • B. Create an AWS Systems Manager document that has a script that will invoke the Lambda function on Amazon EC2. Use a Systems Manager Run Command task to run the shell script every 15 minutes.
  • C. Create an AWS Step Functions state machine. Configure the state machine to invoke the Lambda function execution role at a specified interval by using a Wait state. Set the interval to 15 minutes.
  • D. Provision a small Amazon EC2 instance. Set up a cron job that invokes the Lambda function every 15 minutes.
#224 (Accuracy: 100% / 4 votes)
A developer is building a new application that will be deployed on AWS. The developer has created an AWS CodeCommit repository for the application. The developer has initialized a new project for the application by invoking the AWS Cloud Development Kit (AWS CDK) cdk init command.

The developer must write unit tests for the infrastructure as code (IaC) templates that the AWS CDK generates.
The developer also must run a validation tool across all constructs in the CDK application to ensure that critical security configurations are activated.

Which combination of actions will meet these requirements with the LEAST development overhead? (Choose two.)
  • A. Use a unit testing framework to write custom unit tests against the cdk.out file that the AWS CDK generates. Run the unit tests in a continuous integration and continuous delivery (CI/CD) pipeline that is invoked after any commit to the repository.
  • B. Use the CDK assertions module to integrate unit tests with the application. Run the unit tests in a continuous integration and continuous delivery (CI/CD) pipeline that is invoked after any commit to the repository.
  • C. Use the CDK runtime context to set key-value pairs that must be present in the cdk.out file that the AWS CDK generates. Fail the stack synthesis if any violations are present.
  • D. Write a script that searches the application for specific key configuration strings. Configure the script to produce a report of any security violations.
  • E. Use the CDK Aspects class to create custom rules to apply to the CDK application. Fall the stack synthesis if any violations are present.
#225 (Accuracy: 100% / 4 votes)
A company is creating a REST service using an Amazon API Gateway with AWS Lambda integration. The service must run different versions for testing purposes.

What would be the BEST way to accomplish this?
  • A. Use an X-Version header to denote which version is being called and pass that header to the Lambda function(s).
  • B. Create an API Gateway Lambda authorizer to route API clients to the correct API version.
  • C. Create an API Gateway resource policy to isolate versions and provide context to the Lambda function(s).
  • D. Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context.
#226 (Accuracy: 100% / 4 votes)
A company recently deployed an AWS Lambda function. A developer notices an increase in the function throttle metrics in Amazon CloudWatch.

What are the MOST operationally efficient solutions to reduce the function throttling? (Choose two.)
  • A. Migrate the function to Amazon Elastic Kubernetes Service (Amazon EKS).
  • B. Increase the maximum age of events in Lambda.
  • C. Increase the function’s reserved concurrency.
  • D. Add the lambda:GetFunctionConcurrency action to the execution role.
  • E. Request a service quota change for increased concurrency.
#227 (Accuracy: 100% / 4 votes)
A developer is working on an application that is deployed on an Amazon EC2 instance. The developer needs a solution that will securely transfer files from the application to an Amazon S3 bucket.

What should the developer do to meet these requirements in the MOST secure way?
  • A. Create an IAM user. Create an access key for the IAM user. Store the access key in the application’s environment variables.
  • B. Create an IAM role. Create an access key for the IAM role. Store the access key in the application’s environment variables.
  • C. Create an IAM role. Configure the IAM role to access the specific Amazon S3 API calls the application requires. Associate the IAM role with the EC2 instance.
  • D. Configure an S3 bucket policy for the S3 bucket. Configure the S3 bucket policy to allow access for the EC2 instance ID.
#228 (Accuracy: 100% / 3 votes)
A company has a three-tier application that is deployed in Amazon Elastic Container Service (Amazon ECS). The application is using an Amazon RDS for MySQL DB instance. The application performs more database reads than writes.

During times of peak usage, the application’s performance degrades.
When this performance degradation occurs, the DB instance’s ReadLatency metric in Amazon CloudWatch increases suddenly.

How should a developer modify the application to improve performance?
  • A. Use Amazon ElastiCache to cache query results.
  • B. Scale the ECS cluster to contain more ECS instances.
  • C. Add read capacity units (RCUs) to the DB instance.
  • D. Modify the ECS task definition to increase the task memory.
#229 (Accuracy: 100% / 4 votes)
A developer wants to reduce risk when deploying a new version of an existing AWS Lambda function. To test the Lambda function, the developer needs to split the traffic between the existing version and the new version of the Lambda function.

Which solution will meet these requirements?
  • A. Configure a weighted routing policy in Amazon Route 53. Associate the versions of the Lambda function with the weighted routing policy.
  • B. Create a function alias. Configure the alias to split the traffic between the two versions of the Lambda function.
  • C. Create an Application Load Balancer (ALB) that uses the Lambda function as a target. Configure the ALB to split the traffic between the two versions of the Lambda function.
  • D. Create the new version of the Lambda function as a Lambda layer on the existing version. Configure the function to split the traffic between the two layers.
#230 (Accuracy: 100% / 3 votes)
A developer is creating an AWS Lambda function that will connect to an Amazon RDS for MySQL instance. The developer wants to store the database credentials. The database credentials need to be encrypted and the database password needs to be automatically rotated.

Which solution will meet these requirements?
  • A. Store the database credentials as environment variables for the Lambda function. Set the environment variables to rotate automatically.
  • B. Store the database credentials in AWS Secrets Manager. Set up managed rotation on the database credentials.
  • C. Store the database credentials in AWS Systems Manager Parameter Store as secure string parameters. Set up managed rotation on the parameters.
  • D. Store the database credentials in the X-Amz-Security-Token parameter. Set up managed rotation on the parameter.