ExamGecko
Home / Amazon / DVA-C01 / List of questions
Ask Question

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

List of questions

Question 341

Report
Export
Collapse

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?

Call the ChangeMessageVisibility API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
Call the ChangeMessageVisibility API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
Call the AddPermission API to set MaxNumberOfMessages for the ReceiveMessage action to a value greater than the default of 1.
Call the AddPermission API to set MaxNumberOfMessages for the ReceiveMessage action to a value greater than the default of 1.
Call the ReceiveMessage API to set MaxNumberOfMessages to a value greater than the default of 1
Call the ReceiveMessage API to set MaxNumberOfMessages to a value greater than the default of 1
Call the SetQueueAttributes API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
Call the SetQueueAttributes API for the queue and set MaxNumberOfMessages to a value greater than the default of 1.
Suggested answer: A
asked 16/09/2024
Antonio Pombo
30 questions

Question 342

Report
Export
Collapse


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?

Configure Amazon Cognito identity pools and exchange the JSON Web Token (JWT) for temporary credentials
Configure Amazon Cognito identity pools and exchange the JSON Web Token (JWT) for temporary credentials
Run the web application in an Amazon EC2 instance with the instance profile configured
Run the web application in an Amazon EC2 instance with the instance profile configured
Hardcode the credentials use Amazon S3 to host the web application, and enable server-side encryption
Hardcode the credentials use Amazon S3 to host the web application, and enable server-side encryption
Use Amazon Cognito user pool JSON Web Tokens (JWTs) to access the DynamoDB APIs.
Use Amazon Cognito user pool JSON Web Tokens (JWTs) to access the DynamoDB APIs.
Suggested answer: C
asked 16/09/2024
Kevin Suckiel
48 questions

Question 343

Report
Export
Collapse

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?

Create an IAM role and apply it to the assets bucket for the code bucket to be granted access
Create an IAM role and apply it to the assets bucket for the code bucket to be granted access
Edit the bucket policy of the assets bucket to open access to all principals
Edit the bucket policy of the assets bucket to open access to all principals
Edit the cross-origin resource sharing (CORS) configuration of the assets bucket to allow any origin to access the assets
Edit the cross-origin resource sharing (CORS) configuration of the assets bucket to allow any origin to access the assets
Change the code bucket to use AWS Lambda functions instead of static website hosting.
Change the code bucket to use AWS Lambda functions instead of static website hosting.
Suggested answer: C
asked 16/09/2024
Said Bouzardaoui
38 questions

Question 344

Report
Export
Collapse

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?

Server-side encryption with Amazon S3 managed keys (SSE-S3)
Server-side encryption with Amazon S3 managed keys (SSE-S3)
Server-side encryption with customer-provided encryption keys (SSE-C)
Server-side encryption with customer-provided encryption keys (SSE-C)
Server-side encryption with AWS KMS managed keys (SSE-KMS)
Server-side encryption with AWS KMS managed keys (SSE-KMS)
Client-side encryption
Client-side encryption
Suggested answer: D
asked 16/09/2024
Hoang Son
47 questions

Question 345

Report
Export
Collapse

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?

Create global secondary indexes on keys that are frequently queried Add the necessary attributes into the indexes.
Create global secondary indexes on keys that are frequently queried Add the necessary attributes into the indexes.
Create local secondary indexes on keys that are frequently queried DynamoDB will fetch needed attributes from the table .
Create local secondary indexes on keys that are frequently queried DynamoDB will fetch needed attributes from the table .
Create DynamoDB global tables to speed up query responses Use a scan to fetch data from the table.
Create DynamoDB global tables to speed up query responses Use a scan to fetch data from the table.
Create an AWS Auto Scaling policy for the DynamoDB table
Create an AWS Auto Scaling policy for the DynamoDB table
Suggested answer: A
asked 16/09/2024
Musoke Kamuzze
36 questions

Question 346

Report
Export
Collapse

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

Which cache writing policy will satisfy these requirements?
Which cache writing policy will satisfy these requirements?
Write to the cache directly and sync the backend at a later time.
Write to the cache directly and sync the backend at a later time.
Write to the backend first and wait for the cache to expire.
Write to the backend first and wait for the cache to expire.
Write to the cache and the backend at the same time
Write to the cache and the backend at the same time
Write to the backend first and invalidate the cache
Write to the backend first and invalidate the cache
Suggested answer: E
asked 16/09/2024
Jari Tetteroo
38 questions

Question 347

Report
Export
Collapse

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)

Add the Spring Framework to the project and enable dependency injection
Add the Spring Framework to the project and enable dependency injection
Reduce the deployment package by including only the needed modules from the AWS SDK for Java.
Reduce the deployment package by including only the needed modules from the AWS SDK for Java.
Increase the memory allocation setting for the Lambda function.
Increase the memory allocation setting for the Lambda function.
Increase the timeout setting for the Lambda function.
Increase the timeout setting for the Lambda function.
Change the Lambda invocation mode from synchronous to asynchronous.
Change the Lambda invocation mode from synchronous to asynchronous.
Suggested answer: B, C
asked 16/09/2024
Andrew Carver
38 questions

Question 348

Report
Export
Collapse

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?

Add a Retry-After HTTP header to API requests.
Add a Retry-After HTTP header to API requests.
Use the AWS CLI to configure the retry settings in a named profile
Use the AWS CLI to configure the retry settings in a named profile
Change the custom library to retry on 5xx errors only
Change the custom library to retry on 5xx errors only
Use an AWS SDK and set retry-specific configurations.
Use an AWS SDK and set retry-specific configurations.
Suggested answer: D
asked 16/09/2024
sicnarep sicnarep
44 questions

Question 349

Report
Export
Collapse

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.

Amazon DVA-C01 image Question 349 4107 09162024005626000000

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

Implement retries with exponential backoff
Implement retries with exponential backoff
Use a PutRecord API instead of PutRecords
Use a PutRecord API instead of PutRecords
Reduce the frequency and/or size of the requests
Reduce the frequency and/or size of the requests
Use Amazon SNS instead of Kinesis.
Use Amazon SNS instead of Kinesis.
Reduce the number of KCL consumers.
Reduce the number of KCL consumers.
Suggested answer: A, C
asked 16/09/2024
Ian Gothard
35 questions

Question 350

Report
Export
Collapse

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^

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
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
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
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
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
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
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.
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.
Suggested answer: C
asked 16/09/2024
Sébastien PIERRE
48 questions
Total 608 questions
Go to page: of 61
Search

Related questions