Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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

Viewing page 9 out of 12 pages
Viewing questions 121-135 out of questions
Questions # 121:

A developer has written a distributed application that uses micro services. The microservices are running on Amazon EC2 instances. Because of message volume, the developer is unable to match log output from each microservice to a specific transaction. The developer needs to analyze the message flow to debug the application.

Which combination of steps should the developer take to meet this requirement? (Select TWO.)

Options:

A.

Download the AWS X-Ray daemon. Install the daemon on an EC2 instance. Ensure that the EC2 instance allows UDP traffic on port 2000.


B.

Configure an interface VPC endpoint to allow traffic to reach the global AWS X-Ray daemon on TCP port 2000.


C.

Enable AWS X-Ray. Configure Amazon CloudWatch to push logs to X-Ray.


D.

Add the AWS X-Ray software development kit (SDK) to the microservices. Use X-Ray to trace requests that each microservice makes.


E.

Set up Amazon CloudWatch metric streams to collect streaming data from the microservices.


Expert Solution
Questions # 122:

A developer is designing an internal single-page website for a company. The website has static content that is hosted in an Amazon S3 bucket that is configured as a static web host. The design requires the web application to invoke a REST API in Amazon API Gateway to run an AWS Lambda function.

The developer must ensure that the REST API can be invoked only by computers that have IP addresses within the company’s corporate CIDR range.

Which solution will meet this requirement?

Options:

A.

Define an S3 bucket policy to restrict website access to the corporate CIDR range.


B.

Update the IAM service-linked role that is associated with API Gateway to restrict access to the corporate CIDR range.


C.

Define a network ACL to restrict API access to the corporate CIDR range.


D.

Define an API Gateway resource policy to restrict API access to the corporate CIDR range.


Expert Solution
Questions # 123:

A developer is modifying a large-scale IoT application that stores device telemetry data in an Amazon DynamoDB table. The telemetry data is valuable only for a limited time, but the application stores the data indefinitely. Data storage is slowing the application down. The developer needs a solution to improve the performance of the application.

Which solution will meet this requirement in the MOST operationally efficient way?

Options:

A.

Create an AWS Lambda function to run an Amazon EventBridge job on a schedule to scan the DynamoDB table for old items and to delete them.


B.

Archive old data in an Amazon S3 bucket. Set up an S3 Lifecycle policy to transition old data to a more cost-effective storage class.


C.

Set a TTL attribute for the telemetry data. Activate TTL on the DynamoDB table.


D.

Change the table to on-demand capacity mode.


Expert Solution
Questions # 124:

A company has multiple Amazon VPC endpoints in the same VPC. A developer needs configure an Amazon S3 bucket policy so users can access an S3 bucket only by using these VPC endpoints.

Which solution will meet these requirements?

Options:

A.

Create multiple S3 bucket polices by using each VPC endpoint ID that have the aws SourceVpce value in the StringNotEquals condition.


B.

Create a single S3 bucket policy that has the aws SourceVpc value and in the StingNotEquals condition to use VPC ID.


C.

Create a single S3 bucket policy that the multiple aws SourceVpce value and in the SringNotEquals condton to use vpce.


D.

Create a single S3 bucket policy that has multiple aws sourceVpce value in the StingNotEquale condition. Repeat for all the VPC endpoint IDs.


Expert Solution
Questions # 125:

A developer is building a serverless application that uses asynchronous AWS Lambda functions. The developer needs a solution to capture records of every Lambda function invocation. Each function must have multiple destinations based on whether each invocation is successful. The solution must record function responses in JSON format.

Which solution will meet these requirements?

Options:

A.

Amazon CloudWatch Logs log groups that use the default log format for Lambda functions. Route each invocation to the appropriate log group by using a Lambda canary deployment and weighted aliases. Set the appropriate log group as the target for each function.


B.

Set up an S3 bucket as an on-failure destination for the Lambda function. Configure an Amazon SNS topic as the destination for successful Lambda function invocations.


C.

Configure an Amazon SQS dead-letter queue as an event source for the Lambda function to store failed invocations. In the Lambda function code, use the PutItem Amazon DynamoDB API call to add the successful invocation information to the database.


D.

Set up an Amazon SQS queue as an on-failure destination for the Lambda function. Configure an Amazon OpenSearch Service cluster as the destination for the Lambda function for successful invocations.


Expert Solution
Questions # 126:

A company wants to make sure that only one user from its Admin group has the permanent right to delete an Amazon EC2 resource. There should be no changes in the existing policy under the Admin group. What should a developer use to meet these requirements?

Options:

A.

AWS managed policy


B.

Inline policy


C.

IAM trust relationship


D.

AWS STS


Expert Solution
Questions # 127:

A company uses an AWS Lambda function to perform natural language processing (NLP) tasks. The company has attached a Lambda layer to the function. The Lambda layer contain scientific libraries that the function uses during processing.

The company added a large, pre-trained text-classification model to the Lambda layer. The addition increased the size of the Lambda layer to 8.7 GB. After the addition and a recent deployment, the Lambda function returned a RequestEntityTooLargeException error.

The company needs to update the Lambda function with a high-performing and portable solution to decrease the initialization time for the function.

Which solution will meet these requirements?

Options:

A.

Store the large pre-trained model in an Amazon S3 bucket. Use the AWS SDK to access the model.


B.

Create an Amazon EFS file system to store the large pre-trained model. Mount the file system to an Amazon EC2 instance. Configure the Lambda function to use the EFS file system.


