Black Friday Reward - Upto 80% off - Ends in 0d 00h 00m 00s - Coupon code: VIP80

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

Viewing page 7 out of 11 pages
Viewing questions 91-105 out of questions
Questions # 91:

A developer is troubleshooting an application in an integration environment. In the application, an Amazon Simple Queue Service (Amazon SQS) queue consumes messages and then an AWS Lambda function processes the messages. The Lambda function transforms the messages and makes an API call to a third-party service.

There has been an increase in application usage. The third-party API frequently returns an HTTP 429 Too Many Requests error message. The error message prevents a significant number of messages from being processed successfully.

How can the developer resolve this issue?

Options:

A.

Increase the SQS event source ' s batch size setting.


B.

Configure provisioned concurrency for the Lambda function based on the third-party API ' s documented rate limits.


C.

Increase the retry attempts and maximum event age in the Lambda function ' s asynchronous configuration.


D.

Configure maximum concurrency on the SQS event source based on the third-party service ' s documented rate limits.


Expert Solution
Questions # 92:

A company runs a serverless application that uses several AWS Lambda functions. The existing Lambda functions run in a VPC. The Lambda functions query public APIs successfully.

To add a new feature to the application, a developer creates a new Lambda function to query external public APIs. The new Lambda function must store aggregated results in an Amazon RDS database that is in a private subnet of the VPC. The developer configures VPC access for the new Lambda function and sets up a working connection to the RDS database. The requests that the new Lambda function makes to the external APIs fail. However, requests from the developer’s local workstation to the same APIs are successful.

Which solution will meet this requirement?

Options:

A.

Provision an elastic network interface for the new Lambda function.


B.

Provision a NAT gateway in a public subnet in the VPC.


C.

Provision an outbound rule for the new Lambda function ' s security group to grant internet access.


D.

Provision a gateway VPC endpoint in a public subnet in the VPC.


Expert Solution
Questions # 93:

A developer creates an AWS CloudFormation template for a development environment. The developer configures a CloudFormation stack for the development environment.

The developer must occasionally update the CloudFormation template. The developer must review changes that are made to the stack when the developer updates the CloudFormation template.

Which solution will meet these requirements?

Options:

A.

Create a stack set for CloudFormation stack updates.


B.

Create a change set for CloudFormation stack updates.


C.

Configure AWS X-Ray to inspect the CloudFormation stack.


D.

Add a CloudFormation::HookTypeConfig resource to the template.


Expert Solution
Questions # 94:

A team of developed is using an AWS CodePipeline pipeline as a continuous integration and continuous delivery (CI/CD) mechanism for a web application. A developer has written unit tests to programmatically test the functionality of the application code. The unit tests produce a test report that shows the results of each individual check. The developer now wants to run these tests automatically during the CI/CD process.

Options:

A.

Write a Git pre-commit hook that runs the test before every commit. Ensure that each developer who is working on the project has the pre-commit hook instated locally. Review the test report and resolve any issues before pushing changes to AWS CodeCommit.


B.

Add a new stage to the pipeline. Use AWS CodeBuild as the provider. Add the new stage after the stage that deploys code revisions to the test environment. Write a buildspec that fails the CodeBuild stage if any test does not pass. Use the test reports feature of Codebuild to integrate the report with the CodoBuild console. View the test results in CodeBuild Resolve any issues.


C.

Add a new stage to the pipeline. Use AWS CodeBuild at the provider. Add the new stage before the stage that deploys code revisions to the test environment. Write a buildspec that fails the CodeBuild stage it any test does not pass. Use the test reports feature of CodeBuild to integrate the report with the CodeBuild console. View the test results in codeBuild Resolve any issues.


D.

Add a new stage to the pipeline. Use Jenkins as the provider. Configure CodePipeline to use Jenkins to run the unit tests. Write a Jenkinsfile that fails the stage if any test does not pass. Use the test report plugin for Jenkins to integrate the repot with the Jenkins dashboard. View the test results in Jenkins. Resolve any issues.


