ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A company has a large number of documents that are stored securely in Amazon S3 The company is creating an application that occasionally will read these documents The application will be deployed on Amazon EC2 instances. The company's security requirements mandate that no long-term credentials can be stored on the EC2 instances and that only the needed documents can be accessed Only authorized users and applications can access the documents access must be logged by Amazon S3, and each document must follow S3 Lifecycle policies for archival and destruction What should a developer do to meet these requirements?

A.
Create an event to invoke an AWS Lambda function when a document is uploaded Configure the function to write the documents to an Amazon Elastic File System (Amazon EFS) file system Configure the EC2 instances to mount the EFS file system Configure the application to access the documents that are stored m the file system as needed
A.
Create an event to invoke an AWS Lambda function when a document is uploaded Configure the function to write the documents to an Amazon Elastic File System (Amazon EFS) file system Configure the EC2 instances to mount the EFS file system Configure the application to access the documents that are stored m the file system as needed
Answers
B.
Create a user that has programmatic credentials, and attach a policy that allows read access to the S3 bucket Use the AWS CLI to configure those credentials for the EC2 instances to use Create an Amazon Machine Image (AMI), and add the access key and secret access key to the user data section to create environment variables Use the AMI to launch each EC2 instance that runs the application Add application code to use the keys that are stored in the environment variables to access the S3 bucket objects as needed.
B.
Create a user that has programmatic credentials, and attach a policy that allows read access to the S3 bucket Use the AWS CLI to configure those credentials for the EC2 instances to use Create an Amazon Machine Image (AMI), and add the access key and secret access key to the user data section to create environment variables Use the AMI to launch each EC2 instance that runs the application Add application code to use the keys that are stored in the environment variables to access the S3 bucket objects as needed.
Answers
C.
Modify the S3 bucket, make the bucket public, and make each object public Add application code to make REST calls to access the objects in the S3 bucket as needed
C.
Modify the S3 bucket, make the bucket public, and make each object public Add application code to make REST calls to access the objects in the S3 bucket as needed
Answers
D.
Create an IAM role with permissions to read objects from Amazon S3 Attach the role to the EC2 instances as an instance profile Add application code to access the objects in the S3 bucket as needed.
D.
Create an IAM role with permissions to read objects from Amazon S3 Attach the role to the EC2 instances as an instance profile Add application code to access the objects in the S3 bucket as needed.
Answers
Suggested answer: D

A company is adding items to an Amazon DynamoDB table from an AWS Lambda function that is written in Python A developer needs to implement a solution that inserts records in the DynamoDB table and performs automatic retry when the insert fails Which solution meets these requirements with MINIMUM code changes?

A.
Configure the Python code to run the AWS CLl through shell to call the Putltem operation
A.
Configure the Python code to run the AWS CLl through shell to call the Putltem operation
Answers
B.
Call the Putltem operation from Python by using the DynamoDB HTTP API
B.
Call the Putltem operation from Python by using the DynamoDB HTTP API
Answers
C.
Queue the items in AWS Glue: which will put them into the DynamoDB table
C.
Queue the items in AWS Glue: which will put them into the DynamoDB table
Answers
D.
Use the AWS software development kit (SDK) for Python (boto3) to call the Putltem operation
D.
Use the AWS software development kit (SDK) for Python (boto3) to call the Putltem operation
Answers
Suggested answer: D

A developer has an AWS CodePipelme pipeline that invokes AWS CodeBuild in the build stage The developer wants to pass in a variable from CodePipeline so that the variable can be read in the CodeBuild buiidspec yml file How can the developer accomplish this goal?

