Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#41 (Accuracy: 100% / 3 votes)
A developer has created an AWS Lambda function to provide notification through Amazon Simple Notification Service (Amazon SNS) whenever a file is uploaded to Amazon S3 that is larger than 50 MB. The developer has deployed and tested the Lambda function by using the CLI. However, when the event notification is added to the S3 bucket and a 3,000 MB file is uploaded, the Lambda function does not launch.
Which of the following is a possible reason for the Lambda function's inability to launch?
  • A. The S3 event notification does not activate for files that are larger than 1,000 MB.
  • B. The resource-based policy for the Lambda function does not have the required permissions to be invoked by Amazon S3.
  • C. Lambda functions cannot be invoked directly from an S3 event.
  • D. The S3 bucket needs to be made public.
#42 (Accuracy: 100% / 4 votes)
A distributed application includes an AWS Lambda function that runs successfully in the DEV environment with 128 MB of memory assigned. The same function is failing in the TEST environment. The developer is monitoring the application using AWS X-Ray, but the Lambda function cannot be seen on the X-Ray service graph. The Lambda execution role has AWS X-Ray permissions.

What is the MOST LIKELY cause for AWS X-Ray not showing any data for the Lambda function?
  • A. The AWS SDK needs to be included in the AWS Lambda deployment package.
  • B. VPC Flow Logs are not enabled for the application VPC.
  • C. Active tracing needs to be enabled for the Lambda function.
  • D. The memory needs to be increased to 2 GB for the TEST environments.
#43 (Accuracy: 100% / 3 votes)
A developer tests an application that a company developed by using AWS Lambda. The Lambda functions are behind an AmazonAPI Gateway API. The timeout for the API method is set to the same timeout as the Lambda functions. When a request is sent to the API, the responses are timing out.

Which action would help the developer troubleshoot this issue?
  • A. Check the IntegrationLatency metric of the API in Amazon CloudWatch
  • B. Check the Duration metric for the Lambda functions in Amazon CloudWatch
  • C. Check the Count metric of the API in Amazon CloudWatch
  • D. Check the Errors metric for the Lambda functions in Amazon CloudWatch
#44 (Accuracy: 95% / 5 votes)
A developer has deployed a serverless application to AWS Lambda. The developer needs to encrypt the Lambda function's environment variables by using an AWS Key Management Service (AWS KMS) customer managed key. When the developer attempts to configure the KMS key for the environment variables, an error occurs. The error message indicates that access to the KMS key was denied.

What should the developer do to resolve this error?
  • A. Set an IAM policy that allows the developer to have appropriate access to the KMS key.
  • B. Set an IAM policy that allows the Lambda function to have appropriate access to the KMS key.
  • C. Apply the AWSLambdaBasicExecutionRole managed policy to the Lambda function.
  • D. Create a trust policy for the Lambda function. In the trust policy, specify kms.amazonaws.com as a service principal.
#45 (Accuracy: 100% / 5 votes)
A developer is building a new complex application on AWS. The application consists of multiple microservices hosted on Amazon EC2. The developer wants to determine which microservice adds the most latency while handling a request.

Which method should the developer use to make this determination?
  • A. Instrument each microservice request using the AWS X-Ray SDK. Examine the annotations associated with the requests.
  • B. Instrument each microservice request using the AWS X-Ray SDK. Examine the subsegments associated with the requests.
  • C. Instrument each microservice request using the AWS X-Ray SDK. Examine the Amazon CloudWatch EC2 instance metrics associated with the requests.
  • D. Instrument each microservice request using the Amazon CloudWatch SDK. Examine the CloudWatch EC2 instance metrics associated with the requests.
#46 (Accuracy: 100% / 10 votes)
A developer is designing an Amazon DynamoDB table for an application. The application will store user information that includes a unique identifier and an email address for each user. The application must be able to query the table by using either the unique identifier or the email address.
How should the developer design the DynamoDB table to meet these requirements?
  • A. For the primary key of the table, specify the unique identifier as the partition key and specify the email address as the sort key.
  • B. For the primary key of the table, specify the unique identifier as the partition key. Create a local secondary index (LSI) based on the email address.
  • C. For the primary key of the table, specify the email address as the partition key and specify the unique identifier as the sort key.
  • D. For the primary key of the table, specify the unique identifier as the partition key. Create a global secondary index (GSI) based on the email address.
#47 (Accuracy: 100% / 6 votes)
A company has a two-tier application running on an Amazon EC2 server that handles all of its AWS based e-commerce activity. During peak times, the backend servers that process orders are overloaded with requests. This results in some orders failing to process. A developer needs to create a solution that will re-factor the application.
Which steps will allow for more flexibility during peak times, while still remaining cost-effective? (Choose two.)
  • A. Increase the backend T2 EC2 instance sizes to x1 to handle the largest possible load throughout the year.
  • B. Implement an Amazon SQS queue to decouple the front-end and backend servers.
  • C. Use an Amazon SNS queue to decouple the front-end and backend servers.
  • D. Migrate the backend servers to on-premises and pull from an Amazon SNS queue.
  • E. Modify the backend servers to pull from an Amazon SQS queue.
#48 (Accuracy: 92% / 9 votes)
An application running on multiple Amazon EC2 instances pulls messages from a standard Amazon SQS queue. A requirement for the application is that all messages must be encrypted at rest.
Developers are instructed to use methods that allow for centralized key management and minimize possible support requirements whenever possible.

Which of the following solutions supports these requirements?
  • A. Encrypt individual messages by using client-side encryption with customer managed keys, then write to the SQS queue.
  • B. Encrypt individual messages by using SQS Extended Client and the Amazon S3 encryption client.
  • C. Create an SQS queue, and encrypt the queue by using server-side encryption with AWS KMS.
  • D. Create an SQS queue, and encrypt the queue by using client-side encryption.
#49 (Accuracy: 100% / 7 votes)
A company created an application to consume and process data. The application uses Amazon Simple Queue Service (Amazon SQS) and AWS Lambda functions. The application is currently working as expected, but it occasionally receives several messages that it cannot process properly. The company needs to clear these messages to prevent the queue from becoming blocked.
A developer must implement a solution that makes queue processing always operational.
The solution must give the company the ability to defer the messages with errors and save these messages for further analysis.
What is the MOST operationally efficient solution that meets these requirements?
  • A. Configure Amazon CloudWatch Logs to save the error messages to a separate log stream.
  • B. Create a new SQS queue. Set the new queue as a dead-letter queue for the application queue. Configure the Maximum Receives setting.
  • C. Change the SQS queue to a FIFO queue. Configure the message retention period to 0 seconds.
  • D. Configure an Amazon CloudWatch alarm for Lambda function errors. Publish messages to an Amazon Simple Notification Service (Amazon SNS) topic to notify administrator users.
#50 (Accuracy: 100% / 3 votes)
A developer has discovered that an application responsible for processing messages in an Amazon SQS queue is routinely falling behind. The application is capable of processing multiple messages in one invocation, but is only receiving one message at a time.
What should the developer do to increase the number of messages the application receives?
  • A. Call the ChangeMessageVisibility API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
  • B. Call the AddPermission API to set MaxNumberOfMessages for the ReceiveMessage action to a value greater than the default of 1.
  • C. Call the ReceiveMessage API to set MaxNumberOfMessages to a value greater than the default of 1.
  • D. Call the SetQueueAttributes API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.