ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
Run on a larger instance size with more compute capacity.
A.
Run on a larger instance size with more compute capacity.
Answers
B.
Increase the maximum execution time.
B.
Increase the maximum execution time.
Answers
C.
Specify a larger compute capacity when calling the Lambda function.
C.
Specify a larger compute capacity when calling the Lambda function.
Answers
D.
Increase the allocated memory for the Lambda function.
D.
Increase the allocated memory for the Lambda function.
Answers
Suggested answer: D

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?

A.
Use Amazon Cognito with web identity federation.
A.
Use Amazon Cognito with web identity federation.
Answers
B.
Use Amazon Cognito with SAML-based identity federation.
B.
Use Amazon Cognito with SAML-based identity federation.
Answers
C.
Use AWS IAM Access/Secret keys in the application code to allow Get* on the S3 bucket.
C.
Use AWS IAM Access/Secret keys in the application code to allow Get* on the S3 bucket.
Answers
D.
Use AWS STS AssumeRole in the application code and assume a role with Get* permissions on the S3 bucket.
D.
Use AWS STS AssumeRole in the application code and assume a role with Get* permissions on the S3 bucket.
Answers
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

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?

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

Explanation:

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


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?

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

Explanation:

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

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?

A.
Use DeleteItem using a ConditionExpression.
A.
Use DeleteItem using a ConditionExpression.
Answers
B.
Use BatchWriteItem to empty all of the rows.
B.
Use BatchWriteItem to empty all of the rows.
Answers
C.
With a recursive function that scans and calls out DeleteItem.
C.
With a recursive function that scans and calls out DeleteItem.
Answers
D.
Create and then delete the table after the task has completed.
D.
Create and then delete the table after the task has completed.
Answers
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"

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?

A.
Retrieve the log data from CloudWatch using the GetMetricData API call
A.
Retrieve the log data from CloudWatch using the GetMetricData API call
Answers
B.
Retrieve the log data from AWS CloudTrail using the LookupEvents API call.
B.
Retrieve the log data from AWS CloudTrail using the LookupEvents API call.
Answers
C.
Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
C.
Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
Answers
D.
Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.
D.
Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.
Answers
Suggested answer: D

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?

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

Explanation:

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

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?

A.
Amazon S3 and Amazon CloudFront
A.
Amazon S3 and Amazon CloudFront
Answers
B.
Amazon EC2 and Amazon ElastiCache
B.
Amazon EC2 and Amazon ElastiCache
Answers
C.
Amazon ECS and Redis
C.
Amazon ECS and Redis
Answers
D.
AWS Lambda and Amazon API Gateway
D.
AWS Lambda and Amazon API Gateway
Answers
Suggested answer: A

Explanation:

Explanation:

Reference:

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

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?

A.
AWS Lambda
A.
AWS Lambda
Answers
B.
AWS X-Ray
B.
AWS X-Ray
Answers
C.
Amazon SQS
C.
Amazon SQS
Answers
D.
Amazon API Gateway
D.
Amazon API Gateway
Answers
Suggested answer: D

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?

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

Explanation:

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

Total 608 questions
Go to page: of 61