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

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

List of questions

Question 121

Report
Export
Collapse

A Developer has created a Lambda function and is finding that the function is taking longer to complete than expected. After some debugging, the Developer has discovered that increasing compute capacity would improve performance. How can the Developer increase the Lambda compute resources?

Run on a larger instance size with more compute capacity.
Run on a larger instance size with more compute capacity.
Increase the maximum execution time.
Increase the maximum execution time.
Specify a larger compute capacity when calling the Lambda function.
Specify a larger compute capacity when calling the Lambda function.
Increase the allocated memory for the Lambda function.
Increase the allocated memory for the Lambda function.
Suggested answer: D
asked 16/09/2024
Stergios Gaidatzis
38 questions

Question 122

Report
Export
Collapse

A Developer is writing a mobile application that allows users to view images from an S3 bucket. The users must be able to log in with their Amazon login, as well as Facebook® and/or Google® accounts. How can the Developer provide this authentication functionality?

Use Amazon Cognito with web identity federation.
Use Amazon Cognito with web identity federation.
Use Amazon Cognito with SAML-based identity federation.
Use Amazon Cognito with SAML-based identity federation.
Use AWS IAM Access/Secret keys in the application code to allow Get* on the S3 bucket.
Use AWS IAM Access/Secret keys in the application code to allow Get* on the S3 bucket.
Use AWS STS AssumeRole in the application code and assume a role with Get* permissions on the S3 bucket.
Use AWS STS AssumeRole in the application code and assume a role with Get* permissions on the S3 bucket.
Suggested answer: A

Explanation:

Explanation:

Reference: http://jayendrapatil.com/tag/iam-role/

https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-browser-credentialsfederated-id.html

asked 16/09/2024
Do Hien
47 questions

Question 123

Report
Export
Collapse

A company maintains a REST service using Amazon API Gateway and the API Gateway native API key validation. The company recently launched a new registration page, which allows users to sign up for the service. The registration page creates a new API key using CreateApiKey and sends the new key to the user. When the user attempts to call the API using this key, the user receives a 403 Forbidden error. Existing users are unaffected and can still call the API. What code updates will grant these new users access to the API?

The createDeployment method must be called so the API can be redeployed to include the newly created API key.
The createDeployment method must be called so the API can be redeployed to include the newly created API key.
The updateAuthorizer method must be called to update the API’s authorizer to include the newly created API key.
The updateAuthorizer method must be called to update the API’s authorizer to include the newly created API key.
The importApiKeys method must be called to import all newly created API keys into the current stage of the API.
The importApiKeys method must be called to import all newly created API keys into the current stage of the API.
The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan.
The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan.
Suggested answer: D

Explanation:

https://stackoverflow.com/questions/39061041/using-an-api-key-in-amazon-api-gateway

asked 16/09/2024
Jackes Matos
44 questions

Question 124

Report
Export
Collapse


A company has an application that logs all information to Amazon S3. Whenever there is a new log file, an AWS Lambda function is invoked to process the log files. The code works, gathering all of the necessary information. However, when checking the Lambda function logs, duplicate entries with the same request ID are found.

What is causing the duplicate entries?

The S3 bucket name was specified incorrectly.
The S3 bucket name was specified incorrectly.
The Lambda function failed, and the Lambda service retired the invocation with a delay.
The Lambda function failed, and the Lambda service retired the invocation with a delay.
There was an S3 outage, which caused duplicate entries of the sale log file.
There was an S3 outage, which caused duplicate entries of the sale log file.
The application stopped intermittently and then resumed.
The application stopped intermittently and then resumed.
Suggested answer: B

Explanation:

https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html

asked 16/09/2024
Maris Romans
31 questions

Question 125

Report
Export
Collapse

A nightly batch job loads 1 million new records into a DynamoDB table. The records are only needed for one hour, and the table needs to be empty by the next night’s batch job. Which is the MOST efficient and cost-effective method to provide an empty table?

