ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











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 execution, 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.
A.
Call the ChangeMessageVisibility API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
Answers
B.
Call the AddPermission API to set MaxNumberOfMessages for the ReceiveMessage action 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.
Answers
C.
Call the ReceiveMessage API to set MaxNumberOfMessages 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
Answers
D.
Call the SetQueueAttributes API for the queue and 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.
Answers
Suggested answer: A


A front-end web application is using Amazon Cognito user pools to handle the user authentication flow. A developer is integrating Amazon DynamoDB into the application using the AWS SDK for JavaScript How would the developer securely call the API without exposing the access or secret keys?

A.
Configure Amazon Cognito identity pools and exchange the JSON Web Token (JWT) for temporary credentials
A.
Configure Amazon Cognito identity pools and exchange the JSON Web Token (JWT) for temporary credentials
Answers
B.
Run the web application in an Amazon EC2 instance with the instance profile configured
B.
Run the web application in an Amazon EC2 instance with the instance profile configured
Answers
C.
Hardcode the credentials use Amazon S3 to host the web application, and enable server-side encryption
C.
Hardcode the credentials use Amazon S3 to host the web application, and enable server-side encryption
Answers
D.
Use Amazon Cognito user pool JSON Web Tokens (JWTs) to access the DynamoDB APIs.
D.
Use Amazon Cognito user pool JSON Web Tokens (JWTs) to access the DynamoDB APIs.
Answers
Suggested answer: C

A developer uses Amazon S3 buckets for static website hosting. The developer creates one S3 bucket for the code and another S3 bucket for the assets, such as image and video files. Access is denied when a user attempts to access the assets bucket from the code bucket, with the website application showing a 403 error How should the developer solve this issue?

A.
Create an IAM role and apply it to the assets bucket for the code bucket to be granted access
A.
Create an IAM role and apply it to the assets bucket for the code bucket to be granted access
Answers
B.
Edit the bucket policy of the assets bucket to open access to all principals
B.
Edit the bucket policy of the assets bucket to open access to all principals
Answers
C.
Edit the cross-origin resource sharing (CORS) configuration of the assets bucket to allow any origin to access the assets
C.
Edit the cross-origin resource sharing (CORS) configuration of the assets bucket to allow any origin to access the assets
Answers
D.
Change the code bucket to use AWS Lambda functions instead of static website hosting.
D.
Change the code bucket to use AWS Lambda functions instead of static website hosting.
Answers
Suggested answer: C

A software company needs to make sure user-uploaded documents are securely stored in Amazon S3. The documents must be encrypted at rest in Amazon S3. The company does not want to manage the security infrastructure in-house, but the company still needs extra protection to ensure it has control over its encryption keys due to industry regulations Which encryption strategy should a developer use to meet these requirements?

A.
Server-side encryption with Amazon S3 managed keys (SSE-S3)
A.
Server-side encryption with Amazon S3 managed keys (SSE-S3)
Answers
B.
Server-side encryption with customer-provided encryption keys (SSE-C)
B.
Server-side encryption with customer-provided encryption keys (SSE-C)
Answers
C.
Server-side encryption with AWS KMS managed keys (SSE-KMS)
C.
Server-side encryption with AWS KMS managed keys (SSE-KMS)
Answers
D.
Client-side encryption
D.
Client-side encryption
Answers
Suggested answer: D

A company is managing a NoSQL database on-premises to host a critical component of an application, which is starting to have scaling issues. The company wants to migrate the application to Amazon DynamoDB with the following considerations:

• Optimize frequent queries

• Reduce read latencies

• Plan for frequent queries on certain key attributes of the table

Which solution would help achieve these objectives?

A.
Create global secondary indexes on keys that are frequently queried Add the necessary attributes into the indexes.
A.
Create global secondary indexes on keys that are frequently queried Add the necessary attributes into the indexes.
Answers
B.
Create local secondary indexes on keys that are frequently queried DynamoDB will fetch needed attributes from the table .
B.
Create local secondary indexes on keys that are frequently queried DynamoDB will fetch needed attributes from the table .
Answers
C.
Create DynamoDB global tables to speed up query responses Use a scan to fetch data from the table.
C.
Create DynamoDB global tables to speed up query responses Use a scan to fetch data from the table.
Answers
D.
Create an AWS Auto Scaling policy for the DynamoDB table
D.
Create an AWS Auto Scaling policy for the DynamoDB table
Answers
Suggested answer: A

A company's ecommerce website is experiencing massive traffic spikes, which are causing performance problems in the company database. Users are reporting that accessing the website takes a long time A developer wants to implement a caching layer using Amazon ElastiCache. The website is required to be responsive no matter which product a user views, and the updates to product information and prices must be strongly consistent

