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 8 out of 12 pages
Viewing questions 106-120 out of questions
Questions # 106:

A developer is creating an ecommerce workflow in an AWS Step Functions state machine that includes a HTTP Task state. The task passes shipping information and order details to an endpoint.

The developer needs to test the workflow to confirm that the HTTP headers and body are correct and that the responses meet expectations.

Options:

A.

Use the TestState API to invoke only the HTTP Task. Set the inspection level to TRACE.


B.

Use the TestState API to invoke the state machine. Set the inspection level to DEBUG.


C.

Use the data flow simulator to invoke only the HTTP Task. View the request and response data.


D.

Change the log level of the state machine to ALL. Run the state machine.


Expert Solution
Questions # 107:

A company stores customer credit reports in an Amazon S3 bucket. An analytics service uses standard Amazon S3 GET requests to access the reports. A developer must implement a solution to redact personally identifiable information (PII) from the reports before the reports reach the analytics service.

Options:

A.

Load the S3 objects into Amazon Redshift by using a COPY command. Implement dynamic data masking. Refactor the analytics service to read from Amazon Redshift.


B.

Set up an S3 Object Lambda function. Attach the function to an S3 Object Lambda Access Point. Program the function to call a PII redaction API.


C.

Use AWS Key Management Service (AWS KMS) to implement encryption in the S3 bucket. Re-upload all the existing S3 objects. Give the kmspermission to the analytics service.


D.

Create an Amazon Simple Notification Service (Amazon SNS) topic. Implement message data protection. Refactor the analytics service to publish data access requests to the SNS topic.


Expert Solution
Questions # 108:

A company is building a compute-intensive application that will run on a fleet of Amazon EC2 instances. The application uses attached Amazon

Elastic Block Store (Amazon EBS) volumes for storing data. The Amazon EBS volumes will be created at time of initial deployment. The

application will process sensitive information. All of the data must be encrypted. The solution should not impact the application ' s performance.

Which solution will meet these requirements?

Options:

A.

Configure the fleet of EC2 instances to use encrypted EBS volumes to store data.


B.

Configure the application to write all data to an encrypted Amazon S3 bucket.


C.

Configure a custom encryption algorithm for the application that will encrypt and decrypt all data.


D.

Configure an Amazon Machine Image (AMI) that has an encrypted root volume and store the data to ephemeral disks.


Expert Solution
Questions # 109:

An ecommerce company integrates with a payment processing service that publishes payment activity messages to an Amazon SNS topic. A developer is building an AWS Lambda function to process refund events. The Lambda function must process only refund-related messages .

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

Options:

A.

Configure a Lambda event filter to allow only refund messages to invoke the function.


B.

Add logic in the Lambda function to ignore non-refund messages.


C.

Use Amazon SNS subscription filter policies to deliver only refund messages to the Lambda function.


D.

Increase batch size and batching window parameters for the Lambda function.


Expert Solution
Questions # 110:

A company has an Amazon S3 bucket that contains sensitive data. The data must be encrypted in transit and at rest. The company encrypts the data in the S3 bucket by using an AWS KMS key. A developer needs to grant several other AWS accounts the permission to use the S3 GetObject operation to retrieve the data from the S3 bucket.

How can the developer enforce that all requests to retrieve the data provide encryption in transit?

Options:

A.

Define a resource-based policy on the S3 bucket to deny access when a request meets the condition " aws:SecureTransport " : " false " .


B.

Define a resource-based policy on the S3 bucket to allow access when a request meets the condition " aws:SecureTransport " : " false " .


C.

Define a role-based policy on the other accounts ' roles to deny access when a request meets the condition " aws:SecureTransport " : " false " .


D.

Define a resource-based policy on the KMS key to deny access when a request meets the condition " aws:SecureTransport " : " false " .


Expert Solution
Questions # 111:

A company has an existing application that has hardcoded database credentials A developer needs to modify the existing application The application is deployed in two AWS Regions with an active-passive failover configuration to meet company’s disaster recovery strategy

The developer needs a solution to store the credentials outside the code. The solution must comply With the company ' s disaster recovery strategy

Which solution Will meet these requirements in the MOST secure way?

Options:

A.

Store the credentials in AWS Secrets Manager in the primary Region. Enable secret replication to the secondary Region Update the application to use the Amazon Resource Name (ARN) based on the Region.


B.

Store credentials in AWS Systems Manager Parameter Store in the primary Region. Enable parameter replication to the secondary Region. Update the application to use the Amazon Resource Name (ARN) based on the Region.


C.

Store credentials in a config file. Upload the config file to an S3 bucket in me primary Region. Enable Cross-Region Replication (CRR) to an S3 bucket in the secondary region. Update the application to access the config file from the S3 bucket based on the Region.


D.

Store credentials in a config file. Upload the config file to an Amazon Elastic File System (Amazon EFS) file system. Update the application to use the Amazon EFS file system Regional endpoints to access the config file in the primary and secondary Regions.


Expert Solution
Questions # 112:

A developer is creating an AWS CloudFormation template to deploy Amazon EC2 instances across multiple AWS accounts. The developer must choose the EC2 instances from a list of approved instance types.

How can the developer incorporate the list of approved instance types in the CloudFormation template?

Options:

A.

Create a separate CloudFormation template for each EC2 instance type in the list.


B.

In the Resources section of the CloudFormation template, create resources for each EC2 instance type in the list.


C.

In the CloudFormation template, create a separate parameter for each EC2 instance type in the list.


D.

In the CloudFormation template, create a parameter with the list of EC2 instance types as AllowedValues.


Expert Solution
Questions # 113:

A company runs applications on Amazon EKS containers. The company sends application logs from the containers to an Amazon CloudWatch Logs log group. The company needs to process log data in real time based on a specific error in the application logs. Which combination of steps will meet these requirements? (Select TWO.)

Options:

A.

Create an Amazon SNS topic that has a subscription filter policy.


B.

Create a subscription filter on the log group that has a filter pattern.


C.

Set up an Amazon CloudWatch agent operator to manage the trace collection daemon in Amazon EKS.


D.

Create an AWS Lambda function to process the logs.


E.

Create an Amazon EventBridge rule to invoke the AWS Lambda function on a schedule.


Expert Solution
Questions # 114:

A developer is using AWS CodeDeploy to automate a company ' s application deployments to Amazon EC2.

Which application specification file properties are required to ensure the software deployments do not fail? (Select TWO.)

Options:

A.

The file must be a JSON-formatted file named appspec.json.


B.

The file must be a YAML-formatted file named appspec.yml.


C.

The file must be stored in AWS CodeBuild and referenced from the application ' s source code.


D.

The file must be placed in the root of the directory structure of the application ' s source code.


E.

The file must be stored in Amazon S3 and referenced from the application ' s source code.


Expert Solution
Questions # 115:

A developer needs to perform geographic load testing of an API. The developer must deploy resources to multiple AWS Regions to support the load testing of the API.

How can the developer meet these requirements without additional application code?

Options:

A.

Create and deploy an AWS Lambda function in each desired Region. Configure the Lambda function to create a stack from an AWS CloudFormation template in that Region when the function is invoked.


B.

Create an AWS CloudFormation template that defines the load test resources. Use the AWS CLI create-stack-set command to create a stack set in the desired Regions.


C.

Create an AWS Systems Manager document that defines the resources. Use the document to create the resources in the desired Regions.


D.

Create an AWS CloudFormation template that defines the load test resources. Use the AWS CLI deploy command to create a stack from the template in each Region.


Expert Solution
Questions # 116:

A company has an Amazon API Gateway REST API that integrates with an AWS Lambda function. The API ' s development stage references a development alias of the Lambda function named " dev " . A developer needs to make a production alias of the Lambda function named " prod " available through the API. Which solution meets these requirements?

Options:

A.

Create a new method on the API. Name the method production. Configure the method to include a stage variable that points to the " prod " Lambda function alias.


B.

Create a new method on the API. Name the method production. Configure an integration request on the API ' s development stage that points to the " prod " Lambda function alias.


C.

Deploy the API to a new stage named production. Configure the stage to include a stage variable that points to the " prod " Lambda function alias.


D.

Deploy the API to a new stage named production. Configure an integration request on the API ' s production stage that points to the " prod " Lambda function alias.


Expert Solution
Questions # 117:

A company is using AWS SAM to develop a social media application. A developer needs a quick way to test AWS Lambda functions locally by using test event payloads. The developer needs the structure of these test event payloads to match the actual events that AWS services create.

Which solution will meet these requirements with the LEAST development effort?

Options:

A.

Create shareable test Lambda events. Use these test Lambda events for local testing.


B.

Store manually created test event payloads locally. Use the sam local invoke command with the file path to the payloads.


C.

Store manually created test event payloads in an Amazon S3 bucket. Use the sam local invoke command with the S3 path to the payloads.


D.

Use the sam local generate-event command to create test payloads for local testing.


Expert Solution
Questions # 118:

A developer is creating an AWS Lambda function. The Lambda function needs an external library to connect to a third-party solution The external library is a collection of files with a total size of 100 MB The developer needs to make the external library available to the Lambda execution environment and reduce the Lambda package space

Which solution will meet these requirements with the LEAST operational overhead?

Options:

A.

Create a Lambda layer to store the external library Configure the Lambda function to use the layer


B.

Create an Amazon S3 bucket Upload the external library into the S3 bucket. Mount the S3 bucket folder in the Lambda function Import the library by using the proper folder in the mount point.


C.

Load the external library to the Lambda function ' s /tmp directory during deployment of the Lambda package. Import the library from the /tmp directory.


D.

Create an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the EFS volume Mount the EFS volume in the Lambda function. Import the library by using the proper folder in the mount point.


Expert Solution
Questions # 119:

A developer is deploying a new application to Amazon Elastic Container Service (Amazon ECS). The developer needs to securely store and retrieve different types of variables. These variables include authentication information for a remote API, the URL for the API, and credentials. The authentication information and API URL must be available to all current and future deployed versions of the application across development, testing, and production environments.

How should the developer retrieve the variables with the FEWEST application changes?

Options:

A.

Update the application to retrieve the variables from AWS Systems Manager Parameter Store. Use unique paths in Parameter Store for each variable in each environment. Store the credentials in AWS Secrets Manager in each environment.


B.

Update the application to retrieve the variables from AWS Key Management Service (AWS KMS). Store the API URL and credentials as unique keys for each environment.


C.

Update the application to retrieve the variables from an encrypted file that is stored with the application. Store the API URL and credentials in unique files for each environment.


D.

Update the application to retrieve the variables from each of the deployed environments. Define the authentication information and API URL in the ECS task definition as unique names during the deployment process.


Expert Solution
Questions # 120:

A developer is building various microservices for an application that will run on Amazon EC2 instances. The developer needs to monitor the end-to-end view of the requests between the microservices and debug any issues in the various microservices.

What should the developer do to accomplish these tasks?

Options:

A.

Use Amazon CloudWatch to aggregate the microservices ' logs and metrics, and build the monitoring dashboard.


B.

Use AWS CloudTrail to aggregate the microservices ' logs and metrics, and build the monitoring dashboard.


C.

Use the AWS X-Ray SDK to add instrumentation in all the microservices, and monitor using the X-Ray service map.


D.

Use AWS Health to monitor the health of all the microservices.


Expert Solution
Viewing page 8 out of 12 pages
Viewing questions 106-120 out of questions