Use DeleteItem using a ConditionExpression.
Use DeleteItem using a ConditionExpression.
Use BatchWriteItem to empty all of the rows.
Use BatchWriteItem to empty all of the rows.
With a recursive function that scans and calls out DeleteItem.
With a recursive function that scans and calls out DeleteItem.
Create and then delete the table after the task has completed.
Create and then delete the table after the task has completed.
Suggested answer: D

Explanation:

"Deleting an entire table is significantly more efficient than removing items one-by-one, which essentially doubles the write throughput as you do as many delete operations as put operations"

asked 16/09/2024
Ranjan Gupta
33 questions

Question 126

Report
Export
Collapse

A Developer wants access to make the log data of an application running on an EC2 instance available to systems administrators. Which of the following enables monitoring of this metric in Amazon CloudWatch?

Retrieve the log data from CloudWatch using the GetMetricData API call
Retrieve the log data from CloudWatch using the GetMetricData API call
Retrieve the log data from AWS CloudTrail using the LookupEvents API call.
Retrieve the log data from AWS CloudTrail using the LookupEvents API call.
Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.
Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.
Suggested answer: D
asked 16/09/2024
Julio Callegaro
38 questions

Question 127

Report
Export
Collapse

A Development team has pushed out 10 applications running on several Amazon EC2 instances. The Operations team is asking for a graphical representation of one key performance metric for each application. These metrics should be available on one screen for easy monitoring.

Which steps should the Developer take to accomplish this using Amazon CloudWatch?

Create a custom namespace with a unique metric name for each application.
Create a custom namespace with a unique metric name for each application.
Create a custom dimension with a unique metric name for each application.
Create a custom dimension with a unique metric name for each application.
Create a custom event with a unique metric name for each application.
Create a custom event with a unique metric name for each application.
Create a custom alarm with a unique metric name for each application.
Create a custom alarm with a unique metric name for each application.
Suggested answer: A

Explanation:

https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-custom-metrics/

asked 16/09/2024
Sasha Grib
44 questions

Question 128

Report
Export
Collapse

A Developer is creating a serverless website with content that includes HTML files, images, videos, and JavaScript (client-side scripts). Which combination of services should the Developer use to create the website?

Amazon S3 and Amazon CloudFront
Amazon S3 and Amazon CloudFront
Amazon EC2 and Amazon ElastiCache
Amazon EC2 and Amazon ElastiCache
Amazon ECS and Redis
Amazon ECS and Redis
AWS Lambda and Amazon API Gateway
AWS Lambda and Amazon API Gateway
Suggested answer: A

Explanation:

Explanation:

Reference:

https://d1.awsstatic.com/whitepapers/Building%20Static%20Websites%20on%20AWS.pdf

asked 16/09/2024
Jonathan Steeman
32 questions

Question 129

Report
Export
Collapse

A company is providing services to many downstream consumers. Each consumer may connect to one or more services. This has resulted in a complex architecture that is difficult to manage and does not scale well. The company needs a single interface to manage these services to consumers.

Which AWS service should be used to refactor this architecture?

AWS Lambda
AWS Lambda
AWS X-Ray
AWS X-Ray
Amazon SQS
Amazon SQS
Amazon API Gateway
Amazon API Gateway
Suggested answer: D
asked 16/09/2024
ABDUL AZEEZ
36 questions

Question 130

Report
Export
Collapse

A company uses Amazon DynamoDB for managing and tracking orders. The DynamoDB table is partitioned based on the order date. The company receives a huge increase in orders during a sales event, causing DynamoDB writes to throttle, and the consumed throughput is far below the provisioned throughput.

According to AWS best practices, how can this issue be resolved with MINIMAL costs?

Create a new DynamoDB table for every order date.
Create a new DynamoDB table for every order date.
Increase the read and write capacity units of the DynamoDB table.
Increase the read and write capacity units of the DynamoDB table.
Add a random number suffix to the partition key values.
Add a random number suffix to the partition key values.
Add a global secondary index to the DynamoDB table.
Add a global secondary index to the DynamoDB table.
Suggested answer: C

Explanation:

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-uniformload.html

asked 16/09/2024
J. Cuylits
34 questions
Total 608 questions
Go to page: of 61
Search

Related questions