ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A company wants to migrate an existing web application to AWS. The application consists of two web servers and a MySQL database The company wants the application to automatically scale in response to demand The company also wants to reduce its operational overhead for database backups and maintenance The company needs the ability to deploy multiple versions of the application concurrently What is the MOST operationally efficient solution that meets these requirements?

A.
Deploy the application to AWS Elastic Beanstalk. Migrate the database to an Amazon RDS Multi-AZ DB instance
A.
Deploy the application to AWS Elastic Beanstalk. Migrate the database to an Amazon RDS Multi-AZ DB instance
Answers
B.
Create an Amazon Machine Image (AMI) that contains the application code. Create an Auto Scaling group that is based on the AMI Integrate the Auto Scaling group with an Application Load Balancer for the web servers. Migrate the database to a MySQL instance that runs on an Amazon EC2 instance.
B.
Create an Amazon Machine Image (AMI) that contains the application code. Create an Auto Scaling group that is based on the AMI Integrate the Auto Scaling group with an Application Load Balancer for the web servers. Migrate the database to a MySQL instance that runs on an Amazon EC2 instance.
Answers
C.
Deploy the application to AWS Elastic Beanstalk. Migrate the database to a MySQL instance that runs on an Amazon EC2 instance.
C.
Deploy the application to AWS Elastic Beanstalk. Migrate the database to a MySQL instance that runs on an Amazon EC2 instance.
Answers
D.
Create an Amazon Machine Image (AMI) that contains the application code. Create an Auto Scaling group that is based on the AMI. Integrate the Auto Scaling group with an Application Load Balancer for the web servers. Migrate the database to an Amazon RDS Multi-AZ DB Instance
D.
Create an Amazon Machine Image (AMI) that contains the application code. Create an Auto Scaling group that is based on the AMI. Integrate the Auto Scaling group with an Application Load Balancer for the web servers. Migrate the database to an Amazon RDS Multi-AZ DB Instance
Answers
Suggested answer: B

A developer is building a new application that uses an Amazon DynamoDB table. The specification states that all items that are older than 48 hours must be removed Which solution will meet this requirement?

A.
Create a new attribute that has the Number data type Add a local secondary index (LSI) for this attribute and enable TTL with an expiration of 48 hours In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
A.
Create a new attribute that has the Number data type Add a local secondary index (LSI) for this attribute and enable TTL with an expiration of 48 hours In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
Answers
B.
Create a new attribute that has the String data type Add a local secondary index (LSI) for this attribute and enable TTL with an expiration of 48 hours In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
B.
Create a new attribute that has the String data type Add a local secondary index (LSI) for this attribute and enable TTL with an expiration of 48 hours In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
Answers
C.
Create a new attribute that has the Number data type Enable TTL on the DynamoDB table for this attribute in the application code set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted
C.
Create a new attribute that has the Number data type Enable TTL on the DynamoDB table for this attribute in the application code set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted
Answers
D.
Create a new attribute that has the String data type Enable TTL on the DynamoDB table for this attribute In the application code set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted
D.
Create a new attribute that has the String data type Enable TTL on the DynamoDB table for this attribute In the application code set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted
Answers
Suggested answer: C

A developer has written the following 1AM policy to provide access to an Amazon S3 bucket:

Which access does the policy allow regarding the s3:GetObject and s3:PutObject actions'?

A.
Access on all buckets except the "DOC-EXAMPLE-BUCKET' bucket
A.
Access on all buckets except the "DOC-EXAMPLE-BUCKET' bucket
Answers
B.
Access on all buckets that start with "DOC-EXAMPLE-BUCKET" except the "DOC-EXAMPLEBUCKET/ secrets" bucket
B.
Access on all buckets that start with "DOC-EXAMPLE-BUCKET" except the "DOC-EXAMPLEBUCKET/ secrets" bucket
Answers
C.
Access on all objects in the "DOC-EXAMPLE-BUCKET" bucket along with access to all S3 actions for objects in the "DOC-EXAMPLE-BUCKET" bucket that start with "secrets"
C.
Access on all objects in the "DOC-EXAMPLE-BUCKET" bucket along with access to all S3 actions for objects in the "DOC-EXAMPLE-BUCKET" bucket that start with "secrets"
Answers
D.
Access on all objects in the "DOC-EXAMPLE-BUCKET" bucket except on objects that start with "secrets"
D.
Access on all objects in the "DOC-EXAMPLE-BUCKET" bucket except on objects that start with "secrets"
Answers
Suggested answer: B

A developer creates an Amazon S3 bucket to store project status files that are uploaded hourly. The developer also creates an AWS Lambda function that will be used to process the project status files What should the developer do to invoke the function with the LEAST amount of AWS infrastructure'?

A.
Create an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the function every 5 minutes and scan for new objects
A.
Create an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the function every 5 minutes and scan for new objects
Answers
B.
Create an S3 event notification to invoke the function when a new object is created in the S3 bucket
B.
Create an S3 event notification to invoke the function when a new object is created in the S3 bucket
Answers
C.
Create an S3 event notification that publishes a message to an Amazon Simple Notification Service (Amazon SNS) topic Subscribe the function to the SNS topic.
C.
Create an S3 event notification that publishes a message to an Amazon Simple Notification Service (Amazon SNS) topic Subscribe the function to the SNS topic.
Answers
D.
Create an S3 event notification that adds a message to an Amazon Simple Queue Service (Amazon SQS) queue Configure the function to poll the queue
D.
Create an S3 event notification that adds a message to an Amazon Simple Queue Service (Amazon SQS) queue Configure the function to poll the queue
Answers
Suggested answer: B

