Amazon AWS Certified Developer - Associate DVA-C02
Prev

There are 313 results

Next
#241 (Accuracy: 100% / 3 votes)
A developer is building a serverless application that connects to an Amazon Aurora PostgreSQL database. The serverless application consists of hundreds of AWS Lambda functions. During every Lambda function scale out, a new database connection is made that increases database resource consumption.

The developer needs to decrease the number of connections made to the database.
The solution must not impact the scalability of the Lambda functions.

Which solution will meet these requirements?
  • A. Configure provisioned concurrency for each Lambda function by setting the ProvisionedConcurrentExecutions parameter to 10.
  • B. Enable cluster cache management for Aurora PostgreSQL. Change the connection string of each Lambda function to point to cluster cache management.
  • C. Use Amazon RDS Proxy to create a connection pool to manage the database connections. Change the connection string of each Lambda function to reference the proxy.
  • D. Configure reserved concurrency for each Lambda function by setting the ReservedConcurrentExecutions parameter to 10.
#242 (Accuracy: 100% / 3 votes)
A developer must provide an API key to an AWS Lambda function to authenticate with a third-party system. The Lambda function will run on a schedule. The developer needs to ensure that the API key remains encrypted at rest.

Which solution will meet these requirements?
  • A. Store the API key as a Lambda environment variable by using an AWS Key Management Service (AWS KMS) customer managed key.
  • B. Configure the application to prompt the user to provide the password to the Lambda function on the first run.
  • C. Store the API key as a value in the application code.
  • D. Use Lambda@Edge and only communicate over the HTTPS protocol.
#243 (Accuracy: 100% / 4 votes)
A developer is creating a new REST API by using Amazon API Gateway and AWS Lambda. The development team tests the API and validates responses for the known use cases before deploying the API to the production environment.

The developer wants to make the REST API available for testing by using API Gateway locally.


Which AWS Serverless Application Model Command Line Interface (AWS SAM CLI) subcommand will meet these requirements?
  • A. Sam local invoke
  • B. Sam local generate-event
  • C. Sam local start-lambda
  • D. Sam local start-api
#244 (Accuracy: 100% / 4 votes)
A developer has created an AWS Lambda function that makes queries to an Amazon Aurora MySQL DB instance. When the developer performs a test, the DB instance shows an error for too many connections.

Which solution will meet these requirements with the LEAST operational effort?
  • A. Create a read replica for the DB instance. Query the replica DB instance instead of the primary DB instance.
  • B. Migrate the data to an Amazon DynamoDB database.
  • C. Configure the Amazon Aurora MySQL DB instance for Multi-AZ deployment.
  • D. Create a proxy in Amazon RDS Proxy. Query the proxy instead of the DB instance.
#245 (Accuracy: 94% / 6 votes)
A company built a new application in the AWS Cloud. The company automated the bootstrapping of new resources with an Auto Scaling group by using AWS CloudFormation templates. The bootstrap scripts contain sensitive data.

The company needs a solution that is integrated with CloudFormation to manage the sensitive data in the bootstrap scripts.


Which solution will meet these requirements in the MOST secure way?
  • A. Put the sensitive data into a CloudFormation parameter. Encrypt the CloudFormation templates by using an AWS Key Management Service (AWS KMS) key.
  • B. Put the sensitive data into an Amazon S3 bucket. Update the CloudFormation templates to download the object from Amazon S3 during bootstrap.
  • C. Put the sensitive data into AWS Systems Manager Parameter Store as a secure string parameter. Update the CloudFormation templates to use dynamic references to specify template values.
  • D. Put the sensitive data into Amazon Elastic File System (Amazon EFS). Enforce EFS encryption after file system creation. Update the CloudFormation templates to retrieve data from Amazon EFS.
#246 (Accuracy: 100% / 4 votes)
A developer is creating a mobile application that will not require users to log in.

What is the MOST efficient method to grant users access to AWS resources?
  • A. Use an identity provider to securely authenticate with the application.
  • B. Create an AWS Lambda function to create an IAM user when a user accesses the application.
  • C. Create credentials using AWS KMS and apply these credentials to users when using the application.
  • D. Use Amazon Cognito to associate unauthenticated users with an IAM role that has limited access to resources.
#247 (Accuracy: 100% / 3 votes)
A company is migrating its PostgreSQL database into the AWS Cloud. The company wants to use a database that will secure and regularly rotate database credentials. The company wants a solution that does not require additional programming overhead.

Which solution will meet these requirements?
  • A. Use Amazon Aurora PostgreSQL for the database. Store the database credentials in AWS Systems Manager Parameter Store. Turn on rotation.
  • B. Use Amazon Aurora PostgreSQL for the database. Store the database credentials in AWS Secrets Manager. Turn on rotation.
  • C. Use Amazon DynamoDB for the database. Store the database credentials in AWS Systems Manager Parameter Store. Turn on rotation.
  • D. Use Amazon DynamoDB for the database. Store the database credentials in AWS Secrets Manager. Turn on rotation.
#248 (Accuracy: 100% / 4 votes)
A developer is testing an application that invokes an AWS Lambda function asynchronously. During the testing phase, the Lambda function fails to process after two retries.

How can the developer troubleshoot the failure?
  • A. Configure AWS CloudTrail logging to investigate the invocation failures.
  • B. Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
  • C. Configure Amazon Simple Workflow Service to process any direct unprocessed events.
  • D. Configure AWS Config to process any direct unprocessed events.
#249 (Accuracy: 100% / 6 votes)
A company needs to distribute firmware updates to its customers around the world.

Which service will allow easy and secure control of the access to the downloads at the lowest cost?
  • A. Use Amazon CloudFront with signed URLs for Amazon S3.
  • B. Create a dedicated Amazon CloudFront Distribution for each customer.
  • C. Use Amazon CloudFront with AWS Lambda@Edge.
  • D. Use Amazon API Gateway and AWS Lambda to control access to an S3 bucket.
#250 (Accuracy: 100% / 5 votes)
A company has an ecommerce application. To track product reviews, the company’s development team uses an Amazon DynamoDB table.

Every record includes the following:

• A Review ID, a 16-digit universally unique identifier (UUID)
• A Product ID and User ID, 16-digit UUIDs that reference other tables
• A Product Rating on a scale of 1-5
• An optional comment from the user

The table partition key is the Review ID.
The most performed query against the table is to find the 10 reviews with the highest rating for a given product.

Which index will provide the FASTEST response for this query?
  • A. A global secondary index (GSI) with Product ID as the partition key and Product Rating as the sort key
  • B. A global secondary index (GSI) with Product ID as the partition key and Review ID as the sort key
  • C. A local secondary index (LSI) with Product ID as the partition key and Product Rating as the sort key
  • D. A local secondary index (LSI) with Review ID as the partition key and Product ID as the sort key