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 6 out of 11 pages
Viewing questions 76-90 out of questions
Questions # 76:

A company wants to share information with a third party. The third party has an HTTP API endpoint that the company can use to share the information. The company has the required API key to access the HTTP API.

The company needs a way to manage the API key by using code. The integration of the API key with the application code cannot affect application performance.

Which solution will meet these requirements MOST securely?

Options:

A.

Store the API credentials in AWS Secrets Manager. Retrieve the API credentials at runtime by using the AWS SDK. Use the credentials to make the API call.


B.

Store the API credentials in a local code variable. Push the code to a secure Git repository. Use the local code variable at runtime to make the API call.


C.

Store the API credentials as an object in a private Amazon S3 bucket. Restrict access to the S3 object by using IAM policies. Retrieve the API credentials at runtime by using the AWS SDK. Use the credentials to make the API call.


D.

Store the API credentials in an Amazon DynamoDB table. Restrict access to the table by using resource-based policies. Retrieve the API credentials at runtime by using the AWS SDK. Use the credentials to make the API call.


Expert Solution
Questions # 77:

A developer is refactoring an AWS Lambda function that uses static parameters that are defined in environment variables. The developer needs to integrate the Lambda function with an AWS AppConfig application. The developer has already configured IAM roles for the AWS AppConfig application and the Lambda function. Which solution will meet this requirement with the LEAST amount of changes to the code?

Options:

A.

Add the AWS AppConfig agent Lambda extension layer. Use the agent endpoint from within the function code.


B.

Create an AWS AppConfig extension. Add the ON_DEPLOYMENT_COMPLETE action point and add the Lambda function URI as the target.


C.

Use the AWS AppConfig client to create a Lambda layer. Add the layer to the function.


D.

Modify the function code to add the StartConfigurationSession API action and the GetLatestConfiguration API action.


Expert Solution
Questions # 78:

A developer is creating an application that uses an AWS Lambda function to transform and load data from an Amazon S3 bucket. When the developer tests the application, the developer finds that some invocations of the Lambda function are slower than others.

The developer needs to update the Lambda function to have predictable invocation durations that run with low latency. Any initialization activities, such as loading libraries and instantiating clients, must run during allocation time rather than during actual function invocations.

Which combination of steps will meet these requirements? (Select TWO.)

Options:

A.

Create a schedule group in Amazon EventBridge Scheduler to invoke the Lambda function.


B.

Configure provisioned concurrency for the Lambda function to have the necessary number of execution environments.


C.

Use the $LATEST version of the Lambda function.


D.

Configure reserved concurrency for the Lambda function to have the necessary number of execution environments.


E.

Deploy changes, and publish a new version of the Lambda function.


Expert Solution
Questions # 79:

A developer is working on an application that uses a microservices architecture. The developer needs to grant an AWS Lambda function access to make calls to an Amazon API Gateway HTTP API. The HTTP API requires authentication.

Which solution will meet these requirements?

Options:

A.

Create a JSON Web Token (JWT) authorizer for the HTTP API. Create a new IAM identity provider (IdP). Configure the Lambda function ' s execution role to allow the Lambda function to access the IdP.


B.

Enable IAM authorization for the HTTP API route. Configure the Lambda function ' s IAM role policy to allow the Lambda function to access the API.


C.

Configure the HTTP API route to require API keys. Add an API key to the Lambda function environment variables.


D.

Create a resource-based policy for the Lambda function that allows the Lambda function to access the HTTP API.


Expert Solution
Questions # 80:

A developer is writing a serverless application that requires an AWS Lambda function to be invoked every 10 minutes.

What is an automated and serverless way to invoke the function?

Options:

A.

Deploy an Amazon EC2 instance based on Linux, and edit its /etc/confab file by adding a command to periodically invoke the lambda function


B.

Configure an environment variable named PERIOD for the Lambda function. Set the value to 600.


C.

