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

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

List of questions

Question 291

Report
Export
Collapse

A company experienced partial downtime during the last deployment of a new application AWS Elastic Beanstalk split the environment's Amazon EC2 instances into batches and deployed a new version one batch at a time after taking them out of service. Therefore, full capacity was not maintained during deployment.

The developer plans to release a new version of the application, and is looking for a policy that will maintain full capacity and minimize the impact of the failed deployment Which deployment policy should the developer use?

Immutable
Immutable
All at Once
All at Once
Rolling
Rolling
Rolling with an Additional Batch
Rolling with an Additional Batch
Suggested answer: A
asked 16/09/2024
Charalambos Pasvantis
40 questions

Question 292

Report
Export
Collapse

An application ingests a large number of small messages and stores them in a database. The application uses AWS Lambd a. A development team is making changes to the application's processing logic. In testing, it is taking more than 15 minutes to process each message. The team is concerned the current backend may time out.

Which changes should be made to the backend system to ensure each message is processed in the MOST scalable way1?

Add the messages to an Amazon SQS queue Set up an Amazon EC2 instance to poll the queue and process messages as they arrive.
Add the messages to an Amazon SQS queue Set up an Amazon EC2 instance to poll the queue and process messages as they arrive.
Add the messages to an Amazon SQS queue. Set up Amazon EC2 instances in an Auto Scaling group to poll the queue and process the messages as they arrive.
Add the messages to an Amazon SQS queue. Set up Amazon EC2 instances in an Auto Scaling group to poll the queue and process the messages as they arrive.
Create a support ticket to increase the Lambda timeout to 60 minutes to allow for increased processing time
Create a support ticket to increase the Lambda timeout to 60 minutes to allow for increased processing time
Change the application to directly insert the body of the message into an Amazon RDS database.
Change the application to directly insert the body of the message into an Amazon RDS database.
Suggested answer: A
asked 16/09/2024
Joseph Daly
43 questions

Question 293

Report
Export
Collapse

A company is developing a web application that allows its employees to upload a profile picture to a private Amazon S3 bucket There is no size limit for the profile pictures, which should be displayed every time an employee logs in. For security reasons, the pictures cannot be publicly accessible.

What is a viable long-term solution for this scenario''

Generate a presigned URL when a picture is uploaded Save the URL in an Amazon DynamoDB table Return the URL to the browser when the employee logs in
Generate a presigned URL when a picture is uploaded Save the URL in an Amazon DynamoDB table Return the URL to the browser when the employee logs in
Save the picture's S3 key in an Amazon DynamoDB table Create an Amazon S3 VPC endpoint to allow the employees to download pictures once they log in.
Save the picture's S3 key in an Amazon DynamoDB table Create an Amazon S3 VPC endpoint to allow the employees to download pictures once they log in.
Encode a picture using base64 Save the base64 string in an Amazon DynamoDB table Allow the browser to retrieve the string and convert it to a picture
Encode a picture using base64 Save the base64 string in an Amazon DynamoDB table Allow the browser to retrieve the string and convert it to a picture
Save the picture's S3 key in an Amazon DynamoDB table. Use a function to generate a presigned URL every time an employee logs in. Return the URL to the browser.
Save the picture's S3 key in an Amazon DynamoDB table. Use a function to generate a presigned URL every time an employee logs in. Return the URL to the browser.
Suggested answer: B

Explanation:

Reference: https://aws.amazon.com/premiumsupport/knowledge-center/s3-private-connectionnoauthentication/

asked 16/09/2024
Barbara Bailey
42 questions

Question 294

Report
Export
Collapse

A developer is testing a Docker-based application that uses the AWS SDK to interact with Amazon DynamoDB In the local development environment, the application has used IAM access keys The application is now ready for deployment onto an ECS duster.

How should the application authenticate with AWS services in production?

Configure an ECS task IAM role for the application to use
Configure an ECS task IAM role for the application to use
Refactor the application to call AWS STS AssumeRole based on an instance role
Refactor the application to call AWS STS AssumeRole based on an instance role
Configure AWS access key/secret access key environment variables with new credentials
Configure AWS access key/secret access key environment variables with new credentials
Configure the credentials file with a new access key/secret access key
Configure the credentials file with a new access key/secret access key
Suggested answer: A
asked 16/09/2024
Jay Chua
40 questions

Question 295

Report
Export
Collapse

A company wants to migrate an imaging service to Amazon EC2 while following security best practices. The images are sourced and read from a non-public Amazon S3 bucket. What should a developer do to meet these requirements?

Create an IAM user with read-only permissions for the S3 bucket Temporarily store the user credentials in the Amazon EBS volume of the EC2 instance
Create an IAM user with read-only permissions for the S3 bucket Temporarily store the user credentials in the Amazon EBS volume of the EC2 instance
Create an IAM user with read-only permissions for the S3 bucket. Temporarily store the user credentials in the user data of the EC2 instance.
Create an IAM user with read-only permissions for the S3 bucket. Temporarily store the user credentials in the user data of the EC2 instance.
Create an EC2 service role with read-only permissions for the S3 bucket Attach the role to the EC2 instance
Create an EC2 service role with read-only permissions for the S3 bucket Attach the role to the EC2 instance
Create an S3 service role with read-only permissions for the S3 bucket Attach the role to the EC2 instance
Create an S3 service role with read-only permissions for the S3 bucket Attach the role to the EC2 instance
Suggested answer: A
asked 16/09/2024
Carol Phelps
35 questions