A.
Which cache writing policy will satisfy these requirements?
A.
Which cache writing policy will satisfy these requirements?
Answers
B.
Write to the cache directly and sync the backend at a later time.
B.
Write to the cache directly and sync the backend at a later time.
Answers
C.
Write to the backend first and wait for the cache to expire.
C.
Write to the backend first and wait for the cache to expire.
Answers
D.
Write to the cache and the backend at the same time
D.
Write to the cache and the backend at the same time
Answers
E.
Write to the backend first and invalidate the cache
E.
Write to the backend first and invalidate the cache
Answers
Suggested answer: E

A developer is working on a serverless project based in Jav a. Initial testing shows a cold start takes about 8 seconds on average for AWS Lambda functions. What should the developer do to reduce the cold start time'' (Select TWO)

A.
Add the Spring Framework to the project and enable dependency injection
A.
Add the Spring Framework to the project and enable dependency injection
Answers
B.
Reduce the deployment package by including only the needed modules from the AWS SDK for Java.
B.
Reduce the deployment package by including only the needed modules from the AWS SDK for Java.
Answers
C.
Increase the memory allocation setting for the Lambda function.
C.
Increase the memory allocation setting for the Lambda function.
Answers
D.
Increase the timeout setting for the Lambda function.
D.
Increase the timeout setting for the Lambda function.
Answers
E.
Change the Lambda invocation mode from synchronous to asynchronous.
E.
Change the Lambda invocation mode from synchronous to asynchronous.
Answers
Suggested answer: B, C

An application is using a custom library to make HTTP calls directly to AWS service endpoints. Theapplication is experiencing transient errors that are causing processes to stop when each error is firstencountered A request has been made to make the application more resilient by adding error retriesand exponential backoff.

How should a developer implement the changes with MINIMAL custom code?

A.
Add a Retry-After HTTP header to API requests.
A.
Add a Retry-After HTTP header to API requests.
Answers
B.
Use the AWS CLI to configure the retry settings in a named profile
B.
Use the AWS CLI to configure the retry settings in a named profile
Answers
C.
Change the custom library to retry on 5xx errors only
C.
Change the custom library to retry on 5xx errors only
Answers
D.
Use an AWS SDK and set retry-specific configurations.
D.
Use an AWS SDK and set retry-specific configurations.
Answers
Suggested answer: D

An application is processing clickslream data using Amazon Kinesis. The clickstream data feed into Kinesis experiences periodic spikes. The PutRecords API call occasionally fails and the logs show that the failed call returns the response shown below.

Which techniques will help mitigate this exception? (Select TWO.)

A.
Implement retries with exponential backoff
A.
Implement retries with exponential backoff
Answers
B.
Use a PutRecord API instead of PutRecords
B.
Use a PutRecord API instead of PutRecords
Answers
C.
Reduce the frequency and/or size of the requests
C.
Reduce the frequency and/or size of the requests
Answers
D.
Use Amazon SNS instead of Kinesis.
D.
Use Amazon SNS instead of Kinesis.
Answers
E.
Reduce the number of KCL consumers.
E.
Reduce the number of KCL consumers.
Answers
Suggested answer: A, C

A company's fleet of Amazon EC2 instances receives data from millions of users through an API. The servers batch the data, add an object for each user, and upload the objects to an S3 bucket to ensure high access rates The object attributes are Customer ID, Server ID, TS-Server (TimeStamp and Server ID) the size of the object, and a timestamp A developer wants to find all the objects for a given user collected during a specified time range After creating an S3 object created event, how can the developer achieve this requirement^

A.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon DynamoDB record for every object with the Customer ID as the partition key and the Server ID as the sort key Retrieve all the records using the Customer ID and Server ID attributes
A.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon DynamoDB record for every object with the Customer ID as the partition key and the Server ID as the sort key Retrieve all the records using the Customer ID and Server ID attributes
Answers
B.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon Redshift record for every object with the Customer ID as the partition key and TS-Server as the sort key Retrieve all the records using the Customer ID and TS-Server attributes
B.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon Redshift record for every object with the Customer ID as the partition key and TS-Server as the sort key Retrieve all the records using the Customer ID and TS-Server attributes
Answers
C.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon DynamoDB record for every object with the Customer ID as the partition key and TS-Server as the sort key Retrieve all the records using the Customer ID and TS-Server attributes
C.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon DynamoDB record for every object with the Customer ID as the partition key and TS-Server as the sort key Retrieve all the records using the Customer ID and TS-Server attributes
Answers
D.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon Redshift record for every object with the Customer ID as the partition key and the Server ID as the sort key. Retrieve all the records using the Customer ID and Server ID attributes.
D.
Execute an AWS Lambda function in response to the S3 object creation events that creates an Amazon Redshift record for every object with the Customer ID as the partition key and the Server ID as the sort key. Retrieve all the records using the Customer ID and Server ID attributes.
Answers
Suggested answer: C
Total 608 questions
Go to page: of 61