ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A developer converted an existing program to an AWS Lambda function in the console. The program runs properly on a local laptop, but shows an "Unable to import module" error when tested in the Lambda console Which of the following can fix the error?

A.
Install the missing module and specify the current directory as the target Create a ZIP file to include all files under the current directory, and upload the ZIP file.
A.
Install the missing module and specify the current directory as the target Create a ZIP file to include all files under the current directory, and upload the ZIP file.
Answers
B.
Install the missing module in a lib directory Create a ZIP file to include all files under the lib directory, and upload the ZIP file as a dependency file
B.
Install the missing module in a lib directory Create a ZIP file to include all files under the lib directory, and upload the ZIP file as a dependency file
Answers
C.
In the Lambda code invoke a Linux command to install the missing modules under the /usr/lib directory
C.
In the Lambda code invoke a Linux command to install the missing modules under the /usr/lib directory
Answers
D.
In the Lambda console, create a LD_LIBRARY_PATH environment and specify the value for the system library path.
D.
In the Lambda console, create a LD_LIBRARY_PATH environment and specify the value for the system library path.
Answers
Suggested answer: C

A developer must allow guest users without logins to access an Amazon Cognito-enabled site to view files stored within an Amazon S3 bucket How should the developer meet these requirements'?

A.
Create a blank user ID in a user pool, add to the user group, and grant access to AWS resources
A.
Create a blank user ID in a user pool, add to the user group, and grant access to AWS resources
Answers
B.
Create a new identity pool, enable access to unauthenticated identities and grant access to AWS resources
B.
Create a new identity pool, enable access to unauthenticated identities and grant access to AWS resources
Answers
C.
Create a new user pool, enable access to unauthenticated identities, and grant access to AWS resources.
C.
Create a new user pool, enable access to unauthenticated identities, and grant access to AWS resources.
Answers
D.
Create a new user pool disable authentication access, and grant access to AWS resources
D.
Create a new user pool disable authentication access, and grant access to AWS resources
Answers
Suggested answer: C

A developer has written an AWS Lambda function using Java as the runtime environment. The developer wants to isolate a performance bottleneck in the code. Which steps should be taken to reveal the bottleneck?

A.
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the CloudWatch console to analyze the resulting data
A.
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the CloudWatch console to analyze the resulting data
Answers
B.
Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code Use the Amazon CloudWatch console to analyze the resulting data
B.
Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code Use the Amazon CloudWatch console to analyze the resulting data
Answers
C.
Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code. Use the X-Ray console to analyze the resulting data
C.
Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code. Use the X-Ray console to analyze the resulting data
Answers
D.
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the AWS X-Ray console to analyze the resulting data
D.
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the AWS X-Ray console to analyze the resulting data
Answers
Suggested answer: C

A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket. Which set of steps would be necessary to achieve this?

A.
Create an event with Amazon CloudWatch Events that will monitor the S3 bucket and then insert the records into DynamoDB
A.
Create an event with Amazon CloudWatch Events that will monitor the S3 bucket and then insert the records into DynamoDB
Answers
B.
Configure an S3 event to invoke a Lambda function that inserts records into DynamoDB
B.
Configure an S3 event to invoke a Lambda function that inserts records into DynamoDB
Answers
C.
Create a Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
C.
Create a Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
Answers
D.
Create a cron job that will run at a scheduled time and insert the records into DynamoDB
D.
Create a cron job that will run at a scheduled time and insert the records into DynamoDB
Answers
Suggested answer: B

A developer is leveraging a Border Gateway Protocol (BGP)-based AWS VPN connection to connect from on-premises to Amazon EC2 instances in the developer's account The developer is able to access an EC2 instance in subnet A, but is unable to access an EC2 instance in subnet B in the same VPC Which logs can the developer use to verify whether the traffic is reaching subnet B?

A.
VPN logs
A.
VPN logs
Answers
B.
BGP logs
B.
BGP logs
Answers
C.
VPC Flow Logs
C.
VPC Flow Logs
Answers
D.
AWS CloudTrail logs
D.
AWS CloudTrail logs
Answers
Suggested answer: C

