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

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

List of questions

Question 361

Report
Export
Collapse

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?

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.
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.
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
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
In the Lambda code invoke a Linux command to install the missing modules under the /usr/lib directory
In the Lambda code invoke a Linux command to install the missing modules under the /usr/lib directory
In the Lambda console, create a LD_LIBRARY_PATH environment and specify the value for the system library path.
In the Lambda console, create a LD_LIBRARY_PATH environment and specify the value for the system library path.
Suggested answer: C
asked 16/09/2024
Mohand TIMSILINE
41 questions

Question 362

Report
Export
Collapse

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'?

Create a blank user ID in a user pool, add to the user group, and grant access to AWS resources
Create a blank user ID in a user pool, add to the user group, and grant access to AWS resources
Create a new identity pool, enable access to unauthenticated identities and grant access to AWS resources
Create a new identity pool, enable access to unauthenticated identities and grant access to AWS resources
Create a new user pool, enable access to unauthenticated identities, and grant access to AWS resources.
Create a new user pool, enable access to unauthenticated identities, and grant access to AWS resources.
Create a new user pool disable authentication access, and grant access to AWS resources
Create a new user pool disable authentication access, and grant access to AWS resources
Suggested answer: C
asked 16/09/2024
Jose Manuel Belmonte Martinez
34 questions

Question 363

Report
Export
Collapse

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?

Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the CloudWatch console to analyze the resulting data
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the CloudWatch console to analyze the resulting data
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
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
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
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
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the AWS X-Ray console to analyze the resulting data
Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric Use the AWS X-Ray console to analyze the resulting data
Suggested answer: C
asked 16/09/2024
Alex Luna
41 questions

Question 364

Report
Export
Collapse

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?

Create an event with Amazon CloudWatch Events that will monitor the S3 bucket and then insert the records into DynamoDB
Create an event with Amazon CloudWatch Events that will monitor the S3 bucket and then insert the records into DynamoDB
Configure an S3 event to invoke a Lambda function that inserts records into DynamoDB
Configure an S3 event to invoke a Lambda function that inserts records into DynamoDB
Create a Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
Create a Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
Create a cron job that will run at a scheduled time and insert the records into DynamoDB
Create a cron job that will run at a scheduled time and insert the records into DynamoDB
Suggested answer: B
asked 16/09/2024
Matthew Wunder
42 questions

Question 365

Report
Export
Collapse

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?

VPN logs
VPN logs
BGP logs
BGP logs
VPC Flow Logs
VPC Flow Logs
AWS CloudTrail logs
AWS CloudTrail logs
Suggested answer: C
asked 16/09/2024
Muzammil Mirza
33 questions

Question 366

Report
Export
Collapse

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?

Obtain the request identifier from the Lambda context object Architect the application to write logs to the console.
Obtain the request identifier from the Lambda context object Architect the application to write logs to the console.
Obtain the request identifier from the Lambda event object Architect the application to write logs to a file
Obtain the request identifier from the Lambda event object Architect the application to write logs to a file
Obtain the request identifier from the Lambda event object Architect the application to write logs to the console
Obtain the request identifier from the Lambda event object Architect the application to write logs to the console
Obtain the request identifier from the Lambda context object Architect the application to write logs to a file.
Obtain the request identifier from the Lambda context object Architect the application to write logs to a file.
Suggested answer: A
asked 16/09/2024
Koos Witkamp
33 questions

Question 367

Report
Export
Collapse

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

Amazon DVA-C01 image Question 367 4125 09162024005626000000

What should the developer do to correct this error message?

Assign an IAM role to the EC2 instance to allow necessary API calls on behalf of the client.
Assign an IAM role to the EC2 instance to allow necessary API calls on behalf of the client.
Implement an exponential backoff algorithm for optimizing the number of API requests made to Amazon EC2.
Implement an exponential backoff algorithm for optimizing the number of API requests made to Amazon EC2.
Increase the overall network bandwidth to handle higher API request rates.
Increase the overall network bandwidth to handle higher API request rates.
Upgrade to the latest AWS CLI version so that boto3 can handle higher request rates
Upgrade to the latest AWS CLI version so that boto3 can handle higher request rates
Suggested answer: D
asked 16/09/2024
Shahir Kazmi
42 questions

Question 368

Report
Export
Collapse

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)

Callaws cloudformation package to create the deployment package Call aws cloudformation deploy to deploy the package afterward.
Callaws cloudformation package to create the deployment package Call aws cloudformation deploy to deploy the package afterward.
Call sam package to create the deployment package Call sam deploy to deploy the package afterward
Call sam package to create the deployment package Call sam deploy to deploy the package afterward
Callaws s3 cp to upload the AWS SAM template to Amazon S3 Call aws lambda update-functioncode to create the application.
Callaws s3 cp to upload the AWS SAM template to Amazon S3 Call aws lambda update-functioncode to create the application.
Create a ZIP package locally and call aws serverlessrepo create-applicarion to create the application.
Create a ZIP package locally and call aws serverlessrepo create-applicarion to create the application.
Create a ZIP package and upload it to Amazon S3 Callaws cloudfonnation create-stack to create the application
Create a ZIP package and upload it to Amazon S3 Callaws cloudfonnation create-stack to create the application
Suggested answer: B, C
asked 16/09/2024
Andifon Etim
38 questions

Question 369

Report
Export
Collapse

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''

Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the XRay service.
Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the XRay service.
Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service
Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service
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
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
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.
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.
Suggested answer: B
asked 16/09/2024
Robert Pila
39 questions

Question 370

Report
Export
Collapse

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?

Enable API Gateway execution logging Delete old logs using API Gateway retention settings
Enable API Gateway execution logging Delete old logs using API Gateway retention settings
Enable API Gateway access logs Use Amazon CloudWatch retention settings to delete old logs
Enable API Gateway access logs Use Amazon CloudWatch retention settings to delete old logs
Enable detailed Amazon CloudWatch metrics Delete old logs with a recurring AWS Lambda function
Enable detailed Amazon CloudWatch metrics Delete old logs with a recurring AWS Lambda function
Create and use API Gateway usage plans. Delete old logs with a recurring AWS Lambda function.
Create and use API Gateway usage plans. Delete old logs with a recurring AWS Lambda function.
Suggested answer: A
asked 16/09/2024
Ian Lloyd
36 questions
Total 608 questions
Go to page: of 61
Search

Related questions