A developer is automating a new application deployment with AWS Serverless Application Model

(AWS SAM) The new application has one AWS Lambda function and one Amazon S3 bucket The Lambda function must access the S3 bucket to only read objects How should the developer configure AWS SAM to grant the necessary read privilege to the S3 bucket?

A.
Reference a second Lambda authorizer function
A.
Reference a second Lambda authorizer function
Answers
B.
Add a custom S3 bucket policy to the Lambda function
B.
Add a custom S3 bucket policy to the Lambda function
Answers
C.
Create an Amazon Simple Queue Service (SQS) topic for only S3 object reads Reference the topic in the template
C.
Create an Amazon Simple Queue Service (SQS) topic for only S3 object reads Reference the topic in the template
Answers
D.
Add the S3ReadPolicy template to the Lambda function's execution role
D.
Add the S3ReadPolicy template to the Lambda function's execution role
Answers
Suggested answer: D

A developer is creating an application that is based on an AWS Lambda function. The function uses the AWS SDK to read product price data from an Amazon S3 bucket and to write user information to an Amazon Aurora DB instance The Lambda function runs often, up to a few times each minute To meet performance requirements, the developer must minimize the run duration of the Lambda function Which actions can help the developer increase the performance? (Select TWO)

A.
Initialize SDK clients and database connections outside of the function handler
A.
Initialize SDK clients and database connections outside of the function handler
Answers
B.
Read the S3 product price data initially and cache it locally in the /imp directory
B.
Read the S3 product price data initially and cache it locally in the /imp directory
Answers
C.
Use environment variables to pass operational parameters to the function.
C.
Use environment variables to pass operational parameters to the function.
Answers
D.
Use most-restrictive permissions when setting the 1AM policies for the Lambda 1AM role
D.
Use most-restrictive permissions when setting the 1AM policies for the Lambda 1AM role
Answers
E.
Split the code into different Lambda functions to keep the functions smaller
E.
Split the code into different Lambda functions to keep the functions smaller
Answers
Suggested answer: A, C

A company has a three-tier application that is deployed in Amazon Elastic Container Service (Amazon ECS). The application is using an Amazon RDS for MySQL DB Instance The application performs more database reads than writes. During times of peak usage. the application's performance degrades. When this performance degradation occurs, the DB instance's ReadLatency metric in Amazon CloudWatch increases suddenly How should a developer modify the application to improve performance?

A.
Use Amazon ElastiCache to cache query results
A.
Use Amazon ElastiCache to cache query results
Answers
B.
Scale the ECS cluster to contain more ECS instances
B.
Scale the ECS cluster to contain more ECS instances
Answers
C.
Add read capacity units (RCUs) to the DB instance.
C.
Add read capacity units (RCUs) to the DB instance.
Answers
D.
Modify the ECS task definition to increase the task memory
D.
Modify the ECS task definition to increase the task memory
Answers
Suggested answer: A

A developer must cache dependent artifacts from Maven Central, a public package repository, as part of an application's build pipeline. The build pipeline has an AWS CodeArtifact repository where artifacts of the build are published. The developer needs a solution that requires minimum changes to the build pipeline Which solution meets these requirements?

A.
Modify the existing CodeArtifact repository to associate an upstream repository with the public package repository
A.
Modify the existing CodeArtifact repository to associate an upstream repository with the public package repository
Answers
B.
Create a new CodeArtifact repository that has an external connection to the public package repository
B.
Create a new CodeArtifact repository that has an external connection to the public package repository
Answers
C.
Create a new CodeArtifact domain that contains a new repository that has an external connection to the public package repository
C.
Create a new CodeArtifact domain that contains a new repository that has an external connection to the public package repository
Answers
D.
Modify the CodeArtifact repository resource policy to allow artifacts to be fetched from the public package repository
D.
Modify the CodeArtifact repository resource policy to allow artifacts to be fetched from the public package repository
Answers
Suggested answer: D

A developer is developing an application that uses signed requests (Signature Version 4) to call other AWS services The developer has created a canonical request, has created the string to sign, and has calculated signing information Which methods could the developer use to complete a signed request? (Select TWO)

A.
Add the signature to an HTTP header that is named Authorization
A.
Add the signature to an HTTP header that is named Authorization
Answers
B.
Add the signature to a session cookie
B.
Add the signature to a session cookie
Answers
C.
Add the signature to an HTTP header that 15 named Authentication
C.
Add the signature to an HTTP header that 15 named Authentication
Answers
D.
Add the signature to a query string parameter that is named X-Amz-Signature
D.
Add the signature to a query string parameter that is named X-Amz-Signature
Answers
E.
Add the signature to an HTTP header that is named WWW-Authenticate
E.
Add the signature to an HTTP header that is named WWW-Authenticate
Answers
Suggested answer: D, E

An application uploads photos to an Amazon S3 bucket. Each photo that is uploaded to the S3 bucket must be resized to a thumbnail image by the application Each thumbnail image is uploaded with a new name in the same S3 bucket. Which AWS service can a developer configure to directly process each single S3 event (or each S3 object upload?

A.
Amazon EC2
A.
Amazon EC2
Answers
B.
Amazon Elastic Container Service (Amazon ECS)
B.
Amazon Elastic Container Service (Amazon ECS)
Answers
C.
AWS Elastic Beanstalk
C.
AWS Elastic Beanstalk
Answers
D.
AWS Lambda
D.
AWS Lambda
Answers
Suggested answer: D
Total 608 questions
Go to page: of 61