Question 296

Report
Export
Collapse

A developer wants to send multi-value headers to an AWS Lambda function that is registered as a target with an Application Load Balancer (ALB). What should the developer do to achieve this?

Place the Lambda function and target group in the same account
Place the Lambda function and target group in the same account
Send the request body to the Lambda function with a size less than 1 MB 0
Send the request body to the Lambda function with a size less than 1 MB 0
Include the Base64 encoding status status code, status description, and headers in the Lambda function
Include the Base64 encoding status status code, status description, and headers in the Lambda function
Enable the multi-value headers on the ALB
Enable the multi-value headers on the ALB
Suggested answer: D
asked 16/09/2024
Shantal Aviles
33 questions

Question 297

Report
Export
Collapse

An ecommerce startup is preparing for an annual sales event As the traffic to the company's application increases, the development team wants to be notified when the Amazon EC2 instance's CPU utilization exceeds 80%. Which solution will meet this requirement?

Create a custom Amazon CloudWatch alarm that sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%.
Create a custom Amazon CloudWatch alarm that sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%.
Create a custom AWS CloudTrail alarm that sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%
Create a custom AWS CloudTrail alarm that sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%
Create a cron job on the EC2 instance that executes the --describe-instance-information command on the host instance every 15 minutes and sends the results to an Amazon SNS topic
Create a cron job on the EC2 instance that executes the --describe-instance-information command on the host instance every 15 minutes and sends the results to an Amazon SNS topic
Create an AWS Lambda function that queries the AWS CloudTrail logs for the CPUUtihzation metric every 15 minutes and sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%
Create an AWS Lambda function that queries the AWS CloudTrail logs for the CPUUtihzation metric every 15 minutes and sends a notification to an Amazon SNS topic when the CPU utilization exceeds 80%
Suggested answer: C
asked 16/09/2024
walterio mendez
32 questions

Question 298

Report
Export
Collapse

An application running on Amazon EC2 opens connections to an Amazon RDS SQL Server database The developer does not want to store the user name and password for the database in the code. The developer would also like to automatically rotate the credentials.

What is the MOST secure way to store and access the database credentials?

Create an IAM role that has permissions to access the database Attach the role to the EC2 instance
Create an IAM role that has permissions to access the database Attach the role to the EC2 instance
Use AWS Secrets Manager to store the credentials. Retrieve the credentials from Secrets Manager as needed
Use AWS Secrets Manager to store the credentials. Retrieve the credentials from Secrets Manager as needed
Store the credentials in an encrypted text file in an Amazon S3 bucket Configure the EC2 instance's user data to download the credentials from Amazon S3 as the instance boots
Store the credentials in an encrypted text file in an Amazon S3 bucket Configure the EC2 instance's user data to download the credentials from Amazon S3 as the instance boots
Store the user name and password credentials directly in the source code. No further action is needed because the source code is stored in a private repository.
Store the user name and password credentials directly in the source code. No further action is needed because the source code is stored in a private repository.
Suggested answer: B
asked 16/09/2024
Nikki Matheson
32 questions

Question 299

Report
Export
Collapse

An application needs to encrypt data that is written to Amazon S3 where the keys are managed in an on-premises data center and the encryption is handled by S3. Which type of encryption should be used?

Use server-side encryption with Amazon S3-managed keys
Use server-side encryption with Amazon S3-managed keys
Use server-side encryption with AWS KMS-managed keys.
Use server-side encryption with AWS KMS-managed keys.
Use client-side encryption with customer master keys
Use client-side encryption with customer master keys
Use server-side encryption with customer-provided keys
Use server-side encryption with customer-provided keys
Suggested answer: A
asked 16/09/2024
Ray Hato
38 questions

Question 300

Report
Export
Collapse


A software engineer developed an AWS Lambda function in Node.js to do some CPU-intensive data processing. With the default settings, the Lambda function takes about 5 minutes to complete. Which approach should a developer take to increase the speed of completion''

Instead of using Node js. rewrite the Lambda function using Python
Instead of using Node js. rewrite the Lambda function using Python
Instead of packaging the libraries in the ZIP file with the function move them to a Lambda layer and use the layer with the function.
Instead of packaging the libraries in the ZIP file with the function move them to a Lambda layer and use the layer with the function.
Allocate the maximum available CPU units lo the function
Allocate the maximum available CPU units lo the function
Increase the available memory to the function.
Increase the available memory to the function.
Suggested answer: D
asked 16/09/2024
Mellisa Stroman
38 questions
Total 608 questions
Go to page: of 61
Search

Related questions