Create an Amazon EventBridge rule that runs on a regular schedule to invoke the Lambda function.


D.

Create an Amazon Simple Notification Service (Amazon SNS) topic that has a subscription to the Lambda function with a 600-second timer.


Expert Solution
Questions # 81:

A developer is designing a new feature for an existing application that uses an AWS Lambda function. The developer wants to test the Lambda function safely in development and testing AWS accounts before deploying the function to a production AWS account. The developer must be able to roll back the function if issues are discovered.

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

Options:

A.

Create new Lambda function versions and aliases for the development, testing, and production accounts. After successful testing, update the production alias to point to the function version. Roll back to the most recent stable version if issues are discovered.


B.

Deploy the Lambda function separately to the development, testing, and production accounts after testing the function in each environment.


C.

Use Lambda layers to separate the code and libraries for each AWS account and deploy the function with different layers.


D.

Use environment variables to differentiate development, testing, and production behavior.


Expert Solution
Questions # 82:

A company is using Amazon API Gateway to develop an API for its application on AWS. A developer needs to test and generate API responses. Other teams are required to test the API immediately.

What should the developer do to meet these requirements?

Options:

A.

Set up a mock integration request in API Gateway. Configure the method ' s integration request and integration response to associate a response with a given status code.


B.

Set up the request validators in the API ' s OpenAPI definition file. Import the OpenAPI definitions into API Gateway to test the API.


C.

Set up a gateway response for the API in API Gateway. Configure response headers with hardcoded HTTP status codes and responses.


D.

Set up a request parameter-based Lambda authorizer to control access to the API. Configure the Lambda function with the necessary mapping template.


Expert Solution
Questions # 83:

A healthcare company develops a patient monitoring application that uses AWS AppSync and an AWS Lambda function. The application stores patient data in an Amazon DynamoDB database. The application processes real-time patient vital signs from thousands of IoT devices. The application must support queries from medical staff who access patient historical data. A developer notices significant latency when medical staff query patient histories, specifically for frequently-accessed records of patients currently under observation. The developer observes that the Lambda functions are consuming high read capacity units (RCUs) from DynamoDB. The developer needs to optimize the application ' s performance and maintain data consistency. Which solution will meet these requirements?

Options:

A.

Enable response caching in AppSync with a TTL value of 1 hour for all queries. Update the Lambda code to use in-memory caching.


B.

Increase the Lambda function memory allocation to maximum. Configure provisioned concurrency for the function.


C.

Create a caching Lambda function that aggregates patient data periodically and stores it in Amazon S3. Implement a read-through cache pattern.


D.

Implement in-memory caching by using Amazon ElastiCache for frequently-accessed patient records. Configure the Lambda functions to check the cache before querying the database. Set up cache invalidation when patient data is updated.


Expert Solution
Questions # 84:

A company has a website that displays a daily newsletter. When a user visits the website, an AWS Lambda function processes the browser ' s request and queries the company ' s on-premises database to obtain the current newsletter. The newsletters are stored in English. The Lambda function uses the Amazon Translate TranslateText API operation to translate the newsletters, and the translation is displayed to the user.

Due to an increase in popularity, the website ' s response time has slowed. The database is overloaded. The company cannot change the database and needs a solution that improves the response time of the Lambda function.

Which solution meets these requirements?

Options:

A.

Change to asynchronous Lambda function invocation.


B.

Cache the translated newsletters in the Lambda /tmp directory.


C.

Enable TranslateText API caching.


D.

Change the Lambda function to use parallel processing.


Expert Solution
Questions # 85:

A company has an application that runs on Amazon EC2 instances. The application needs to use dynamic feature flags that will be shared with other applications. The application must poll on an interval for new feature flag values. The values must be cached when they are retrieved.

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

Options:

A.

Store the feature flag values in AWS Secrets Manager. Configure an Amazon ElastiCache node to cache the values by using a lazy loading strategy in the application. Update the application to poll for the values on an interval from ElastiCache.


