Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#191 (Accuracy: 100% / 3 votes)
A Developer has been asked to make changes to the source code of an AWS Lambda function. The function is managed using an AWS CloudFormation template. The template is configured to load the source code from an Amazon S3 bucket. The Developer manually created a .ZIP file deployment package containing the changes and put the file into the correct location on Amazon S3. When the function is invoked, the code changes have not been applied.

What step is required to update the function with the changes?
  • A. Delete the .ZIP file on S3, and re-upload by using a different object key name.
  • B. Update the CloudFormation stack with the correct values for the function code properties S3Bucket, S3Key, or S3ObjectVersion.
  • C. Ensure that the function source code is base64-encoded before uploading the deployment package to S3.
  • D. Modify the execution role of the Lambda function to allow S3 access permission to the deployment package .ZIP file.
#192 (Accuracy: 100% / 4 votes)
A social media application stores millions of video clips in Amazon S3 and serves them to users across the world. The traffic to the application varies, but access often increases suddenly to more than 10,000 PUT requests and GET requests each second. As the application has grown in popularity, users report poor quality of video streaming.

Which solution will provide the LARGEST improvement in performance?
  • A. Create an Amazon Route 53 geolocation routing policy.
  • B. Duplicate content in multiple AWS Regions by using S3 Cross Region-Replication.
  • C. Use S3 Intelligent-Tiering to move data based on access patterns.
  • D. Create an Amazon CloudFront distribution with Amazon S3 as an origin.
#193 (Accuracy: 100% / 3 votes)
An AWS Elastic Beanstalk application needs to be deployed in multiple regions and requires a different Amazon Machine Image (AMI) in each region.

Which AWS CloudFormation template key can be used to specify the correct AMI for each region?
  • A. Parameters
  • B. Outputs
  • C. Mappings
  • D. Resources
#194 (Accuracy: 100% / 3 votes)
A development team uses AWS CodeDeploy to deploy software changes to Amazon EC2 instances. The deployments begin to fail. The team traces the problem to a specific EC2 instance. The CodeDeploy agent's log file contains the following error message:

InvalidSignatureException Signature expired: |time| is now earlier than |time|

What is the underlying cause of this issue?
  • A. The development team signed the CodeDeploy revision after the team created the deployment.
  • B. The development team signed the CodeDeploy revision with a key that was not valid.
  • C. The deployment did not finish within the specified time frame.
  • D. The date setting or the time setting on the EC2 instance is not correct.
#195 (Accuracy: 100% / 3 votes)
A developer is working on a serverless application that needs to process any changes to an Amazon DynamoDB table with an AWS Lambda function.

How should the developer configure the Lambda function to detect changes to the DynamoDB table?
  • A. Create an Amazon Kinesis data stream, and attach it to the DynamoDB table. Create a trigger to connect the data stream to the Lambda function.
  • B. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the Lambda function on a regular schedule. Connect to the DynamoDB table from the Lambda function to detect changes.
  • C. Enable DynamoDB Streams on the table. Create a trigger to connect the DynamoDB stream to the Lambda function.
  • D. Create an Amazon Kinesis Data Firehose delivery stream, and attach it to the DynamoDB table. Configure the delivery stream destination as the Lambda function.
#196 (Accuracy: 100% / 3 votes)
A company designs a mobile app to run on AWS. The app will run on Amazon EC2 instances behind an Application Load Balancer. The instances will run in an Amazon EC2 Auto Scaling group. The app must securely access data that the company stores in Amazon DynamoDB.

Which solution is MOST secure?
  • A. Create an Amazon Cognito user pool for the mobile app users. Attach an IAM policy that has the required DynamoDB permissions to the user pool.
  • B. Create an AWS Lambda authorizer with the required DynamoDB permissions. Attach the Lambda authorizer to the Application Load Balancer.
  • C. Create an IAM user for each mobile user. Attach an IAM policy that provides the required DynamoDB permissions to each IAM user.
  • D. Create an IAM role. Attach a policy with the required DynamoDB permissions to the role. Configure the EC2 Auto Scaling launch template to attach the role to all EC2 instances.
#197 (Accuracy: 100% / 6 votes)
A company is using AWS CloudFormation to deploy a two-tier application. The application will use Amazon RDS as its backend database. The company wants a solution that will randomly generate the database password during deployment. The solution also must automatically rotate the database password without requiring changes to the application.

What is the MOST operationally efficient solution that meets these requirements?
  • A. Use an AWS Lambda function as a CloudFormation custom resource to generate and rotate the password.
  • B. Use an AWS Systems Manager Parameter Store resource with the SecureString data type to generate and rotate the password.
  • C. Use a cron daemon on the application’s host to generate and relate the password.
  • D. Use an AWS Secrets Manager resource to generate and rotate the password.
#198 (Accuracy: 100% / 3 votes)
A developer is trying to determine which IAM user is calling several AWS APIs from an application.

Which service would provide this information?
  • A. AWS Config
  • B. AWS CloudTrail
  • C. Amazon CloudWatch
  • D. Amazon VPC Flow Logs
#199 (Accuracy: 100% / 5 votes)
A company is hosting an Amazon API Gateway REST API that calls a single AWS Lambda function. The function is infrequently invoked by multiple clients at the same time. The code performance is optimal, but the company wants to optimize the startup time of the function.

What can a developer do to optimize the initialization of the function?
  • A. Enable API Gateway caching for the REST API.
  • B. Configure provisioned concurrency for the Lambda function.
  • C. Use Lambda proxy integration for the REST API.
  • D. Configure AWS Global Accelerator for the Lambda function.
#200 (Accuracy: 100% / 3 votes)
A company deploys a photo-processing application to an Amazon EC2 instance The application needs to process each photo in less than 5 seconds. If processing takes longer than 5 seconds, the company's development team must receive a notification.

How can a developer implement the required time measurement and notification with the LEAST operational overhead?
  • A. Create an Amazon CloudWatch custom metric. Each time a photo is processed, publish the processing time as a metric value. Create a CloudWatch alarm that is based on a static threshold of 5 seconds. Notify the development team by using an Amazon Simple Notification Service (Amazon SNS) topic.
  • B. Create an Amazon Simple Queue Service (Amazon SQS) queue. Each time a photo is processed, publish the processing time to the queue. Create an application to consume from the queue and to determine whether any values are more than 5 seconds. Notify the development team by using an Amazon Simple Notification Service (Amazon SNS) topic.
  • C. Create an Amazon CloudWatch custom metric. Each time a photo is processed, publish the processing time as a metric value. Create a CloudWatch alarm that enters ALARM state if the average of values is greater than 5 seconds. Notify the development team by sending an Amazon Simple Email Service (Amazon SES) message.
  • D. Create an Amazon Kinesis data stream. Each time a photo is processed, publish the processing time to the data stream. Create an Amazon CloudWatch alarm that enters ALARM state if any values are more than 5 seconds. Notify the development team by using an Amazon Simple Notification Service (Amazon SNS) topic.