C.

Split the components of the Lambda layer into five new Lambda layers. Zip the new layers, and attach the layers to the Lambda function. Update the function code to use the new layers.


D.

Create a Docker container that includes the scientific libraries and the pre-trained model. Update the Lambda function to use the container image.


Expert Solution
Questions # 128:

For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?

Options:

A.

BeforeInstall - > ApplicationStop - > ApplicationStart - > AfterInstall


B.

ApplicationStop - > BeforeInstall - > AfterInstall - > ApplicationStart


C.

BeforeInstall - > ApplicationStop - > ValidateService - > ApplicationStart


D.

ApplicationStop - > BeforeInstall - > ValidateService - > ApplicationStart


Expert Solution
Questions # 129:

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

Options:

A.

Change the Auto Scaling group to six desired instances.


B.

Change the deployment policy to traffic splitting. Specify an evaluation time of 1 hour.


C.

Change the deployment policy to rolling with additional batch. Specify a batch size of 1.


D.

Change the deployment policy to rolling. Specify a batch size of 2.


Expert Solution
Questions # 130:

A developer is building a new application on AWS. The application uses an AWS Lambda function that retrieves information from an Amazon DynamoDB table. The developer hardcoded the DynamoDB table name into the Lambda function code. The table name might change over time. The developer does not want to modify the Lambda code if the table name changes.

Which solution will meet these requirements MOST efficiently?

Options:

A.

Create a Lambda environment variable to store the table name. Use the standard method for the programming language to retrieve the variable.


B.

Store the table name in a file. Store the file in the /tmp folder. Use the SDK for the programming language to retrieve the table name.


C.

Create a file to store the table name. Zip the file and upload the file to the Lambda layer. Use the SDK for the programming language to retrieve the table name.


D.

Create a global variable that is outside the handler in the Lambda function to store the table name.


Expert Solution
Questions # 131:

A developer at a company has created a repository in AWS CodeArtifact. The company’s development team needs to receive notification when new packages are published to the repository. How can the developer meet this requirement with the LEAST operational overhead?

Options:

A.

Create an Amazon SNS topic. Subscribe the development team ' s email address to the SNS topic. Associate the SNS topic ' s Amazon Resource Name (ARN) with the repository.


B.

Create an AWS Lambda function that notifies the development team through Amazon SES. Use Amazon EventBridge to invoke the Lambda function.


C.

Create an Amazon SNS topic. Subscribe the development team ' s email address to the SNS topic. Use Amazon EventBridge to notify the SNS topic.


D.

Create an AWS Step Functions state machine that notifies the development team through Amazon SES. Use Amazon EventBridge to invoke the Step Functions state machine.


Expert Solution
Questions # 132:

A developer is building two microservices that communicate by using an Amazon SQS queue. The messages exchanged between the microservices contain sensitive information . The developer must ensure that the messages are encrypted at rest .

Which solution will meet these requirements?

Options:

A.

Add a policy to the SQS queue that enforces the aws:SecureTransport condition.


B.

Configure the microservices to enable server-side encryption (SSE) within the message payloads.


C.

Enable server-side encryption (SSE) on the Amazon SQS queue and include the sensitive information in the message body.


D.

Transmit the sensitive information as message attributes instead of the message body.


Expert Solution
Questions # 133:

A company wants to use AWS AppConfig to gradually deploy a new feature to 15% of users to test the feature before a full deployment.

Which solution will meet this requirement with the LEAST operational overhead?

Options:

A.

Set up a custom script within the application to randomly select 15% of users. Assign a flag for the new feature to the selected users.


B.

Create separate AWS AppConfig feature flags for both groups of users. Configure the flags to target 15% of users.


C.

Create an AWS AppConfig feature flag. Define a variant for the new feature, and create a rule to target 15% of users.


D.

Use AWS AppConfig to create a feature flag without variants. Implement a custom traffic splitting mechanism in the application code.


Expert Solution
Questions # 134:

A developer created several AWS Lambda functions that write data to a single Amazon S3 bucket. The developer configured all the Lambda functions to send logs and metrics to Amazon CloudWatch.

The developer receives reports that one of the Lambda functions writes data to the bucket very slowly. The developer needs to measure the latency between the problematic Lambda function and the S3 bucket.

Which solution will meet this requirement?

Options:

A.

Enable AWS X-Ray on the Lambda function. In the generated trace map. select the line between Lambda and Amazon S3.


B.

Query the Lambda function ' s log file in Amazon CloudWatch Logs Insights. Return the average of the auto-discovered ©duration field.


C.

Enable CloudWatch Lambda Insights on the function. View the latency graph that CloudWatch Lambda Insights provides.


D.

Enable AWS X-Ray on the Lambda function. Select Amazon S3 in the latency graph to view the latency histogram.


Expert Solution
Questions # 135:

A company has an application that consists of different microservices that run inside an AWS account. The microservices are running in containers inside a single VPC. The number of microservices is constantly increasing. A developer must create a central logging solution for application logs.

Which solution will meet these requirements?

Options:

A.

Create a different Amazon CloudWatch Logs stream for each microservice.


B.

Create an AWS CloudTrail trail to log all the API calls.


C.

Configure VPC Flow Logs to track the communications between the microservices.


D.

Use AWS Cloud Map to map the interactions of the microservices.


Expert Solution
Viewing page 9 out of 12 pages
Viewing questions 121-135 out of questions