πŸ”

DVA-C02 β€” questions

Page 14 of 28 Β· 557 total questions.

Topic 1 Β· Question 261

A company runs an application on Amazon EC2 instances. The EC2 instances open connections to an Amazon RDS for SQL Server database. A developer needs to store and access the credentials and wants to automatically rotate the credentials. The developer does not want to store the credentials for the database in the code. Which solution will meet these requirements in the MOST secure way?

  • ACreate an IAM role that has permissions to access the database. Attach the IAM role to the EC2 instances.
  • BStore the credentials as secrets in AWS Secrets Manager. Create an AWS Lambda function to update the secrets and the database. Retrieve the credentials from Secrets Manager as needed. (correct answer)
  • CStore the credentials in an encrypted text file in an Amazon S3 bucket. Configure the EC2 instance launch template to download the credentials from Amazon S3 as the instance launches. Create an AWS Lambda function to update the secrets and the database.
  • DStore the credentials in an Amazon DynamoDB table. Configure an Amazon CloudWatch Events rule to invoke an AWS Lambda function to periodically update the secrets and database.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Store the credentials as secrets in AWS Secrets Manager. Create an AWS Lambda function to update the secrets and the database. Retrieve the credentials from Secrets Manager as needed.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. AWS Secrets Manager stores and automatically rotates secrets such as database credentials.

Topic 1 Β· Question 262

A company wants to test its web application more frequently. The company deploys the application by using a separate AWS CloudFormation stack for each environment. The company deploys the same CloudFormation template to each stack as the application progresses through the development lifecycle. A developer needs to build in notifications for the quality assurance (QA) team. The developer wants the notifications to occur for new deployments in the final preproduction environment. Which solution will meet these requirements?

  • ACreate an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team to the Amazon SNS topic. Update the CloudFormation stack options to point to the SNS topic in the pre-production environment. (correct answer)
  • BCreate an AWS Lambda function that notifies the QA team. Create an Amazon EventBridge rule to invoke the Lambda function on the default event bus. Filter the events on the CloudFormation service and on the CloudFormation stack Amazon Resource Name (ARN).
  • CCreate an Amazon CloudWatch alarm that monitors the metrics from CloudFormation. Filter the metrics on the stack name and the stack status. Configure the CloudWatch alarm to notify the QA team.
  • DCreate an AWS Lambda function that notifies the QA team. Configure the event source mapping to receive events from CloudFormation. Specify the filtering values to limit invocations to the desired CloudFormation stack.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team to the Amazon SNS topic. Update the CloudFormation stack options to point to the SNS topic in the pre-production environment.

Explanation

Amazon SNS is a managed pub/sub service for fan-out notifications to many subscribers. AWS CloudFormation provisions infrastructure as code repeatably.

Topic 1 Β· Question 263

A developer manages three AWS accounts. Each account contains an Amazon RDS DB instance in a private subnet. The developer needs to define users in each database in a consistent way. The developer must ensure that the same users are created and updated later in all three accounts. Which solution will meet these requirements with the MOST operational efficiency?

  • ACreate an AWS CloudFormation template. Declare the users in the template. Attach the users to the database. Deploy the template in each account.
  • BCreate an AWS CloudFormation template that contains a custom resource to create the users in the database. Deploy the template in each account. (correct answer)
  • CWrite a script that creates the users. Deploy an Amazon EC2 instance in each account to run the script on the databases. Run the script in each account.
  • DImplement an AWS Lambda function that creates the users in the database. Provide the function with the details of all three accounts.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an AWS CloudFormation template that contains a custom resource to create the users in the database. Deploy the template in each account.

Explanation

AWS CloudFormation provisions infrastructure as code repeatably.

Topic 1 Β· Question 264

A company is building a new application that runs on AWS and uses Amazon API Gateway to expose APIs. Teams of developers are working on separate components of the application in parallel. The company wants to publish an API without an integrated backend so that teams that depend on the application backend can continue the development work before the API backend development is complete. Which solution will meet these requirements?

  • ACreate API Gateway resources and set the integration type value to MOCK. Configure the method integration request and integration response to associate a response with an HTTP status code. Create an API Gateway stage and deploy the API. (correct answer)
  • BCreate an AWS Lambda function that returns mocked responses and various HTTP status codes. Create API Gateway resources and set the integration type value to AWS_PROXY. Deploy the API.
  • CCreate an EC2 application that returns mocked HTTP responses. Create API Gateway resources and set the integration type value to AWS. Create an API Gateway stage and deploy the API.
  • DCreate API Gateway resources and set the integration type value set to HTTP_PROXY. Add mapping templates and deploy the API. Create an AWS Lambda layer that returns various HTTP status codes. Associate the Lambda layer with the API deployment.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create API Gateway resources and set the integration type value to MOCK. Configure the method integration request and integration response to associate a response with an HTTP status code. Create an API Gateway stage...

