Amazon AWS Certified Developer - Associate DVA-C02
Prev

There are 313 results

Next
#231 (Accuracy: 100% / 4 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.
#232 (Accuracy: 100% / 3 votes)
An application is real-time processing millions of events that are received through an API.

What service could be used to allow multiple consumers to process the data concurrently and MOST cost-effectively?
  • A. Amazon SNS with fanout to an SQS queue for each application
  • B. Amazon SNS with fanout to an SQS FIFO (first-in, first-out) queue for each application
  • C. Amazon Kinesis Firehose
  • D. Amazon Kinesis Data Streams
#233 (Accuracy: 100% / 4 votes)
A web application is using Amazon Kinesis Data Streams for clickstream data that may not be consumed for up to 12 hours.

How can the developer implement encryption at rest for data within the Kinesis Data Streams?
  • A. Enable SSL connections to Kinesis.
  • B. Use Amazon Kinesis Consumer Library.
  • C. Encrypt the data once it is at rest with a Lambda function.
  • D. Enable server-side encryption in Kinesis Data Streams.
#234 (Accuracy: 100% / 3 votes)
An application needs to use the IP address of the client in its processing. The application has been moved into AWS and has been placed behind an Application Load Balancer (ALB). However, all the client IP addresses now appear to be the same. The application must maintain the ability to scale horizontally.

Based on this scenario, what is the MOST cost-effective solution to this problem?
  • A. Remove the application from the ALB. Delete the ALB and change Amazon Route 53 to direct traffic to the instance running the application.
  • B. Remove the application from the ALCreate a Classic Load Balancer in its place. Direct traffic to the application using the HTTP protocol.
  • C. Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.
  • D. Alter the application code to inspect a custom header. Alter the client code to pass the IP address in the custom header.
#235 (Accuracy: 92% / 4 votes)
A developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved.

What best practice should first be applied to address this issue?
  • A. Contact AWS Support for a limit increase.
  • B. Use the AWS CLI to get the metrics.
  • C. Analyze the applications and remove the API call.
  • D. Retry the call with exponential backoff.
#236 (Accuracy: 94% / 3 votes)
A company has an existing application that has hardcoded database credentials. A developer needs to modify the existing application. The application is deployed in two AWS Regions with an active-passive failover configuration to meet company’s disaster recovery strategy.

The developer needs a solution to store the credentials outside the code.
The solution must comply with the company’s disaster recovery strategy.

Which solution will meet these requirements in the MOST secure way?
  • A. Store the credentials in AWS Secrets Manager in the primary Region. Enable secret replication to the secondary Region. Update the application to use the Amazon Resource Name (ARN) based on the Region.
  • B. Store credentials in AWS Systems Manager Parameter Store in the primary Region. Enable parameter replication to the secondary Region. Update the application to use the Amazon Resource Name (ARN) based on the Region.
  • C. Store credentials in a config file. Upload the config file to an S3 bucket in the primary Region. Enable Cross-Region Replication (CRR) to an S3 bucket in the secondary region. Update the application to access the config file from the S3 bucket, based on the Region.
  • D. Store credentials in a config file. Upload the config file to an Amazon Elastic File System (Amazon EFS) file system. Update the application to use the Amazon EFS file system Regional endpoints to access the config file in the primary and secondary Regions.
#237 (Accuracy: 100% / 3 votes)
A developer has built a market application that stores pricing data in Amazon DynamoDB with Amazon ElastiCache in front. The prices of items in the market change frequently. Sellers have begun complaining that, after they update the price of an item, the price does not actually change in the product listing.

What could be causing this issue?
  • A. The cache is not being invalidated when the price of the item is changed.
  • B. The price of the item is being retrieved using a write-through ElastiCache cluster.
  • C. The DynamoDB table was provisioned with insufficient read capacity.
  • D. The DynamoDB table was provisioned with insufficient write capacity.
#238 (Accuracy: 91% / 5 votes)
A developer is working on an AWS Lambda function that accesses Amazon DynamoDB. The Lambda function must retrieve an item and update some of its attributes, or create the item if it does not exist. The Lambda function has access to the primary key.

Which IAM permissions should the developer request for the Lambda function to achieve this functionality?
  • A. dynamodb:DeleleItem
    dynamodb:GetItem
    dynamodb:PutItem
  • B. dynamodb:UpdateItem
    dynamodb:GetItem
    dynamodb:DescribeTable
  • C. dynamodb:GetRecords
    dynamodb:PutItem
    dynamodb:UpdateTable
  • D. dynamodb:UpdateItem
    dynamodb:GetItem
    dynamodb:PutItem
#239 (Accuracy: 100% / 4 votes)
A company uses Amazon API Gateway to expose a set of APIs to customers. The APIs have caching enabled in API Gateway. Customers need a way to invalidate the cache for each API when they test the API.

What should a developer do to give customers the ability to invalidate the API cache?
  • A. Ask the customers to use AWS credentials to call the InvalidateCache API operation.
  • B. Attach an InvalidateCache policy to the IAM execution role that the customers use to invoke the API. Ask the customers to send a request that contains the Cache-Control:max-age=0 HTTP header when they make an API call.
  • C. Ask the customers to use the AWS SDK API Gateway class to invoke the InvalidateCache API operation.
  • D. Attach an InvalidateCache policy to the IAM execution role that the customers use to invoke the API. Ask the customers to add the INVALIDATE_CACHE query string parameter when they make an API call.
#240 (Accuracy: 100% / 4 votes)
A developer is preparing to begin development of a new version of an application. The previous version of the application is deployed in a production environment. The developer needs to deploy fixes and updates to the current version during the development of the new version of the application. The code for the new version of the application is stored in AWS CodeCommit.

Which solution will meet these requirements?
  • A. From the main branch, create a feature branch for production bug fixes. Create a second feature branch from the main branch for development of the new version.
  • B. Create a Git tag of the code that is currently deployed in production. Create a Git tag for the development of the new version. Push the two tags to the CodeCommit repository.
  • C. From the main branch, create a branch of the code that is currently deployed in production. Apply an IAM policy that ensures no other users can push or merge to the branch.
  • D. Create a new CodeCommit repository for development of the new version of the application. Create a Git tag for the development of the new version.