A.
Configure a unique CodePipelme vanable namespace and vanables as key-value pairs that define each of the variables required in CodeBuild
A.
Configure a unique CodePipelme vanable namespace and vanables as key-value pairs that define each of the variables required in CodeBuild
Answers
B.
Configure a CodePipelme environment vanable that contains a JSON document that defines each of the variables required in CodeBuild
B.
Configure a CodePipelme environment vanable that contains a JSON document that defines each of the variables required in CodeBuild
Answers
C.
Configure an AWS CloudFormation stack set that contains a JSON document that defines each of the variables required in CodeBuild Reference the stack set from CodePipelme
C.
Configure an AWS CloudFormation stack set that contains a JSON document that defines each of the variables required in CodeBuild Reference the stack set from CodePipelme
Answers
D.
Configure an AWS CodeArtifact repository to store each environment variable Reference CodeArtifact from CodePipelme and CodeBuild
D.
Configure an AWS CodeArtifact repository to store each environment variable Reference CodeArtifact from CodePipelme and CodeBuild
Answers
Suggested answer: B

A company is migrating the content delivery network for its dynamic PHP website to AWS An Amazon CloudFront web distribution is part of the new infrastructure The distnbution has the following cache behavior settings

• Allowed HTTP Methods is set to GET, HEAD

• Viewer Protocol Policy is set to HTTP and HTTPS

Developers test the solution and can reach the company's website over HTTP and HTTPS Howeverthe developers are unable to tog in lo the previously working administration panel of the websiteWhich action will resolve this login issue1?

A.
Set Allowed HTTP Methods to GET. HEAD; OPTIONS
A.
Set Allowed HTTP Methods to GET. HEAD; OPTIONS
Answers
B.
Set Viewer Protocol Policy to HTTPS Only
B.
Set Viewer Protocol Policy to HTTPS Only
Answers
C.
Set Allowed HTTP Methods to GET, HEAD: OPTIONS, PUT, POST PATCH, DELETE
C.
Set Allowed HTTP Methods to GET, HEAD: OPTIONS, PUT, POST PATCH, DELETE
Answers
D.
Set Viewer Protocol Policy to Redirect HTTP to HTTPS
D.
Set Viewer Protocol Policy to Redirect HTTP to HTTPS
Answers
Suggested answer: A

An ecommerce application is using Amazon Simple Notification Service (Amazon SNS) with an AWS Lambda subscription to save all new orders into an Amazon DynamoDB table The company wants to record all the orders that are more than a certain amount of money in a separate table The company wants to avoid changes to the processes that post orders to Amazon SNS or the current Lambda function that saves the orders to the DynamoDB table How can a developer implement this feature with the LEAST change to the existing application?

A.
Create another Lambda subscription with the SNS message attribute value matching a filter option to save the appropriate orders to a separate table
A.
Create another Lambda subscription with the SNS message attribute value matching a filter option to save the appropriate orders to a separate table
Answers
B.
Create another SNS topic, and also send orders in that topic Create a Lambda subscription with a numeric value filter option to save the appropriate orders to a separate table
B.
Create another SNS topic, and also send orders in that topic Create a Lambda subscription with a numeric value filter option to save the appropriate orders to a separate table
Answers
C.
Create anotherftambda subscnption with the SNS message numeric value matching a filter option to save the appropriate orders to a separate table
C.
Create anotherftambda subscnption with the SNS message numeric value matching a filter option to save the appropriate orders to a separate table
Answers
D.
Modify the Lambda code to filter the orders and save the appropriate orders to a separate table
D.
Modify the Lambda code to filter the orders and save the appropriate orders to a separate table
Answers
Suggested answer: D

A developer is building an application using an Amazon API Gateway REST API backed by an AWS Lambda function that interacts with an Amazon DynamoDB table During testing, the developer observes high latency when making requests to the API How can the developer evaluate the end-to-end latency and identify performance bottlenecks?

A.
Enable AWS CloudTrail logging and use the logs to map each latency and bottleneck
A.
Enable AWS CloudTrail logging and use the logs to map each latency and bottleneck
Answers
B.
Enable and configure AWS X-Ray tracing on API Gateway and the Lambda function Use X-Ray to trace and analyze user requests
B.
Enable and configure AWS X-Ray tracing on API Gateway and the Lambda function Use X-Ray to trace and analyze user requests
Answers
C.
Enable Amazon CloudWatch Logs for the Lambda function Enable execution logs for API Gateway to view and analyze user request logs.
C.
Enable Amazon CloudWatch Logs for the Lambda function Enable execution logs for API Gateway to view and analyze user request logs.
Answers
D.
Enable VPC Flow Logs to capture and analyze network traffic within the VPC
D.
Enable VPC Flow Logs to capture and analyze network traffic within the VPC
Answers
Suggested answer: B