Explanation

Amazon API Gateway is a fully managed front door for creating and securing APIs at scale. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 265

An application that runs on AWS receives messages from an Amazon Simple Queue Service (Amazon SQS) queue and processes the messages in batches. The application sends the data to another SQS queue to be consumed by another legacy application. The legacy system can take up to 5 minutes to process some transaction data. A developer wants to ensure that there are no out-of-order updates in the legacy system. The developer cannot alter the behavior of the legacy system. Which solution will meet these requirements?

  • AUse an SQS FIFO queue. Configure the visibility timeout value. (correct answer)
  • BUse an SQS standard queue with a SendMessageBatchRequestEntry data type. Configure the DelaySeconds values.
  • CUse an SQS standard queue with a SendMessageBatchRequestEntry data type. Configure the visibility timeout value.
  • DUse an SQS FIFO queue. Configure the DelaySeconds value.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use an SQS FIFO queue. Configure the visibility timeout value.

Explanation

Amazon SQS is a fully managed message queue that decouples components and absorbs traffic spikes. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 266

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?

  • AConfigure the fleet of EC2 instances to use encrypted EBS volumes to store data. (correct answer)
  • BConfigure the application to write all data to an encrypted Amazon S3 bucket.
  • CConfigure a custom encryption algorithm for the application that will encrypt and decrypt all data.
  • DConfigure an Amazon Machine Image (AMI) that has an encrypted root volume and store the data to ephemeral disks.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure the fleet of EC2 instances to use encrypted EBS volumes to store data.

Explanation

Amazon EC2 provides resizable virtual servers when you need full control of the operating system. Amazon EBS provides block storage attached to a single EC2 instance. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 267

A developer is updating the production version of an AWS Lambda function to fix a defect. The developer has tested the updated code in a test environment. The developer wants to slowly roll out the updates to a small subset of production users before rolling out the changes to all users. Only 10% of the users should be initially exposed to the new code in production. Which solution will meet these requirements?

  • AUpdate the Lambda code and create a new version of the Lambda function. Create a Lambda function trigger. Configure the traffic weights in the trigger between the two Lambda function versions. Send 90% of the traffic to the production version, and send 10% of the traffic to the new version.
  • BCreate a new Lambda function that uses the updated code. Create a Lambda alias for the production Lambda function. Configure the Lambda alias to send 90% of the traffic to the production Lambda function, and send 10% of the traffic to the test Lambda function.
  • CUpdate the Lambda code and create a new version of the Lambda function. Create a Lambda proxy integration. Configure the Lambda proxy to split traffic between the two Lambda function versions. Send 90% of the traffic to the production version, and send 10% of the traffic to the new version.
  • DUpdate the Lambda code and create a new version of the Lambda function. Create a Lambda function alias. Configure the traffic weights in the Lambda alias between the two Lambda function versions. Send 90% of the traffic to the production version, and send 10% of the traffic to the new version. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Update the Lambda code and create a new version of the Lambda function. Create a Lambda function alias. Configure the traffic weights in the Lambda alias between the two Lambda function versions. Send 90% of the traff...

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 268

