Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the Amazon Web Services AWS Certified Associate DVA-C02 Questions and answers with CertsForce

Viewing page 4 out of 11 pages
Viewing questions 46-60 out of questions
Questions # 46:

A company has a large amount of data in an Amazon DynamoDB table. A large batch of data is appended to the table once each day. The company wants a solution that will make all the existing and future data in DynamoDB available for analytics on a long-term basis.

Which solution meets these requirements with the LEAST operational overhead?

Options:

A.

Configure DynamoDB incremental exports to Amazon S3.


B.

Configure Amazon DynamoDB Streams to write records to Amazon S3.


C.

Configure Amazon EMR to copy DynamoDB data to Amazon S3.


D.

Configure Amazon EMR to copy DynamoDB data to Hadoop Distributed File System (HDFS).


Expert Solution
Questions # 47:

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

Question # 47

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

Options:

A.

Access on all buckets except the “DOC-EXAMPLE-BUCKET” bucket


B.

Access on all buckets that start with “DOC-EXAMPLE-BUCKET” except the “DOC-EXAMPLE-BUCKET/secrets” bucket


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”


D.

Access on all objects in the “DOC-EXAMPLE-BUCKET” bucket except on objects that start with “secrets”


Expert Solution
Questions # 48:

An AWS Lambda function requires read access to an Amazon S3 bucket and requires read/write access to an Amazon DynamoDB table The correct 1AM policy already exists

What is the MOST secure way to grant the Lambda function access to the S3 bucket and the DynamoDB table?

Options:

A.

Attach the existing 1AM policy to the Lambda function.


B.

Create an 1AM role for the Lambda function Attach the existing 1AM policy to the role Attach the role to the Lambda function


C.

Create an 1AM user with programmatic access Attach the existing 1AM policy to the user. Add the user access key ID and secret access key as environment variables in the Lambda function.


D.

Add the AWS account root user access key ID and secret access key as encrypted environment variables in the Lambda function


Expert Solution
Questions # 49:

A company ' s application has an AWS Lambda function that processes messages from loT devices. The company wants to monitor the Lambda function to ensure that the Lambda function is meeting its required service level agreement (SLA).

A developer must implement a solution to determine the application ' s throughput in near real time. The throughput must be based on the number of messages that the Lambda function receives and processes in a given time period. The Lambda function performs initialization and post-processing steps that must not factor into the throughput measurement.

What should the developer do to meet these requirements?

Options:

A.

Use the Lambda function ' s ConcurrentExecutions metric in Amazon CloudWatch to measure the throughput.


B.

Modify the application to log the calculated throughput to Amazon CloudWatch Logs. Use Amazon EventBridge to invoke a separate Lambda function to process the logs on a schedule.


C.

Modify the application to publish custom Amazon CloudWatch metrics when the Lambda function receives and processes each message. Use the metrics to calculate the throughput.


D.

Use the Lambda function ' s Invocations metric and Duration metric to calculate the throughput in Amazon CloudWatch.


Expert Solution
Questions # 50:

A developer is storing JSON files in an Amazon S3 bucket. The developer wants to securely share an object with a specific group of people.

How can the developer securely provide temporary access to the objects that are stored in the S3 bucket?

Options:

A.

Set object retention on the files. Use the AWS SDK to restore the object before subsequent requests. Provide the bucket’s S3 URL.


B.

Use the AWS SDK to generate a presigned URL. Provide the presigned URL.


C.

Set a bucket policy that restricts access after a period of time. Provide the bucket ' s S3 URL.


D.

Configure static web hosting on the S3 bucket. Provide the bucket ' s web URL.


Expert Solution
Questions # 51:

An ecommerce company manages its application ' s infrastructure by using AWS Elastic Beanstalk. A developer wants to deploy the new version of the application with the least possible application downtime. The developer also must minimize the application ' s rollback time if there are issues with the deployment.

Which approach will meet these requirements?

Options:

A.

Use a rolling deployment to deploy the new version.


B.

Use a rolling deployment with additional batches to deploy the new version.


