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 4 out of 12 pages
Viewing questions 46-60 out of questions
Questions # 46:

A developer is migrating an application to Amazon Elastic Kubernetes Service (Amazon EKS). The developer migrates the application to Amazon Elastic Container Registry (Amazon ECR) with an EKS cluster.

As part of the application migration to a new backend, the developer creates a new AWS account. The developer makes configuration changes to the application to point the application to the new AWS account and to use new backend resources. The developer successfully tests the changes within the application by deploying the pipeline.

The Docker image build and the pipeline deployment are successful, but the application is still connecting to the old backend. The developer finds that the application ' s configuration is still referencing the original EKS cluster and not referencing the new backend resources.

Which reason can explain why the application is not connecting to the new resources?

Options:

A.

The developer did not successfully create the new AWS account.


B.

The developer added a new tag to the Docker image.


C.

The developer did not update the Docker image tag to a new version.


D.

The developer pushed the changes to a new Docker image tag.


Expert Solution
Questions # 47:

A developer is creating an application that must be able to generate API responses without backend integrations. Multiple internal teams need to work with the API while the application is still in development.

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

Options:

A.

Create an Amazon API Gateway REST API. Set up a proxy resource that has the HTTP proxy integration type.


B.

Create an Amazon API Gateway HTTP API. Provision a VPC link, and set up a private integration on the API to connect to a VPC.


C.

Create an Amazon API Gateway HTTP API. Enable mock integration on the method of the API resource.


D.

Create an Amazon API Gateway REST API. Enable mock integration on the method of the API resource.


Expert Solution
Questions # 48:

A developer is building a video search application. Video files average 2.5 TB in size. Files must have instant access for the first 90 days . After 90 days, files can take more than 10 minutes to load .

Which solution will meet these requirements in the MOST cost-effective way?

Options:

A.

Store files in Amazon EFS Standard, then transition to EFS Standard-IA.


B.

Store files in Amazon S3 Glacier Deep Archive for 90 days, then transition to S3 Glacier Flexible Retrieval.


C.

Store files in Amazon EBS for 90 days, then transition to S3 Glacier Deep Archive.


D.

Store files in Amazon S3 Glacier Instant Retrieval for 90 days, then transition to S3 Glacier Flexible Retrieval.


Expert Solution
Questions # 49:

A developer needs to give a new application the ability to retrieve configuration data.

The application must be able to retrieve new configuration data values without the need to redeploy the application code. If the application becomes unhealthy because of a bad configuration change, the developer must be able to automatically revert the configuration change to the previous value.

Options:

A.

Use AWS Secrets Manager to manage and store the configuration data. Integrate Secrets Manager with a custom AWS Config rule that has remediation actions to track changes in the application and to roll back any bad configuration changes.


B.

Use AWS Secrets Manager to manage and store the configuration data. Integrate Secrets Manager with a custom AWS Config rule. Attach a custom AWS Systems Manager document to the rule that automatically rolls back any bad configuration changes.


C.

Use AWS AppConfig to manage and store the configuration data. Integrate AWS AppConfig with Amazon CloudWatch to monitor changes to the application. Set up an alarm to automatically roll back any bad configuration changes.


D.

Use AWS AppConfig to manage and store the configuration data. Integrate AWS AppConfig with Amazon CloudWatch to monitor changes to the application. Set up CloudWatch Application Signals to roll back any bad configuration changes.


Expert Solution
Questions # 50:

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 # 51:

A developer needs to store configuration variables for an application. The developer needs to set an expiration date and time for me configuration. The developer wants to receive notifications. Before the configuration expires. Which solution will meet these requirements with the LEAST operational overhead?

Options:

A.

Create a standard parameter in AWS Systems Manager Parameter Store Set Expiation and Expiration Notification policy types.


B.

Create a standard parameter in AWS Systems Manager Parameter Store Create an AWS Lambda function to expire the configuration and to send Amazon Simple Notification Service (Amazon SNS) notifications.


