ExamGecko
Home Home / Amazon / DVA-C01

Amazon DVA-C01 Practice Test - Questions Answers, Page 54

Question list
Search
Search

List of questions

Search

Related questions











A company has an online order website that uses Amazon DynamoDB to store item inventory. A sample of the inventory object is as follows:

A developer needs to reduce all inventory prices by 100 as long as the resulting price would not be less than 500. What should the developer do to make this change with the LEAST number of calls to DynamoDB?

A.
Perform a DynamoDB Query operation with the Id. If the price is >= 600, perform an Updateltem operation to update the price.
A.
Perform a DynamoDB Query operation with the Id. If the price is >= 600, perform an Updateltem operation to update the price.
Answers
B.
Perform a DynamoDB Updateltem operation with a condition expression of "Price >= 600".
B.
Perform a DynamoDB Updateltem operation with a condition expression of "Price >= 600".
Answers
C.
Perform a DynamoDB Updateltem operation with a condition expression of "ProductCategory IN<{"S": "Sporting Goods"}) and Price = 600".
C.
Perform a DynamoDB Updateltem operation with a condition expression of "ProductCategory IN<{"S": "Sporting Goods"}) and Price = 600".
Answers
Suggested answer: C

A company is expanding the compatibility of its photo-sharing mobile app to hundreds of additional devices with unique screen dimensions and resolutions. Ph are stored in Amazon S3 in their original format and resolution. The company uses an Amazon CloudFront distribution to serve the photos.

The app includes th dimension and resolution of the display as GET parameters with every request.

A developer needs to implement a solution that optimizes the photos that are served to each device to reduce load time and increase photo quality. Which solution will meet these requirements MOST cost-effectively?

A.
Use S3 Batch Operations to invoke an AWS Lambda function to create new variants of the photos with the required dimensions and resolutions. Cr........dynamic CloudFront origin that automatically maps the request of each device to the corresponding photo variant.
A.
Use S3 Batch Operations to invoke an AWS Lambda function to create new variants of the photos with the required dimensions and resolutions. Cr........dynamic CloudFront origin that automatically maps the request of each device to the corresponding photo variant.
Answers
B.
Use S3 Batch Operations to invoke an AWS Lambda function to create new variants of the photos with the required dimensions and resolutions. Cre;..... Lambda@Edge function to route requests to the corresponding photo variant by using request headers.
B.
Use S3 Batch Operations to invoke an AWS Lambda function to create new variants of the photos with the required dimensions and resolutions. Cre;..... Lambda@Edge function to route requests to the corresponding photo variant by using request headers.
Answers
C.
Create a Lambda@Edge function that optimizes the photos upon request and returns the photos as a response. Change the CloudFront TTL cache policy to the maximum value possible.
C.
Create a Lambda@Edge function that optimizes the photos upon request and returns the photos as a response. Change the CloudFront TTL cache policy to the maximum value possible.
Answers
D.
Create a Lambda@Edge function that optimizes the photos upon request and returns the photos as a response. In the same function, store a copy to processed photos on Amazon S3 for subsequent requests.
D.
Create a Lambda@Edge function that optimizes the photos upon request and returns the photos as a response. In the same function, store a copy to processed photos on Amazon S3 for subsequent requests.
Answers
Suggested answer: A

A developer at a company recently created a serverless application to process and show data from business reports. The application's user interface (Ul) allow users to select and start processing the files. The Ul displays a message when the result is available to view. The application uses AWS Step Functions with A Lambda functions "to process the files. The developer used Amazon API Gateway and Lambda functions to create an API to support the Ul. The company's Ul team reports that the request to process a file is often returning timeout errors because of the size or complexity of the files. The Ul team w< API to provide an immediate response so that the Ul can display a message while the files are being processed. The backend process that is invoked by the A needs to send an email message when the report processing is complete. What should the developer do to configure the API to meet these requirements?

