Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#171 (Accuracy: 100% / 5 votes)
A company is building an application for stock trading. The application needs sub-millisecond latency for processing trade requests. The company uses Amazon
DynamoDB to store all the trading data that is used to process each trading request.

A development team performs load testing on the application and finds that the data retrieval time is higher than expected.
The development team needs a solution that reduces the data retrieval time with the least possible effort.
Which solution meets these requirements?
  • A. Add local secondary indexes (LSIs) for the trading data.
  • B. Store the trading data in Amazon S3, and use S3 Transfer Acceleration.
  • C. Add retries with exponential backoff for DynamoDB queries.
  • D. Use DynamoDB Accelerator (DAX) to cache the trading data.
#172 (Accuracy: 100% / 5 votes)
A developer is planning to use an Amazon API Gateway and AWS Lambda to provide a REST API. The developer will have three distinct environments to manage: development, test, and production.
How should the application be deployed while minimizing the number of resources to manage?
  • A. Create a separate API Gateway and separate Lambda function for each environment in the same Region.
  • B. Assign a Region for each environment and deploy API Gateway and Lambda to each Region.
  • C. Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
  • D. Create one API Gateway and one Lambda function, and use a REST parameter to identify the environment.
#173 (Accuracy: 100% / 3 votes)
A developer has an Amazon DynamoDB table that must be in provisioned mode to comply with user requirements. The application needs to support the following:

• Average item size: 10 KB
• Item reads each second: 10 strongly consistent
• Item writes each second: 2 transactional

Which read and write capacity cost-effectively meets these requirements?
  • A. Read 10; write 2
  • B. Read 30; write 40
  • C. Use on-demand scaling
  • D. Read 300; write 400
#174 (Accuracy: 100% / 3 votes)
A developer needs to build an AWS CloudFormation template that self-populates the AWS Region variable that deploys the CloudFormation template.

What is the MOST operationally efficient way to determine the Region in which the template is being deployed?
  • A. Use the AWS::Region pseudo parameter.
  • B. Require the Region as a CloudFormation parameter.
  • C. Find the Region from the AWS:StackId pseudo parameter by using the Fn::Split intrinsic function.
  • D. Dynamically import the Region by referencing the relevant parameter in AWS Systems Manager Parameter Store.
#175 (Accuracy: 100% / 3 votes)
A developer registered an AWS Lambda function as a target for an Application Load Balancer (ALB) using a CLI command. However, the Lambda function is not being invoked when the client sends requests through the ALB.

Why is the Lambda function not being invoked?
  • A. A Lambda function cannot be registered as a target for an ALB.
  • B. A Lambda function can be registered with an ALB using AWS Management Console only.
  • C. The permissions to invoke the Lambda function are missing.
  • D. Cross-zone is not enabled on the ALB.
#176 (Accuracy: 100% / 4 votes)
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. Enable encryption of data in transit and at rest. Store frequently accessed data in the cache.
  • B. Create an Amazon ElastiCache for Memcached instance. Enable encryption of data in transit and at rest. Store frequently accessed data in the cache.
  • C. Create an Amazon RDS for MySQL read replica. Connect to the read replica by using SSL. Configure the read replica to store frequently accessed data.
  • D. Create an Amazon DynamoDB table and a DynamoDB Accelerator (DAX) cluster for the table. Store frequently accessed data in the DynamoDB table.
#177 (Accuracy: 92% / 4 votes)
A company's developer is creating an AWS Lambda function that will read data from an Amazon RDS database. The company's security policies require the database credentials to be encrypted at rest by AWS Key Management Service (AWS KMS) keys. The database credentials must also be automatically rotated. The Lambda function needs to be able to read the database credentials securely.

Which solution will meet these requirements?
  • A. Create an AWS Secrets Manager secret for the database credentials encrypted with a KMS key. Modify the Lambda function to retrieve the secret from Secrets Manager. Attach a custom IAM policy to the Lambda function execution role to allow access to secretsmanager:GetSecretValue from the secret's Amazon Resource Name (ARN) and to allow access to kms:Decrypt from the KMS key's ARN.
  • B. Create an Amazon S3 bucket for the database credentials. Encrypt the database credentials with server-side encryption with KMS keys (SSE-KMS). Modify the Lambda function to retrieve the database credentials from the S3 bucket. Attach a custom IAM policy to the Lambda function execution role to allow access to S3:GetObject from the S3 bucket's Amazon Resource Name (ARN) and to allow access to kms:Decrypt from the KMS key's ARN.
  • C. Create SecureString parameters in AWS Systems Manager Parameter Store for the database credentials encrypted with a KMS key. Pass the parameter values by using Lambda environment variables. Attach a custom IAM policy to the Lambda function execution role to allow access to ssm:GetParameter from the parameter's Amazon Resource Name (ARN) and to allow access to kms:Decrypt from the KMS key's ARN.
  • D. Create String parameters in AWS Systems Manager Parameter Store for the database credentials encrypted with a KMS key. Pass the parameter values by using Lambda environment variables. Attach a custom IAM policy to the Lambda function execution role to allow access to ssm:GetParameter from the parameter's Amazon Resource Name (ARN) and to allow access to kms:Decrypt from the KMS key's ARN.
#178 (Accuracy: 100% / 4 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.
#179 (Accuracy: 100% / 3 votes)
A developer is monitoring an application that runs on an Amazon EC2 instance. The developer has configured a custom Amazon CloudWatch metric with data granularity of 1 second. If any issues occur, the developer wants to be notified within 30 seconds by Amazon Simple Notification Service (Amazon SNS).

What should the developer do to meet this requirement?
  • A. Configure a high-resolution CloudWatch alarm.
  • B. Set up a custom CloudWatch dashboard.
  • C. Use Amazon CloudWatch Logs Insights.
  • D. Change to a default CloudWatch metric.
#180 (Accuracy: 100% / 4 votes)
A company with multiple branch locations has an analytics and reporting application. Each branch office pushes a sales report to a shared Amazon S3 bucket at a predefined time each day. The company has developed an AWS Lambda function that analyzes the reports from all branch offices in a single pass. The Lambda function stores the results in a database.

The company needs to start the analysis once each day at a specific time.


Which solution will meet these requirements MOST cost-effectively?
  • A. Configure an S3 event notification to invoke the Lambda function when a branch office uploads a sales report.
  • B. Create an AWS Step Functions state machine that invokes the Lambda function once each day at the predefined time.
  • C. Configure the Lambda function to run continuously and to begin analysis only at the predefined time each day.
  • D. Create an Amazon EventBridge scheduled rule that invokes the Lambda function once each day at the predefined time.