Amazon AWS Certified Developer - Associate DVA-C02
Prev

There are 313 results

Next
#31 (Accuracy: 100% / 3 votes)
A developer manages a website that distributes its content by using Amazon CloudFront. The website's static artifacts are stored in an Amazon S3 bucket.

The developer deploys some changes and can see the new artifacts in the S3 bucket.
However, the changes do not appear on the webpage that the CloudFront distribution delivers.

How should the developer resolve this issue?
  • A. Configure S3 Object Lock to update to the latest version of the files every time an S3 object is updated.
  • B. Configure the S3 bucket to clear all old objects from the bucket before new artifacts are uploaded.
  • C. Set CloudFront to invalidate the cache after the artifacts have been deployed to Amazon S3.
  • D. Set CloudFront to modify the distribution origin after the artifacts have been deployed to Amazon S3.
#32 (Accuracy: 100% / 20 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. 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.
#33 (Accuracy: 100% / 3 votes)
A company uses an AWS CloudFormation template to deploy and manage its AWS infrastructure. The CloudFormation template creates Amazon VPC security groups and Amazon EC2 security groups.

A manager finds out that some engineers modified the security groups of a few EC2 instances for testing purposes.
A developer needs to determine what modifications occurred.

Which solution will meet this requirement?
  • A. Add a Conditions section statement in the source YAML file of the template. Run the CloudFormation stack.
  • B. Perform a drift detection operation on the CloudFormation stack.
  • C. Execute a change set for the CloudFormation stack.
  • D. Use Amazon Detective to detect the modifications.
#34 (Accuracy: 100% / 3 votes)
A developer uses an AWS Lambda function in an application to edit users' uploaded photos. The developer needs to update the Lambda function code and needs to test the updates.

For testing, the developer must divide the user traffic between the original version of the Lambda function and the new version of the Lambda function.


Which combination of steps will meet these requirements? (Choose two.)
  • A. Publish a version of the original Lambda function. Make the necessary changes to the Lambda code. Publish a new version of the Lambda function.
  • B. Use AWS CodeBuild to detect updates to the Lambda function. Configure CodeBuild to incrementally shift traffic from the original version of the Lambda function to the new version of the Lambda function.
  • C. Update the original version of the Lambda function to add a function URL. Make the necessary changes to the Lambda code. Publish another function URL for the updated Lambda code.
  • D. Create an alias that points to the original version of the Lambda function. Configure the alias to be a weighted alias that also includes the new version of the Lambda function. Divide traffic between the two versions.
  • E. Create an alias that points to the original function URL. Configure the alias to be a weighted alias that also includes the additional function URL. Divide traffic between the two function URLs.
#35 (Accuracy: 100% / 2 votes)
A company launched an online portal to announce a new product that the company will release in 6 months. The portal requests that users enter an email address to receive communications about the product. The company needs to create a REST API that will store the email addresses in Amazon DynamoDB.

A developer has created an AWS Lambda function that can store the email addresses.
The developer will deploy the Lambda function by using the AWS Serverless Application Model (AWS SAM). The developer must provide access to the Lambda function over HTTP.

Which solutions will meet these requirements with the LEAST additional configuration? (Choose two.)
  • A. Expose the Lambda function by using function URLs.
  • B. Expose the Lambda function by using a Gateway Load Balancer.
  • C. Expose the Lambda function by using a Network Load Balancer.
  • D. Expose the Lambda function by using AWS Global Accelerator.
  • E. Expose the Lambda function by using Amazon API Gateway.
#36 (Accuracy: 100% / 2 votes)
A company used AWS to develop an application for customers. The application includes an Amazon API Gateway API that invokes AWS Lambda functions. The Lambda functions process data and store the data in Amazon DynamoDB tables.

The company must monitor the entire application to identify potential bottlenecks in the architecture that can negatively affect customers.


Which solution will meet this requirement with the LEAST development effort?
  • A. Instrument the application with AWS X-Ray. Inspect the service map to identify errors and issues.
  • B. Configure Lambda exceptions and additional logging to Amazon CloudWatch. Use CloudWatch Logs Insights to query the logs.
  • C. Configure API Gateway to log responses to Amazon CloudWatch. Create a metric filter for the TooManyRequestsException error message.
  • D. Use Amazon CloudWatch metrics for the DynamoDB tables to identify all the ProvisionedThroughputExceededException error messages.
#37 (Accuracy: 100% / 2 votes)
A developer needs to modify an application architecture to meet new functional requirements. Application data is stored in Amazon DynamoDB and processed for analysis in a nightly batch. The system analysts do not want to wait until the next day to view the processed data and have asked to have it available in near-real time.

Which application architecture pattern would enable the data to be processed as it is received?
  • A. Event driven
  • B. Client-server driven
  • C. Fan-out driven
  • D. Schedule driven
#38 (Accuracy: 100% / 3 votes)
A developer has written a distributed application that uses microservices. The microservices are running on Amazon EC2 instances. Because of message volume, the developer is unable to match log output from each microservice to a specific transaction. The developer needs to analyze the message flow to debug the application.

Which combination of steps should the developer take to meet this requirement? (Choose two.)
  • A. Download the AWS X-Ray daemon. Install the daemon on an EC2 instance. Ensure that the EC2 instance allows UDP traffic on port 2000.
  • B. Configure an interface VPC endpoint to allow traffic to reach the global AWS X-Ray daemon on TCP port 2000.
  • C. Enable AWS X-Ray. Configure Amazon CloudWatch to push logs to X-Ray.
  • D. Add the AWS X-Ray software development kit (SDK) to the microservices. Use X-Ray to trace requests that each microservice makes.
  • E. Set up Amazon CloudWatch metric streams to collect streaming data from the microservices.
#39 (Accuracy: 100% / 2 votes)
A developer is creating AWS CloudFormation templates to manage an application's deployment in Amazon Elastic Container Service (Amazon ECS) through AWS CodeDeploy. The developer wants to automatically deploy new versions of the application to a percentage of users before the new version becomes available for all users.

How should the developer manage the deployment of the new version?
  • A. Modify the CloudFormation template to include a Transform section and the AWS::CodeDeploy::BlueGreen hook.
  • B. Deploy the new version in a new CloudFormation stack. After testing is complete, update the application's DNS records for the new stack.
  • C. Run CloudFormation stack updates on the application stack to deploy new application versions when they are available.
  • D. Create a nested stack for the new version. Include a Transform section and the AWS::CodeDeploy::BlueGreen hook.
#40 (Accuracy: 100% / 4 votes)
A developer is creating an AWS Lambda function that is invoked by messages to an Amazon Simple Notification Service (Amazon SNS) topic. The messages represent customer data updates from a customer relationship management (CRM) system

The developer wants the Lambda function to process only the messages that pertain to email address changes.
Additional subscribers to the SNS topic will process any other messages.

Which solution will meet these requirements in the LEAST development effort?
  • A. Use Lambda event filtering to allow only messages that are related to email address changes to invoke the Lambda function.
  • B. Use an SNS filter policy on the Lambda function subscription to allow only messages that are related to email address changes to invoke the Lambda function.
  • C. Subscribe an Amazon Simple Queue Service (Amazon SQS) queue to the SNS topic. Configure the SQS queue with a filter policy to allow only messages that are related to email address changes.
    Connect the SQS queue to the Lambda function.
  • D. Configure the Lambda code to check the received message. If the message is not related to an email address change, configure the Lambda function to publish the message back to the SNS topic for the other subscribers to process.