A.
Change the API Gateway route to add an X-Amz-lnvocation-Type header with a static value of 'Event' in the integration request. Deploy the API Gatt stage to apply the changes.
A.
Change the API Gateway route to add an X-Amz-lnvocation-Type header with a static value of 'Event' in the integration request. Deploy the API Gatt stage to apply the changes.
Answers
B.
Change the configuration of the Lambda function that implements the request to process a file.Configure the maximum age of the event so that the Lambda function will run asynchronously.
B.
Change the configuration of the Lambda function that implements the request to process a file.Configure the maximum age of the event so that the Lambda function will run asynchronously.
Answers
C.
Change the API Gateway timeout value to match the Lambda function timeout value. Deploy the API Gateway stage to apply the changes.
C.
Change the API Gateway timeout value to match the Lambda function timeout value. Deploy the API Gateway stage to apply the changes.
Answers
D.
Change the API Gateway route to add an X-Amz-Target header with a static value of 'Async' in the integration request. Deploy the API Gateway stag apply the changes.
D.
Change the API Gateway route to add an X-Amz-Target header with a static value of 'Async' in the integration request. Deploy the API Gateway stag apply the changes.
Answers
Suggested answer: A

An application that is running on Amazon EC2 instances stores data in an Amazon S3 bucket. All the data must be encrypted in transit. How can a developer ensure that all traffic to the S3 bucket is encrypted?

A.
Install certificates on the EC2 instances.
A.
Install certificates on the EC2 instances.
Answers
B.
Create a private VPC endpoint.
B.
Create a private VPC endpoint.
Answers
C.
Configure the S3 bucket with server-side encryption with AWS KMS managed encryption keys(SSE-KMS).
C.
Configure the S3 bucket with server-side encryption with AWS KMS managed encryption keys(SSE-KMS).
Answers
D.
Create an S3 bucket policy that denies traffic when the value for the aws:SecureTransport condition key is false.
D.
Create an S3 bucket policy that denies traffic when the value for the aws:SecureTransport condition key is false.
Answers
Suggested answer: C

A developer needs to use Amazon DynamoDB to store customer orders. The developer's company requires all customer data to be encrypted at rest with a ke the company generates. What should the developer do to meet these requirements?

A.
Create the DynamoDB table with encryption set to None. Code the application to use the key to decrypt the data when the application reads from the table. Code the application to use the key to encrypt the data when the application writes to the table.
A.
Create the DynamoDB table with encryption set to None. Code the application to use the key to decrypt the data when the application reads from the table. Code the application to use the key to encrypt the data when the application writes to the table.
Answers
B.
Store the key by using AWS Key Management Service (AWS KMS). Choose an AWS KMS customer managed key during creation of the DynamoDB table. Provide the Amazon Resource Name (ARN) of the AWS KMS key.
B.
Store the key by using AWS Key Management Service (AWS KMS). Choose an AWS KMS customer managed key during creation of the DynamoDB table. Provide the Amazon Resource Name (ARN) of the AWS KMS key.
Answers
C.
Store the key by using AWS Key Management Service (AWS KMS). Create the DynamoDB table with default encryption. Include the kms:Encrypt parameter with the Amazon Resource Name (ARN) of the AWS KMS key when using the DynamoDB software development kit (SDK).
C.
Store the key by using AWS Key Management Service (AWS KMS). Create the DynamoDB table with default encryption. Include the kms:Encrypt parameter with the Amazon Resource Name (ARN) of the AWS KMS key when using the DynamoDB software development kit (SDK).
Answers
D.
Store the key by using AWS Key Management Service (AWS KMS). Choose an AWS KMS AWS managed key during creation of the DynamoDB table Provide the Amazon Resource Name (ARN) of the AWS KMS key.
D.
Store the key by using AWS Key Management Service (AWS KMS). Choose an AWS KMS AWS managed key during creation of the DynamoDB table Provide the Amazon Resource Name (ARN) of the AWS KMS key.
Answers
Suggested answer: C

A developer notices timeouts from the AWS CLI when the developer runs list commands. What should the developer do to avoid these timeouts?

