Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#1 (Accuracy: 96% / 12 votes)
A company hosts a microservices application that uses Amazon API Gateway. AWS Lambda, Amazon Simple Queue Service (Amazon SQS), and Amazon
DynamoDB.
One of the Lambda functions adds messages to an SQS FIFO queue.
When a developer checks the application logs, the developer finds a few duplicated items in a DynamoDB table.
The items were inserted by another polling function that processes messages from the queue.
What is the MOST likely cause of this issue?
  • A. Write operations on the DynamoDB table are being throttled.
  • B. The SQS queue delivered the message to the function more than once.
  • C. API Gateway duplicated the message in the SQS queue.
  • D. The polling function timeout is greater than the queue visibility timeout.
#2 (Accuracy: 92% / 8 votes)
A developer is writing an AWS Lambda function. The Lambda function needs to access items that are stored in an Amazon DynamoDB table.
What is the MOST secure way to configure this access for the Lambda function?
  • A. Create an IAM user that has permissions to access the DynamoDB table. Create an access key for this user. Store the access key ID and secret access key in the Lambda function environment variables.
  • B. Add a resource-based policy to the DynamoDB table to allow access from the Lambda function's IAM role.
  • C. Create an IAM policy that allows access to the DynamoDB table. Attach this policy to the Lambda function's IAM role.
  • D. Create a DynamoDB Accelerator (DAX) cluster. Configure the Lambda function to use the DAX duster to access the DynamoDB table.
#3 (Accuracy: 92% / 10 votes)
A company is using AWS CodeDeploy for all production deployments. A developer has an Amazon Elastic Container Service (Amazon ECS) application that uses the CodeDeployDefault.ECSAIIAtOnce configuration. The developer needs to update the production environment in increments of 10% until the entire production environment is updated.
Which CodeDeploy configuration should the developer use to meet these requirements?
  • A. CodeDeployDefault.ECSCanary10Percent5Minutes
  • B. CodeDeployDefault.ECSLinear10PercentEvery3Minutes
  • C. CodeDeployDefault.OneAtATime
  • D. CodeDeployDefault.LambdaCanary10Percent5Minutes
#4 (Accuracy: 100% / 8 votes)
A developer creates a customer managed key for multiple AWS users to encrypt data in Amazon S3. The developer configures Amazon Simple Notification
Service (Amazon SNS) to publish a message if key deletion is scheduled.
The developer needs to preserve any SNS messages that cannot be delivered so that those messages can be reprocessed.
Which AWS service or feature should the developer use to meet this requirement?
  • A. Amazon Simple Email Service (Amazon SES)
  • B. AWS Lambda
  • C. Amazon Simple Queue Service (Amazon SQS)
  • D. Amazon CloudWatch alarm
#5 (Accuracy: 100% / 4 votes)
An application under development is required to store hundreds of video files. The data must be encrypted within the application prior to storage, with a unique key for each video file.

How should the Developer code the application?
  • A. Use the KMS Encrypt API to encrypt the data. Store the encrypted data key and data.
  • B. Use a cryptography library to generate an encryption key for the application. Use the encryption key to encrypt the data. Store the encrypted data.
  • C. Use the KMS GenerateDataKey API to get a data key. Encrypt the data with the data key. Store the encrypted data key and data.
  • D. Upload the data to an S3 bucket using server side-encryption with an AWS KMS key.
#6 (Accuracy: 100% / 3 votes)
A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table.

The function is successfully invoked from an S3 event notification when an object is created.
However, the function fails when it attempts to write to the DynamoDB table.

What is the MOST likely cause of this issue?
  • A. The Lambda function's concurrency limit has been exceeded.
  • B. The DynamoDB table requires a global secondary index (GSI) to support writes.
  • C. The Lambda function does not have IAM permissions to write to DynamoDB.
  • D. The DynamoDB table is not running in the same Availability Zone as the Lambda function.
#7 (Accuracy: 100% / 6 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
#8 (Accuracy: 100% / 6 votes)
A developer needs to write an AWS CloudFormation template on a local machine and deploy a CloudFormation stack to AWS.
What must the developer do to complete these tasks?
  • A. Install the AWS CLI. Configure the AWS CLI by using an IAM user name and password.
  • B. Install the AWS CLI. Configure the AWS CLI by using an SSH key.
  • C. Install the AWS CLI. Configure the AWS CLI by using an IAM user access key and secret key.
  • D. Install an AWS software development kit (SDK). Configure the SDK by using an X.509 certificate.
#9 (Accuracy: 100% / 4 votes)
A company has a serverless application that uses Amazon API Gateway backed by AWS Lambda proxy integration. The company is developing several backend APIs. The company needs a landing page to provide an overview of navigation to the APIs.

A developer creates a new /LandingPage resource and a new GET method that uses mock integration.


What should the developer do next to meet these requirements?
  • A. Configure the integration request mapping template with Content-Type of text/html and statusCode of 200. Configure the integration response mapping template with Content-Type of application/json. In the integration response mapping template, include the LandingPage HTML code that references the APIs.
  • B. Configure the integration request mapping template with Content-Type of application/json. In the integration request mapping template, include the LandingPage HMTL code that references the APIs. Configure the integration response mapping template with Content-Type of text/html and statusCode of 200.
  • C. Configure the integration request mapping template with Content-Type of application/json and statusCode of 200. Configure the integration response mapping template with Content-Type of text/html. In the integration response mapping template, include the LandingPage HTML code that references the APIs.
  • D. Configure the integration request mapping template with Content-Type of text/html. In the integration request mapping template, include the LandingPage HTML code that references the APIs. Configure the integration response mapping template with Content-Type of application/json and statusCode of 200.
#10 (Accuracy: 92% / 6 votes)
A developer is storing many objects in a single Amazon S3 bucket. The developer needs to optimize the S3 bucket for high request rates.

How should the developer store the objects to meet this requirement?
  • A. Store the objects by using S3 Intelligent-Tiering.
  • B. Store the objects at the root of the S3 bucket.
  • C. Store the objects by using object key names distributed across multiple prefixes.
  • D. Store each object with an object tag named "prefix" that contains a unique value.