A developer is writing an AWS Lambda function. The developer wants to log key events that occur during the Lambda function and include a unique identifier to associate the events with a specific function invocation. Which of the following will help the developer accomplish this objective?

A.
Obtain the request identifier from the Lambda context object Architect the application to write logs to the console.
A.
Obtain the request identifier from the Lambda context object Architect the application to write logs to the console.
Answers
B.
Obtain the request identifier from the Lambda event object Architect the application to write logs to a file
B.
Obtain the request identifier from the Lambda event object Architect the application to write logs to a file
Answers
C.
Obtain the request identifier from the Lambda event object Architect the application to write logs to the console
C.
Obtain the request identifier from the Lambda event object Architect the application to write logs to the console
Answers
D.
Obtain the request identifier from the Lambda context object Architect the application to write logs to a file.
D.
Obtain the request identifier from the Lambda context object Architect the application to write logs to a file.
Answers
Suggested answer: A

A developer receives the following error message when trying to launch or terminate an Amazon EC2 instance using a boto3 script.

What should the developer do to correct this error message?

A.
Assign an IAM role to the EC2 instance to allow necessary API calls on behalf of the client.
A.
Assign an IAM role to the EC2 instance to allow necessary API calls on behalf of the client.
Answers
B.
Implement an exponential backoff algorithm for optimizing the number of API requests made to Amazon EC2.
B.
Implement an exponential backoff algorithm for optimizing the number of API requests made to Amazon EC2.
Answers
C.
Increase the overall network bandwidth to handle higher API request rates.
C.
Increase the overall network bandwidth to handle higher API request rates.
Answers
D.
Upgrade to the latest AWS CLI version so that boto3 can handle higher request rates
D.
Upgrade to the latest AWS CLI version so that boto3 can handle higher request rates
Answers
Suggested answer: D

A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless Application Model (AWS SAM) template for the application What should the developer use for the project? (Select TWO)

A.
Callaws cloudformation package to create the deployment package Call aws cloudformation deploy to deploy the package afterward.
A.
Callaws cloudformation package to create the deployment package Call aws cloudformation deploy to deploy the package afterward.
Answers
B.
Call sam package to create the deployment package Call sam deploy to deploy the package afterward
B.
Call sam package to create the deployment package Call sam deploy to deploy the package afterward
Answers
C.
Callaws s3 cp to upload the AWS SAM template to Amazon S3 Call aws lambda update-functioncode to create the application.
C.
Callaws s3 cp to upload the AWS SAM template to Amazon S3 Call aws lambda update-functioncode to create the application.
Answers
D.
Create a ZIP package locally and call aws serverlessrepo create-applicarion to create the application.
D.
Create a ZIP package locally and call aws serverlessrepo create-applicarion to create the application.
Answers
E.
Create a ZIP package and upload it to Amazon S3 Callaws cloudfonnation create-stack to create the application
E.
Create a ZIP package and upload it to Amazon S3 Callaws cloudfonnation create-stack to create the application
Answers
Suggested answer: B, C

A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration''

A.
Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the XRay service.
A.
Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the XRay service.
Answers
B.
Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service
B.
Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service
Answers
C.
Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call
C.
Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call
Answers
D.
Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call.
D.
Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call.
Answers
Suggested answer: B

A developer has created a REST API using Amazon API Gateway. The developer wants to log who and how each caller accesses the API. The developer also wants to control how long the logs are kept What should the developer do to meet these requirements?

A.
Enable API Gateway execution logging Delete old logs using API Gateway retention settings
A.
Enable API Gateway execution logging Delete old logs using API Gateway retention settings
Answers
B.
Enable API Gateway access logs Use Amazon CloudWatch retention settings to delete old logs
B.
Enable API Gateway access logs Use Amazon CloudWatch retention settings to delete old logs
Answers
C.
Enable detailed Amazon CloudWatch metrics Delete old logs with a recurring AWS Lambda function
C.
Enable detailed Amazon CloudWatch metrics Delete old logs with a recurring AWS Lambda function
Answers
D.
Create and use API Gateway usage plans. Delete old logs with a recurring AWS Lambda function.
D.
Create and use API Gateway usage plans. Delete old logs with a recurring AWS Lambda function.
Answers
Suggested answer: A
Total 608 questions
Go to page: of 61