A.
Use the -page-size parameter to request a smaller number of items.
A.
Use the -page-size parameter to request a smaller number of items.
Answers
B.
Use shorthand syntax to separate the list by a single space.
B.
Use shorthand syntax to separate the list by a single space.
Answers
C.
Use the yaml-stream output for faster viewing of large datasets.
C.
Use the yaml-stream output for faster viewing of large datasets.
Answers
D.
Use quotation marks around strings to enclose data structure.
D.
Use quotation marks around strings to enclose data structure.
Answers
Suggested answer: A

A developer implemented a static website hosted in amazon s3 that makes web service requests in amazon api gateway and aws lambda. The site is showing an error that reads. ''No 'access control-allow-origin'header' header is present on the requested resource. Origin 'null is therefore not allowed access '' What should the developer do to resolve this issue?

A.
Enable cross-origin resource sharing (cors) on the s3 bucket
A.
Enable cross-origin resource sharing (cors) on the s3 bucket
Answers
B.
Enable cross-origin resource sharing (cors) for the method in api gateway
B.
Enable cross-origin resource sharing (cors) for the method in api gateway
Answers
C.
Add the access control-request-method header to the request
C.
Add the access control-request-method header to the request
Answers
D.
Add the access-control inquest headers header to the request
D.
Add the access-control inquest headers header to the request
Answers
Suggested answer: A

Explanation:

Reference: https://forums.aws.amazon.com/thread.jspa?threadid=252972

A developer is creating a serverless application that uses an AWS Lambda function. The developer will use AWS Cloud Formation to deploy the application. The application will write logs to Amazon 3loudWatch Logs. The developer has created a log group in a Cloud Format ion template for the application to use. The developer needs to modify the CloudFormation template to make the name of the log [jroup available to the application at runtime. Which solution will meet this requirement?

A.
Use the AWS:: Include transform in CloudFormation to provide the log group's name to the application.
A.
Use the AWS:: Include transform in CloudFormation to provide the log group's name to the application.
Answers
B.
Pass the log group's name to the application in the user data section of the CloudFormation template.
B.
Pass the log group's name to the application in the user data section of the CloudFormation template.
Answers
C.
Use the CloudFormation template's Mappings section to specify the log group's name for the application.
C.
Use the CloudFormation template's Mappings section to specify the log group's name for the application.
Answers
D.
Pass the log group's Amazon Resource Name (ARN) as an environment variable to the Lambda function.
D.
Pass the log group's Amazon Resource Name (ARN) as an environment variable to the Lambda function.
Answers
Suggested answer: C

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 tor this query?

A.
A global secondary index (GSI) with Product ID as the partition key and Product Rating as the sort key
A.
A global secondary index (GSI) with Product ID as the partition key and Product Rating as the sort key
Answers
B.
A global secondary index (GSI) with Product ID as the partition key and Review ID as the sort key
B.
A global secondary index (GSI) with Product ID as the partition key and Review ID as the sort key
Answers
C.
A local secondary index (LSI) with Product ID as the partition key and Product Rating as the sort key
C.
A local secondary index (LSI) with Product ID as the partition key and Product Rating as the sort key
Answers
D.
A local secondary index (LSI) with Review ID as the partition key and Product ID as the sort key
D.
A local secondary index (LSI) with Review ID as the partition key and Product ID as the sort key
Answers
Suggested answer: A

A developer is monitoring an application that runs on an Amazon EC2 instance. The developer has configured a custom Amazon CloudWatch metric with d#ta granularity of 1 second. If any issues occur, the developer wants to be notified within 30 seconds by Amazon Simple Notification Service

(Amazon SNS).

What should the developer do to meet this requirement?

A.
Configure a high-resolution CloudWatch alarm.
A.
Configure a high-resolution CloudWatch alarm.
Answers
B.
Set up a custom CloudWatch dashboard.
B.
Set up a custom CloudWatch dashboard.
Answers
C.
Use Amazon CloudWatch Logs Insights.
C.
Use Amazon CloudWatch Logs Insights.
Answers
D.
Change to a default CloudWatch metric.
D.
Change to a default CloudWatch metric.
Answers
Suggested answer: D
Total 608 questions
Go to page: of 61