C.

Create an advanced parameter in AWS Systems Manager Parameter Store Set Expiration and Expiration Notification policy types.


D.

Create an advanced parameter in AWS Systems Manager Parameter Store Create an Amazon EC2 instance with a corn job to expire the configuration and to send notifications.


Expert Solution
Questions # 52:

A developer maintains an AWS Lambda function that is invoked synchronously through an API Gateway API. The Lambda function processes payments by calling a third-party platform. The Lambda function includes retry logic that will make five attempts for each invocation.

The third-party platform occasionally experiences outages that last 10–20 minutes. During outages, the Lambda function makes five retry attempts for each incoming request before failing. The request retry process generates thousands of wasted API calls and increases Lambda compute costs.

The developer needs a solution to detect third-party platform outages and to ensure that invocations of the Lambda function stop when a platform outage is detected. The developer must also ensure that the invocations resume when the platform is operational and accessible.

Which solution will meet these requirements?

Options:

A.

Configure a dead-letter queue to capture events after the Lambda function ' s five retry attempts are exhausted.


B.

Increase the Lambda function ' s timeout allocation and memory allocation so that retry attempts run longer.


C.

Add exponential backoff to the Lambda function ' s retry logic to space out retry attempts during failures.


D.

Implement a circuit breaker that stops invocations after failures exceed a threshold.


Expert Solution
Questions # 53:

A company is building a new application that processes customer transactions by using an event-driven architecture. The company needs to receive a notification that includes transaction details when the transactions are above a price threshold.

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

Options:

A.

Create an Amazon SQS standard queue and an SQS dead-letter queue (DLQ). Configure a redrive policy for the standard queue to send failed messages to the DLQ based on the price threshold. Use an Amazon EventBridge event to notify the company when a message is sent to the DLQ.


B.

Create an Amazon SNS topic and an Amazon SQS dead-letter queue (DLQ). Create a subscription and configure a redrive policy for the subscription to send failed messages to the DLQ when the transaction price is above the threshold. Use an Amazon CloudWatch alarm to notify the company when a message is sent to the DLQ.


C.

Create an Amazon SQS queue and an event source mapping with an AWS Lambda function. Use the body key in the Amazon SQS message record and a FilterCriteria object to process only the transactions that are above the threshold price. Configure an Amazon CloudWatch alarm to invoke the Lambda function to notify the company.


D.

Create an Amazon SNS topic. Include the MessageAttributes field to list attributes that describe the transaction, including the price. Subscribe the company to the SNS topic. Create a topic filter on the subscription for the MessageAttributes field. Use the numeric value range matching policy.


Expert Solution
Questions # 54:

A developer is designing a fault-tolerant environment where client sessions will be saved.

How can the developer ensure that no sessions are lost if an Amazon EC2 instance fails?

Options:

A.

Use sticky sessions with an Elastic Load Balancer target group.


B.

Use Amazon SOS to save session data.


C.

Use Amazon DynamoDB to perform scalable session handling.


D.

Use Elastic Load Balancer connection draining to stop sending requests to failing instances.


Expert Solution
Questions # 55:

A company runs an analytics application that creates daily reports. The company stores the reports in an Amazon S3 bucket that has versioning enabled. The application stores several drafts of each report every day as S3 object versions before submitting a final report for the day.

The company needs a solution to delete draft reports that are older than 1 year. The company accesses draft reports frequently for the first month. After 1 month, the company accesses draft reports rarely during the next 11 months. Draft reports must be accessible within minutes.

Which solution will meet these requirements MOST cost-effectively?

Options:

A.

Add an expiration action for object versions that have been noncurrent for over 30 days. Add a noncurrent version transition action that uses a storage class of GLACIER_IR for object versions that have been noncurrent for over a year.


B.