A physician's office management application requires that all data in transit between an EC2 instance and an Amazon EBS volume be encrypted Which of the following techniques fulfills this requirement? (Select TWO )

A.
Create encrypted snapshots into Amazon S3
A.
Create encrypted snapshots into Amazon S3
Answers
B.
Use Amazon RDS with encryption
B.
Use Amazon RDS with encryption
Answers
C.
Use 1AM roles to limit access to the Amazon EBS volume
C.
Use 1AM roles to limit access to the Amazon EBS volume
Answers
D.
Enable EBS encryption
D.
Enable EBS encryption
Answers
E.
Leverage OS-level encryption
E.
Leverage OS-level encryption
Answers
Suggested answer: A, D

A developer is building a backend system for the long-term storage of information from an inventory management system. The information needs to be stored so that other teams can build tools to report and analyze the data How should the developer implement this solution to achieve the FASTEST running time?

A.
Create an AWS Lambda function that writes to Amazon S3 synchronously Increase the function's concurrency to match the highest expected value of concurrent scans and requests.
A.
Create an AWS Lambda function that writes to Amazon S3 synchronously Increase the function's concurrency to match the highest expected value of concurrent scans and requests.
Answers
B.
Create an AWS Lambda function that writes to Amazon S3 asynchronously Configure a dead-letter queue to collect unsuccessful invocations
B.
Create an AWS Lambda function that writes to Amazon S3 asynchronously Configure a dead-letter queue to collect unsuccessful invocations
Answers
C.
Create an AWS Lambda function that writes to Amazon S3 synchronously Set the inventory system to retry failed requests.
C.
Create an AWS Lambda function that writes to Amazon S3 synchronously Set the inventory system to retry failed requests.
Answers
D.
Create an AWS Lambda function that writes to an Amazon ElastiCache for Redis cluster asynchronously Configure a dead-letter queue to collect unsuccessful invocations.
D.
Create an AWS Lambda function that writes to an Amazon ElastiCache for Redis cluster asynchronously Configure a dead-letter queue to collect unsuccessful invocations.
Answers
Suggested answer: A

A developer is deploying an application in the AWS Cloud by using AWS Cloud Formation The application will connect to an existing Amazon RDS database The hostname of the RDS database is stored in AWS Systems Manager Parameter Store as a plaintext value The developer needs to incorporate the database hostname into the Cloud Formation template to initialize the application when the stack is created How should the developer reference the parameter that contains the database hostname?

A.
Use the ssm dynamic reference
A.
Use the ssm dynamic reference
Answers
B.
Use the Ref intrinsic function
B.
Use the Ref intrinsic function
Answers
C.
Use the Fn: ImportVatue intrinsic function
C.
Use the Fn: ImportVatue intrinsic function
Answers
D.
Use the ssm-secure dynamic reference.
D.
Use the ssm-secure dynamic reference.
Answers
Suggested answer: C

A company has deployed an application on AWS Elastic Beanstalk The company has configured the Auto Scaling group that is associated with the Elastic Beanstalk environment to have five Amazon EC2 instances If the capacity is fewer than four EC2 instances during the deployment, application performance degrades The company is using the all-at-once deployment policy What is the MOST cost-effective way to solve the deployment issue1?

A.
Change the Auto Scaling group to six desired instances
A.
Change the Auto Scaling group to six desired instances
Answers
B.
Change the deployment policy to traffic splitting Specify an evaluation time of 1 hour.
B.
Change the deployment policy to traffic splitting Specify an evaluation time of 1 hour.
Answers
C.
Change the deployment policy to rolling with additional batch Specify a batch size of 1
C.
Change the deployment policy to rolling with additional batch Specify a batch size of 1
Answers
D.
Change the deployment policy to rolling Specify a batch size of 2.
D.
Change the deployment policy to rolling Specify a batch size of 2.
Answers
Suggested answer: C
Total 608 questions
Go to page: of 61