C.

Use an all-at-once deployment to deploy the new version.


D.

Deploy the new version to a new environment. Use a blue/green deployment.


Expert Solution
Questions # 52:

A company receives food orders from multiple partners. The company has a microservices application that uses Amazon API Gateway APIs with AWS Lambda integration. Each partner sends orders by calling a customized API that is exposed through API Gateway. The API call invokes a shared Lambda function to process the orders.

Partners need to be notified after the Lambda function processes the orders. Each partner must receive updates for only the partner ' s own orders. The company wants to add new partners in the future with the fewest code changes possible.

Which solution will meet these requirements in the MOST scalable way?

Options:

A.

Create a different Amazon Simple Notification Service (Amazon SNS) topic for each partner. Configure the Lambda function to publish messages for each partner to the partner ' s SNS topic.


B.

Create a different Lambda function for each partner. Configure the Lambda function to notify each partner ' s service endpoint directly.


C.

Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure the Lambda function to publish messages with specific attributes to the SNS topic. Subscribe each partner to the SNS topic. Apply the appropriate filter policy to the topic subscriptions.


D.

Create one Amazon Simple Notification Service (Amazon SNS) topic. Subscribe all partners to the SNS topic.


Expert Solution
Questions # 53:

A healthcare company uses AWS Amplify to host a patient management system. The system uses Amazon API Gateway to expose RESTful APIs. The backend logic of the system is handled by AWS Lambda functions.

One of the Lambda functions receives patient data that includes personally identifiable information (PII). The Lambda function sends the patient data to an Amazon DynamoDB table. The company must encrypt all patient data at rest and in transit before the data is stored in DynamoDB.

Which solution will meet these requirements?

Options:

A.

Configure the Lambda function to use AWS KMS keys with the AWS Database Encryption SDK to encrypt the patient data before sending the data to DynamoDB.


B.

Use AWS managed AWS KMS keys to encrypt the data in the DynamoDB table.


C.

Configure a DynamoDB stream on the table to invoke a Lambda function. Configure the Lambda function use an AWS KMS key to encrypt the DynamoDB table and to update the table.


D.

Use an AWS Step Functions workflow to transfer the data to an Amazon SQS queue. Configure a Lambda function to encrypt the data in the queue before sending the data to the DynamoDB table.


Expert Solution
Questions # 54:

A company uses an AWS Lambda function to transfer files from an Amazon S3 bucket to the company ' s SFTP server. The Lambda function connects to the SFTP server by using credentials such as username and password. The company uses Lambda environment variables to store these credentials.

A developer needs to implement encrypted username and password credentials.

Which solution will meet these requirements?

Options:

A.

Remove the user credentials from the Lambda environment. Implement 1AM database authentication.


B.

Move the user credentials from Lambda environment variables to AWS Systems Manager Parameter Store.


C.

Move the user credentials from Lambda environment variables to AWS Key Management Service (AWS KMS).


D.

Move the user credentials from the Lambda environment to an encrypted .txt file. Store the file in an S3 bucket.


Expert Solution
Questions # 55:

A developer created a Node.js-based AWS Lambda function by using a container image of an AWS OS-only base image. There is a new security patch for Node.js that must be patched to the new Lambda function.

Which solution will meet this requirement?

Options:

A.

Set the runtime update mode of the Lambda function to Auto.


B.

Patch the runtime version by redeploying the same version of the Lambda function.


C.

Rebuild the Lambda container code with the latest version of the AWS OS base image. Publish a new version of the Lambda function.


D.

Rebuild the Lambda container code with the latest Node.js patch version. Publish a new version of the Lambda function.


Expert Solution
Questions # 56:

A company is building a scalable data management solution by using AWS services to improve the speed and agility of development. The solution will ingest large volumes of data from various sources and will process this data through multiple business rules and transformations.

The solution requires business rules to run in sequence and to handle reprocessing of data if errors occur when the business rules run. The company needs the solution to be scalable and to require the least possible maintenance.