A developer is creating an AWS Lambda function that consumes messages from an Amazon Simple Queue Service (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?

  • AChange the Amazon SQS standard queue to an Amazon SQS FIFO queue by using the Amazon SQS message deduplication ID. (correct answer)
  • BSet up a dead-letter queue.
  • CSet the maximum concurrency limit of the AWS Lambda function to 1.
  • DChange the message processing to use Amazon Kinesis Data Streams instead of Amazon SQS.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Change the Amazon SQS standard queue to an Amazon SQS FIFO queue by using the Amazon SQS message deduplication ID.

Explanation

Amazon SQS is a fully managed message queue that decouples components and absorbs traffic spikes. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 269

A developer is optimizing an AWS Lambda function and wants to test the changes in production on a small percentage of all traffic. The Lambda function serves requests to a RE ST API in Amazon API Gateway. The developer needs to deploy their changes and perform a test in production without changing the API Gateway URL. Which solution will meet these requirements?

  • ADefine a function version for the currently deployed production Lambda function. Update the API Gateway endpoint to reference the new Lambda function version. Upload and publish the optimized Lambda function code. On the production API Gateway stage, define a canary release and set the percentage of traffic to direct to the canary release. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Publish the API to the canary stage.
  • BDefine a function version for the currently deployed production Lambda function. Update the API Gateway endpoint to reference the new Lambda function version. Upload and publish the optimized Lambda function code. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Deploy a new API Gateway stage.
  • CDefine an alias on the $LATEST version of the Lambda function. Update the API Gateway endpoint to reference the new Lambda function alias. Upload and publish the optimized Lambda function code. On the production API Gateway stage, define a canary release and set the percentage of traffic to direct to the canary release. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Publish to the canary stage. (correct answer)
  • DDefine a function version for the currently deployed production Lambda function. Update the API Gateway endpoint to reference the new Lambda function version. Upload and publish the optimized Lambda function code. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Deploy the API to the production API Gateway stage.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Define an alias on the $LATEST version of the Lambda function. Update the API Gateway endpoint to reference the new Lambda function alias. Upload and publish the optimized Lambda function code. On the production API G...

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. Amazon API Gateway is a fully managed front door for creating and securing APIs at scale.

Topic 1 Β· Question 270

A company notices that credentials that the company uses to connect to an external software as a service (SaaS) vendor are stored in a configuration file as plaintext. The developer needs to secure the API credentials and enforce automatic credentials rotation on a quarterly basis. Which solution will meet these requirements MOST securely?

  • AUse AWS Key Management Service (AWS KMS) to encrypt the configuration file. Decrypt the configuration file when users make API calls to the SaaS vendor. Enable rotation.
  • BRetrieve temporary credentials from AWS Security Token Service (AWS STS) every 15 minutes. Use the temporary credentials when users make API calls to the SaaS vendor.
  • CStore the credentials in AWS Secrets Manager and enable rotation. Configure the API to have Secrets Manager access. (correct answer)
  • DStore the credentials in AWS Systems Manager Parameter Store and enable rotation. Retrieve the credentials when users make API calls to the SaaS vendor.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Store the credentials in AWS Secrets Manager and enable rotation. Configure the API to have Secrets Manager access.

Explanation

AWS Secrets Manager stores and automatically rotates secrets such as database credentials. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 271 Β· Select all that apply

A company has an application that is hosted on Amazon EC2 instances. The application stores objects in an Amazon S3 bucket and allows users to download objects from the S3 bucket. A developer turns on S3 Block Public Access for the S3 bucket. After this change, users report errors when they attempt to download objects. The developer needs to implement a solution so that only users who are signed in to the application can access objects in the S3 bucket. Which combination of steps will meet these requirements in the MOST secure way? (Choose two.)

  • ACreate an EC2 instance profile and role with an appropriate policy. Associate the role with the EC2 instances. (correct answer)
  • BCreate an IAM user with an appropriate policy. Store the access key ID and secret access key on the EC2 instances.
  • CModify the application to use the S3 GeneratePresignedUrl API call. (correct answer)
  • DModify the application to use the S3 GetObject API call and to return the object handle to the user.
  • EModify the application to delegate requests to the S3 bucket.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Create an EC2 instance profile and role with an appropriate policy. Associate the role with the EC2 instances. Option C: Modify the application to use the S3 GeneratePresignedUrl API call.

Explanation

Amazon EC2 provides resizable virtual servers when you need full control of the operating system. Amazon S3 provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 272

An Amazon Simple Queue Service (Amazon SQS) queue serves as an event source for an AWS Lambda function. In the SQS queue, each item corresponds to a video file that the Lambda function must convert to a smaller resolution. The Lambda function is timing out on longer video files, but the Lambda function's timeout is already configured to its maximum value. What should a developer do to avoid the timeouts without additional code changes?

  • AIncrease the memory configuration of the Lambda function. (correct answer)
  • BIncrease the visibility timeout on the SQS queue.
  • CIncrease the instance size of the host that runs the Lambda function.
  • DUse multi-threading for the conversion.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Increase the memory configuration of the Lambda function.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. AWS Config tracks resource configuration changes and evaluates compliance. This option needs the least custom development effort.

Topic 1 Β· Question 273

A company is building an application on AWS. The application's backend includes an Amazon API Gateway REST API. The company's frontend application developers cannot continue work until the backend API is ready for integration. The company needs a solution that will allow the frontend application developers to continue their work. Which solution will meet these requirements in the MOST operationally efficient way?

  • AConfigure mock integrations for API Gateway API methods. (correct answer)
  • BIntegrate a Lambda function with API Gateway and return a mocked response.
  • CAdd new API endpoints to the API Gateway stage and returns a mocked response.
  • DConfigure a proxy resource for API Gateway API methods.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure mock integrations for API Gateway API methods.

Explanation

Amazon API Gateway is a fully managed front door for creating and securing APIs at scale. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 274 Β· Select all that apply

A company is preparing to migrate an application to the company's first AWS environment. Before this migration, a developer is creating a proof-of-concept application to validate a model for building and deploying container-based applications on AWS. Which combination of steps should the developer take to deploy the containerized proof-of-concept application with the LEAST operational effort? (Choose two.)

  • APackage the application into a .zip file by using a command line tool. Upload the package to Amazon S3.
  • BPackage the application into a container image by using the Docker CLI. Upload the image to Amazon Elastic Container Registry (Amazon ECR). (correct answer)
  • CDeploy the application to an Amazon EC2 instance by using AWS CodeDeploy.
  • DDeploy the application to Amazon Elastic Kubernetes Service (Amazon EKS) on AWS Fargate.
  • EDeploy the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate. (correct answer)
Reveal answer & explanation
Correct answer: B, E

The correct answer is B, E. Option B: Package the application into a container image by using the Docker CLI. Upload the image to Amazon Elastic Container Registry (Amazon ECR). Option E: Deploy the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate.

Explanation

AWS Fargate runs containers serverlessly so there are no EC2 hosts to manage or patch. Amazon ECS orchestrates containers and integrates natively with AWS networking and IAM.

Topic 1 Β· Question 275

A developer supports an application that accesses data in an Amazon DynamoDB table. One of the item attributes is expirationDate in the timestamp format. The application uses this attribute to find items, archive them, and remove them from the table based on the timestamp value. The application will be decommissioned soon, and the developer must find another way to implement this functionality. The developer needs a solution that will require the least amount of code to write. Which solution will meet these requirements?

  • AEnable TTL on the expirationDate attribute in the table. Create a DynamoDB stream. Create an AWS Lambda function to process the deleted items. Create a DynamoDB trigger for the Lambda function. (correct answer)
  • BCreate two AWS Lambda functions: one to delete the items and one to process the items. Create a DynamoDB stream. Use the DeleteItem API operation to delete the items based on the expirationDate attribute. Use the GetRecords API operation to get the items from the DynamoDB stream and process them.
  • CCreate two AWS Lambda functions: one to delete the items and one to process the items. Create an Amazon EventBridge scheduled rule to invoke the Lambda functions. Use the DeleteItem API operation to delete the items based on the expirationDate attribute. Use the GetRecords API operation to get the items from the DynamoDB table and process them.
  • DEnable TTL on the expirationDate attribute in the table. Specify an Amazon Simple Queue Service (Amazon SQS) dead-letter queue as the target to delete the items. Create an AWS Lambda function to process the items.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Enable TTL on the expirationDate attribute in the table. Create a DynamoDB stream. Create an AWS Lambda function to process the deleted items. Create a DynamoDB trigger for the Lambda function.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. Amazon DynamoDB is a fully managed, serverless NoSQL database with single-digit millisecond latency and automatic scaling.

Topic 1 Β· Question 276

A developer needs to implement a custom machine learning (ML) library in an application. The size of the library is 15 GB. The size of the library is increasing. The application uses AWS Lambda functions. All the Lambda functions must have access to the library. Which solution will meet these requirements?

  • ASave the library in Lambda layers. Attach the layers to all Lambda functions.
  • BSave the library in Amazon S3. Download the library from Amazon S3 inside the Lambda function.
  • CSave the library as a Lambda container image. Redeploy the Lambda functions with the new image.
  • DSave the library in an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in all the Lambda functions. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Save the library in an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in all the Lambda functions.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. Amazon EFS is a shared, elastic NFS file system that multiple instances can mount concurrently across AZs.

Topic 1 Β· Question 277

A developer is designing a serverless application for a game in which users register and log in through a web browser. The application makes requests on behalf of users to a set of AWS Lambda functions that run behind an Amazon API Gateway HTTP API. The developer needs to implement a solution to register and log in users on the application's sign-in page. The solution must minimize operational overhead and must minimize ongoing management of user identities. Which solution will meet these requirements?

  • ACreate Amazon Cognito user pools for external social identity providers. Configure IAM roles for the identity pools. (correct answer)
  • BProgram the sign-in page to create users' IAM groups with the IAM roles attached to the groups.
  • CCreate an Amazon RDS for SQL Server DB instance to store the users and manage the permissions to the backend resources in AWS.
  • DConfigure the sign-in page to register and store the users and their passwords in an Amazon DynamoDB table with an attached IAM policy.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create Amazon Cognito user pools for external social identity providers. Configure IAM roles for the identity pools.

Explanation

An IAM role grants temporary, least-privilege permissions to AWS resources without long-term credentials. AWS IAM controls authenticated and authorized access to AWS resources with fine-grained policies. Amazon Cognito manages user sign-up, sign-in and federated identity for applications.

Topic 1 Β· Question 278

A company has a web application that is hosted on Amazon EC2 instances. The EC2 instances are configured to stream logs to Amazon CloudWatch Logs. The company needs to receive an Amazon Simple Notification Service (Amazon SNS) notification when the number of application error messages exceeds a defined threshold within a 5-minute period. Which solution will meet these requirements?

  • ARewrite the application code to stream application logs to Amazon SNS. Configure an SNS topic to send a notification when the number of errors exceeds the defined threshold within a 5-minute period.
  • BConfigure a subscription filter on the CloudWatch Logs log group. Configure the filter to send an SNS notification when the number of errors exceeds the defined threshold within a 5-minute period.
  • CInstall and configure the Amazon Inspector agent on the EC2 instances to monitor for errors. Configure Amazon Inspector to send an SNS notification when the number of errors exceeds the defined threshold within a 5-minute period.
  • DCreate a CloudWatch metric filter to match the application error pattern in the log data. Set up a CloudWatch alarm based on the new custom metric. Configure the alarm to send an SNS notification when the number of errors exceeds the defined threshold within a 5-minute period. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a CloudWatch metric filter to match the application error pattern in the log data. Set up a CloudWatch alarm based on the new custom metric. Configure the alarm to send an SNS notification when the number of er...

Explanation

Amazon SNS is a managed pub/sub service for fan-out notifications to many subscribers. Amazon CloudWatch collects metrics, logs and alarms to monitor and react to operational health. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 279

A photo sharing application uses Amazon S3 to store image files. All user images are manually audited for inappropriate content by a third-party company. The audits are completed 1-24 hours after user upload and the results are written to an Amazon DynamoDB table, which uses the S3 object key as a primary key. The database items can be queried by using a REST API created by the third-party company. An application developer needs to implement an automated process to tag all S3 objects with the results of the content audit. What should the developer do to meet these requirements in the MOST operationally efficient way?

  • ACreate an AWS Lambda function to run in response to the s3:ObjectCreated event type. Write the S3 key to an Amazon Simple Queue Service (Amazon SQS) queue with a visibility timeout of 24 hours. Create and configure a second Lambda function to read items from the queue. Retrieve the results for each item from the DynamoDB table. Tag each S3 object accordingly.
  • BCreate an AWS Lambda function to run in response to the s3:ObjectCreated event type. Integrate the function into an AWS Step Functions standard workflow. Define an AWS Step Functions Wait state and set the value to 24 hours. Create and configure a second Lambda function to retrieve the audit results and tag the S3 objects accordingly after the Wait state is over. (correct answer)
  • CCreate an AWS Lambda function to load all untagged S3 objects. Retrieve the results for each item from the REST API and tag each S3 object accordingly. Create and configure an Amazon EventBridge rule to run at regular intervals. Set the Lambda function as a target for the EventBridge rule.
  • DLaunch an Amazon EC2 instance. Deploy a script to the EC2 instance to use the external database results to tag the S3 objects accordingly. Configure a crontab file to run the script at regular intervals.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an AWS Lambda function to run in response to the s3:ObjectCreated event type. Integrate the function into an AWS Step Functions standard workflow. Define an AWS Step Functions Wait state and set the value to 24...

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. Amazon S3 provides durable, scalable object storage that is fully managed. AWS Step Functions coordinates multi-step workflows as a managed state machine.

Topic 1 Β· Question 280

A company has built an AWS Lambda function to convert large image files into output files that can be used in a third-party viewer application. The company recently added a new module to the function to improve the output of the generated files. However, the new module has increased the bundle size and has increased the time that is needed to deploy changes to the function code. How can a developer increase the speed of the Lambda function deployment?

  • AUse AWS CodeDeploy to deploy the function code.
  • BUse Lambda layers to package and load dependencies. (correct answer)
  • CIncrease the memory size of the function.
  • DUse Amazon S3 to host the function dependencies.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Lambda layers to package and load dependencies.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead.

Showing questions 261–280 of 557 Β· Page 14 of 28