Add an expiration action for versions that have been noncurrent for over 30 days. Add a noncurrent version transition action that uses a storage class of DEEP_ARCHIVE for objects that have been noncurrent for over a year.


C.

Add a noncurrent version transition action that uses a storage class of GLACIER_IR for objects that have been noncurrent for over 30 days. Add an expiration action for objects that have been noncurrent for more than 1 year.


D.

Add a noncurrent version transition action that uses a storage class of DEEP_ARCHIVE for objects that have been noncurrent for over 30 days. Add an expiration action for objects that have been noncurrent for more than 1 year.


Expert Solution
Questions # 56:

A company has implemented AWS CodeDeploy as part of its continuous integration and continuous delivery (CI/CD) stack in the cloud. The company sets up automatic rollbacks while initiating an in-place deployment of a new version of its web application on Amazon EC2 instances. Which result occurs if the deployment of the new version fails validation?

Options:

A.

CodeDeploy automatically restores the last known successful deployment from a snapshot that is stored in Amazon S3.


B.

CodeDeploy switches the Amazon Route 53 alias records back to the last known successful green deployment and terminates the failed blue deployment.


C.

CodeDeploy redeploys the last known stable version of the application as a new deployment with a new deployment ID.


D.

AWS CodePipeline promotes the most recent deployment that has a SUCCEEDED status to production.


Expert Solution
Questions # 57:

A developer writes an AWS Lambda function that processes new object uploads to an Amazon S3 bucket. The Lambda function runs for approximately 30 seconds. The function runs as expected under normal load conditions. Other Lambda functions in the AWS account also run as expected.

Occasionally, up to 500 new objects are written to the bucket every minute. Each new object write invokes the processing Lambda function during the high-volume periods through an event notification.

The developer must ensure that the processing function continues to run as expected during the high-volume periods.

Which solution will meet this requirement?

Options:

A.

Modify the function ' s timeout setting.


B.

Add an additional Lambda layer to optimize the code execution.


C.

Configure a reserved concurrency quota for the function.


D.

Decrease the function ' s memory allocation.


Expert Solution
Questions # 58:

A company built an application on a SQL database. The company then migrated the application to Amazon DynamoDB. The company needs to ensure that the application supports infinite scrolling for a news feed that displays user-generated posts. The application previously relied on numeric page-based pagination. The application must now rely on cursor-based pagination in DynamoDB.

Which solution will meet these requirements in the MOST operationally efficient way?

Options:

A.

Use the LastEvaluatedKey value returned from each DynamoDB query as the ExclusiveStartKey value in subsequent queries.


B.

Perform a full table scan to calculate page offsets before returning results.


C.

Retrieve all news feed items from DynamoDB in a single query. Paginate entirely on the client side.


D.

Store the page numbers directly in DynamoDB items. Query based on the page numbers to retrieve paginated results.


Expert Solution
Questions # 59:

A company has three AWS Lambda functions that are written in Node.js. The Lambda functions include a mix of custom code and open source modules. When bugs are occasionally detected in the open source modules, all three Lambda functions must be patched. What is the MOST operationally efficient solution to deploy a patched open source library for all three Lambda functions?

Options:

A.

Create a custom AWS CloudFormation public registry extension. Reference a GitHub repository that hosts the open source modules in the extension.


B.

Create an Amazon CloudFront distribution with an Amazon S3 bucket as the origin. Upload the patched modules to Amazon S3 when needed. Modify each Lambda function to download the patched modules during the cold start.


C.

Launch an Amazon EC2 instance. Host a private open source module registry on the EC2 instance. Upload the modified open source modules to the private registry. Modify deployment scripts to download from the private registry.


D.

Create a Lambda layer with the open source modules. Modify all three Lambda functions to depend on the layer. Remove the open source modules from each Lambda function. Patch the Lambda layer and update the Lambda functions to reference the new layer version.


Expert Solution
Questions # 60:

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
Viewing page 4 out of 12 pages
Viewing questions 46-60 out of questions