B.

Store the feature flag values in an Amazon DynamoDB table. Configure DynamoDB Accelerator (DAX) to cache the values by using a lazy loading strategy in the application. Update the application to poll for the values on an interval from DynamoDB.


C.

Store the feature flag values in AWS AppConfig. Configure AWS AppConfig Agent on the EC2 instances to poll for the values on an interval. Update the application to retrieve the values from the AppConfig Agent localhost endpoint.


D.

Store the feature flag values in AWS Systems Manager Parameter Store. Configure the application to poll on an interval. Configure the application to use the AWS SDK to retrieve the values from Parameter Store and to store the values in memory.


Expert Solution
Questions # 86:

A developer is building an application to process a stream of customer orders. The application sends processed orders to an Amazon Aurora MySQL database. The application needs to process the orders in batches.

The developer needs to configure a workflow that ensures each record is processed before the application sends each order to the database.

Options:

Options:

A.

Use Amazon Kinesis Data Streams to stream the orders. Use an AWS Lambda function to process the orders. Configure an event source mapping for the Lambda function, and set the MaximumBatchingWindowInSeconds setting to 300.


B.

Use Amazon SQS to stream the orders. Use an AWS Lambda function to process the orders. Configure an event source mapping for the Lambda function, and set the MaximumBatchingWindowInSeconds setting to 0.


C.

Use Amazon Managed Streaming for Apache Kafka (Amazon MSK) to stream the orders. Use an Amazon EC2 instance to process the orders. Configure an event source mapping for the EC2 instance, and increase the payload size limit to 36 MB.


D.

Use Amazon DynamoDB Streams to stream the orders. Use an Amazon ECS cluster on AWS Fargate to process the orders. Configure an event source mapping for the cluster, and set the BatchSize setting to 1.


Expert Solution
Questions # 87:

A company regularly receives route status updates from its delivery trucks as events in Amazon EventBridge. The company is building an API-based application in a VPC that will consume and process the events to create a delivery status dashboard. The API application must not be available by using public IP addresses because of security and compliance requirements.

How should the company send events from EventBridge to the API application?

Options:

A.

Create an AWS Lambda function that runs in the same VPC as the API application. Configure the function as an EventBridge target. Use the function to send events to the API.


B.

Create an internet-facing Application Load Balancer (ALB) in front of the API application. Associate a security group with rules that block access from all external sources except for EventBridge. Configure the ALB as an EventBridge target.


C.

Create an internet-facing Network Load Balancer (NLB) in front of the API application. Associate a security group with rules that block access from all external sources except for EventBridge. Configure the NLB as an EventBridge target.


D.

Use the application API endpoint in the VPC as a target for EventBridge. Send events directly to the application API endpoint from EventBridge.


Expert Solution
Questions # 88:

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

A developer has created an AWS Lambda function that consumes messages from an Amazon SQS standard queue. The developer notices that the Lambda function processes some messages multiple times.

How should developer resolve this issue MOST cost-effectively?

Options:

A.

Change the SQS standard queue to an SQS FIFO queue by using the SQS message deduplication ID.


B.

Set up a dead-letter queue.


C.

Set the maximum concurrency limit of the Lambda function to 1.


D.

Change the message processing to use Amazon Kinesis Data Streams instead of Amazon SQS.


Expert Solution
Questions # 90:

A developer is testing a RESTful application that is deployed by using Amazon API Gateway and AWS Lambda When the developer tests the user login by using credentials that are not valid, the developer receives an HTTP 405 METHOD_NOT_ALLOWED error The developer has verified that the test is sending the correct request for the resource

Which HTTP error should the application return in response to the request?

Options:

A.

HTTP 401


B.

HTTP 404


C.

HTTP 503


D.

HTTP 505


Expert Solution
Viewing page 6 out of 11 pages
Viewing questions 76-90 out of questions