Which AWS service should the company use to manage and automate the orchestration of the data flows to meet these requirements?

Options:

A.

AWS Batch


B.

AWS Step Functions


C.

AWS Glue


D.

AWS Lambda


Expert Solution
Questions # 57:

A developer is building a multi-tenant application using AWS Lambda, Amazon S3, and Amazon DynamoDB. Each S3 object prefix represents a tenant name, and DynamoDB uses the tenant name as the partition key.

The developer must prevent cross-tenant data access during processing.

Which combination of actions will meet this requirement? (Select THREE.)

Options:

A.

Create a data access IAM role that allows the sts:TagSession action.


B.

Allow the Lambda execution role to assume the data access role.


C.

Configure IAM policies on the data access role to allow S3 and DynamoDB access only when resource attributes match the tenant session tag.


D.

Create a resource-based policy on DynamoDB based on principal tags.


E.

Create a resource control policy (RCP) for the S3 bucket.


F.

Configure the Lambda function to assume the data access role and pass the tenant name as a session tag.


Expert Solution
Questions # 58:

A company has developed an application that uses AWS Lambda functions to process messages from an Amazon SQS queue. One of the Lambda functions makes a call to an external API that is expected to encounter temporary service unavailability.

A developer needs to configure the function to retry failed messages from an Amazon SQS dead-letter queue. The developer notices that the Lambda function is re-processing some messages in the queue more than once.

Which solution will resolve this issue?

Options:

A.

Set a message retention period for each message. Configure the Lambda function to add a MessageId to each message.


B.

Set the visibility timeout parameter at the queue level. Configure the Lambda function to delete processed messages from the queue.


C.

Set a receive message wait time for each message. Configure the Lambda function to add a MessageId to each message.


D.

Set the delivery delay parameter at the queue level. Configure the Lambda function to delete processed messages from the queue.


Expert Solution
Questions # 59:

A developer is creating an AWS Lambda function that searches for Items from an Amazon DynamoDQ table that contains customer contact information. The DynamoDB table items have the customers as the partition and additional properties such as customer -type, name, and job_title.

The Lambda function runs whenever a user types a new character into the customer_type text Input. The developer wants to search to return partial matches of all tne email_address property of a particular customer type. The developer does not want to recreate the DynamoDB table.

What should the developer do to meet these requirements?

Options:

A.

Add a global secondary index (GSI) to the DynamoDB table with customer-type input, as the partition key and email_address as the sort key. Perform a query operation on the GSI by using the begins with key condition expression with the email_address property.


B.

Add a global secondary index (GSI) to the DynamoDB table with email_address as the partition key and customer_type as the sort key. Perform a query operation on the GSI by using the begine_with key condition expresses with the email. Address property.


C.

Add a local secondary index (LSI) to the DynemoOB table with customer_type as the partition Key and email_address as the sort Key. Perform a quick operation on the LSI by using the begine_with Key condition expression with the email-address property.


D.

Add a local secondary index (LSI) to the DynamoDB table with job-title as the partition key and email_address as the sort key. Perform a query operation on the LSI by using the begins_with key condition expression with the email_address property.


Expert Solution
Questions # 60:

A developer is investigating an issue in part of a company ' s application. In the application messages are sent to an Amazon Simple Queue Service (Amazon SQS) queue The AWS Lambda function polls messages from the SQS queue and sends email messages by using Amazon Simple Email Service (Amazon SES) Users have been receiving duplicate email messages during periods of high traffic.

Which reasons could explain the duplicate email messages? (Select TWO.)

Options:

A.

Standard SQS queues support at-least-once message delivery


B.

Standard SQS queues support exactly-once processing, so the duplicate email messages are because of user error.


C.

Amazon SES has the DomainKeys Identified Mail (DKIM) authentication incorrectly configured


D.

The SQS queue ' s visibility timeout is lower than or the same as the Lambda function ' s timeout.


E.

The Amazon SES bounce rate metric is too high.


Expert Solution
Viewing page 4 out of 11 pages
Viewing questions 46-60 out of questions