Expert Solution
Questions # 95:

A developer for a company uses an Amazon S3 bucket to store log files. A bucket policy on the S3 bucket denies all write and delete operations for all principals.

The developer observes that files have been deleted from the S3 bucket despite the bucket policy. The developer must prevent additional deletions from the S3 bucket.

Which solution will meet this requirement?

Options:

A.

Remove any existing statements in the S3 bucket policy that allow delete operations.


B.

Remove any S3 Lifecycle configuration rules on the bucket that are expiring objects.


C.

Remove any S3 access points on the S3 bucket other company employees use.


D.

Remove any Amazon EventBridge event bus rules that delete S3 objects from the S3 bucket.


Expert Solution
Questions # 96:

An application that is deployed to Amazon EC2 is using Amazon DynamoDB. The app cation calls the DynamoDB REST API Periodically the application receives a ProvisionedThroughputExceededException error when the application writes to a DynamoDB table.

Which solutions will mitigate this error MOST cost-effectively^ (Select TWO)

Options:

A.

Modify the application code to perform exponential back off when the error is received.


B.

Modify the application to use the AWS SDKs for DynamoDB.


C.

Increase the read and write throughput of the DynamoDB table.


D.

Create a DynamoDB Accelerator (DAX) cluster for the DynamoDB table.


E.

Create a second DynamoDB table Distribute the reads and writes between the two tables.


Expert Solution
Questions # 97:

A company has a web application that contains an Amazon API Gateway REST API. A developer has created an AWS CloudFormation template for the initial deployment of the application. The developer has deployed the application successfully as part of an AWS CodePipeline CI/CD process. All resources and methods are available through the deployed stage endpoint.

The CloudFormation template contains the following resource types:

• AWS::ApiGateway::RestApi

• AWS::ApiGateway::Resource

• AWS::ApiGateway::Method

• AWS::ApiGateway::Stage

• AWS::ApiGateway::Deployment

The developer adds a new resource to the REST API with additional methods and redeploys the template. CloudFormation reports that the deployment is successful and that the stack is in the UPDATE_COMPLETE state. However, calls to all new methods are returning 404 (Not Found) errors.

What should the developer do to make the new methods available?

Options:

A.

Specify the disable-rollback option during the update-stack operation.


B.

Unset the CloudFormation stack failure options.


C.

Add an AWS CodeBuild stage to CodePipeline to run the aws apigateway create-deployment AWS CLI command.


D.

Add an action to CodePipeline to run the aws cloudfront create-invalidation AWS CLI command.


Expert Solution
Questions # 98:

A developer maintains applications that store several secrets in AWS Secrets Manager. The applications use secrets that have changed over time. The developer needs to identify required secrets that are still in use. The developer does not want to cause any application downtime.

What should the developer do to meet these requirements?

Options:

A.

Configure an AWS CloudTrail log file delivery to an Amazon S3 bucket. Create an Amazon CloudWatch alarm for the GetSecretValue. Secrets Manager API operation requests


B.

Create a secrets manager-secret-unused AWS Config managed rule. Create an Amazon EventBridge rule to Initiate notification when the AWS Config managed rule is met.


C.

Deactivate the applications secrets and monitor the applications error logs temporarily.


D.

Configure AWS X-Ray for the applications. Create a sampling rule lo match the GetSecretValue Secrets Manager API operation requests.


Expert Solution
Questions # 99:

A developer is investigating recent performance bottlenecks within a company ' s distributed web application that runs on various AWS services, including Amazon EC2 and Amazon DynamoDB.

How can the developer determine the length of time of the application ' s calls to the various downstream AWS services?

Options:

A.

Enable VPC Flow Logs and analyze them in Amazon OpenSearch Service.


B.

Use Amazon CloudWatch Logs to analyze application logs for the various calls.


C.

Enable detailed monitoring for the EC2 instances in Amazon CloudWatch.


D.

Implement AWS X-Ray with client handlers for the various downstream calls.


Expert Solution
Questions # 100:

A developer has created a large AWS Lambda function. Deployment of the function Is failing because of an InvalidParameterValueException error. The error message indicates that the unzipped size of the function exceeds the maximum supported value.

Which actions can the developer take to resolve this error? (Select TWO.)

Options:

A.

Submit a quota increase request to AWS Support to increase the function to the required size.


B.

Use a compression algorithm that is more efficient than ZIP.


C.

Break up the function into multiple smaller functions.


D.

Zip the .zip file twice to compress the file more.


E.

Move common libraries, function dependencies, and custom runtimes into Lambda layers.


Expert Solution
Questions # 101:

An application runs on multiple EC2 instances behind an ELB.

Where is the session data best written so that it can be served reliably across multiple requests?

Options:

A.

Write data to Amazon ElastiCache


B.

Write data to Amazon Elastic Block Store


C.

Write data to Amazon EC2 instance Store


D.

Wide data to the root filesystem


Expert Solution
Questions # 102:

A software company is migrating a single-page application from on-premises servers to the AWS Cloud by using AWS Amplify Hosting. The application relies on an API that was created with an existing GraphQL schema. The company needs to migrate the API along with the application.

Which solution will meet this requirement with the LEAST amount of configuration?

Options:

A.

Create a new API by using the Amplify CLI ' s amplify import api command. Select REST as the service to use. Add the existing schema to the new API.


B.

Create a new API in Amazon API Gateway by using the existing schema. Use the Amplify CLI ' s amplify add api command. Select the API as the application ' s backend environment.


C.

Create a new API in AWS AppSync by using the existing schema. Use the Amplify CLI ' s amplify import api command. Select the API as the application ' s backend environment.


D.

Create a new API by using the Amplify CLI ' s amplify add api command. Select GraphQL as the service to use. Add the existing schema to the new API.


Expert Solution
Questions # 103:

A developer received the following error message during an AWS CloudFormation deployment:

Which action should the developer take to resolve this error?

Options:

A.

Contact AWS Support to report an issue with the Auto Scaling Groups (ASG > service.


B.

Add a DependsOn attribute to the ASGInstanceRole12345678 resource in the CloudFormation template. Then delete the stack.


C.

Modify the CloudFormation template to retain the ASGInstanceRolet 2345678 resource. Then manually delete the resource after deployment.


D.

Add a force parameter when calling CloudFormation with the role-am of ASGInstanceRole12345678.


Expert Solution
Questions # 104:

A company is developing an ecommerce application that uses Amazon API Gateway APIs. The application uses AWS Lambda as a backend. The company needs to test the code in a dedicated, monitored test environment before the company releases the code to the production environment.

When solution will meet these requirements?

Options:

A.

Use a single stage in API Gateway. Create a Lambda function for each environment. Configure API clients to send a query parameter that indicates the endowment and the specific lambda function.


B.

Use multiple stages in API Gateway. Create a single Lambda function for all environments. Add different code blocks for different environments in the Lambda function based on Lambda environments variables.


C.

Use multiple stages in API Gateway. Create a Lambda function for each environment. Configure API Gateway stage variables to route traffic to the Lambda function in different environments.


D.

Use a single stage in API Gateway. Configure a API client to send a query parameter that indicated the environment. Add different code blocks tor afferent environments in the Lambda Junction to match the value of the query parameter.


Expert Solution
Questions # 105:

A developer is setting up AWS CodePipeline for a new application. During each build, the developer must generate a test report.

Which solution will meet this requirement?

Options:

A.

Create an AWS CodeBuild build project that runs tests. Configure the buildspec file with the test report information.


B.

Create an AWS CodeDeploy deployment that runs tests. Configure the AppSpec file with the test report information.


C.

Run the builds on an Amazon EC2 instance that has AWS Systems Manager Agent (SSM Agent) installed and activated.


D.

Create a repository in AWS CodeArtifact. Select the test report template.


Expert Solution
Viewing page 7 out of 11 pages
Viewing questions 91-105 out of questions