Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

DVA-C02: AWS Certified Developer Associate

Build and deploy modern, cloud-native applications with expert-level developer skills.

4.7★★★★★(255 ratings)
12,919 studentsIntermediate
Master the core AWS services, uses, and basic architectural best practices for developing and maintaining cloud applications. This course covers the entire development lifecycle, from SDK usage to serverless deployment. Learn to build and deploy scalable applications using AWS Lambda, API Gateway, and specialized developer tools. Validate your ability to implement AWS security best practices and troubleshoot common development challenges.

What you'll learn

  • Deployment strategies
  • Security in applications
  • Development with AWS Services
  • Refactoring workloads
  • Monitoring & Troubleshooting

DVA-C02

Lectures5
Questions277
Duration30 week
Students12,919

$20.00

Full Free Question Bank (277 Questions)

DVA-C02: AWS Certified Developer Associate (DVA-C02) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1

A company is implementing an application on Amazon EC2 instances. The application needs to process incoming transactions. When the application detects a transaction that is not valid, the application must send a chat message to the company's support team. To send the message, the application needs to retrieve the access token to authenticate by using the chat API. A developer needs to implement a solution to store the access token. The access token must be encrypted at rest and in transit. The access token must also be accessible from other AWS accounts. Which solution will meet these requirements with the LEAST management overhead?

AUse an AWS Systems Manager Parameter Store SecureString parameter that uses
BEncrypt the access token by using an AWS Key Management Service (AWS KMS)
CUse AWS Secrets Manager with an AWS Key Management Service (AWS KMS)
DEncrypt the access token by using an AWS Key Management Service (AWS KMS)
Question #2Part 1

A company is running Amazon EC2 instances in multiple AWS accounts. A developer needs to implement an application that collects all the lifecycle events of the EC2 instances. The application needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in the company's main AWS account for further processing. Which solution will meet these requirements?

AConfigure Amazon EC2 to deliver the EC2 instance lifecycle events from all accounts
BUse the resource policies of the SQS queue in the main account to give each
CWrite an AWS Lambda function that scans through all EC2 instances in the company
DConfigure the permissions on the main account event bus to receive events from all
Question #3Part 1

An application is using Amazon Cognito user pools and identity pools for secure access. A developer wants to integrate the user-specific file upload and download features in the application with Amazon S3. The developer must ensure that the files are saved and retrieved in a secure manner and that users can access only their own files. The file sizes range from 3 KB to 300 MB. Which option will meet these requirements with the HIGHEST level of security?

AUse S3 Event Notifications to validate the file upload and download requests and
BSave the details of the uploaded files in a separate Amazon DynamoDB table. Filter
CUse Amazon API Gateway and an AWS Lambda function to upload and download
DUse an IAM policy within the Amazon Cognito identity prefix to restrict users to use
Question #4Part 1

A company is building a scalable data management solution by using AWS services to improve the speed and agility of development. The solution will ingest large volumes of data from various sources and will process this data through multiple business rules and transformations. The solution requires business rules to run in sequence and to handle reprocessing of data if errors occur when the business rules run. The company needs the solution to be scalable and to require the least possible maintenance. Which AWS service should the company use to manage and automate the orchestration of the data flows to meet these requirements?

AAWS Batch
BAWS Step Functions
CAWS Glue
DAWS Lambda
Question #5Part 1

A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table. What is the MOST likely cause of this issue?

AThe Lambda function's concurrency limit has been exceeded.
BDynamoDB table requires a global secondary index (GSI) to support writes.
CThe Lambda function does not have IAM permissions to write to DynamoDB.
DThe DynamoDB table is not running in the same Availability Zone as the Lambda
Question #6Part 1

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?

ACreate a separate CloudFormation template for each EC2 instance type in the list.
BIn the Resources section of the CloudFormation template, create resources for each
CIn the CloudFormation template, create a separate parameter for each EC2 instance
DIn the CloudFormation template, create a parameter with the list of EC2 instance
Question #7Part 1Select 2

A developer has an application that makes batch requests directly to Amazon DynamoDB by using the BatchGetItem low-level API operation. The responses frequently return values in the UnprocessedKeys element. Which actions should the developer take to increase the resiliency of the application when the batch response includes values in UnprocessedKeys? (Choose two.)

ARetry the batch operation immediately.
BRetry the batch operation with exponential backoff and randomized delay.
CUpdate the application to use an AWS software development kit (AWS SDK) to make
DIncrease the provisioned read capacity of the DynamoDB tables that the operation
EIncrease the provisioned write capacity of the DynamoDB tables that the operation
Question #8Part 1

A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage. How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?

AInstall and run the X-Ray SDK on the on-premises servers to capture and relay the
BInstall and run the X-Ray daemon on the on-premises servers to capture and relay
CCapture incoming requests on-premises and configure an AWS Lambda function to
DCapture incoming requests on-premises and configure an AWS Lambda function to
Question #9Part 1

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?

AStore the API credentials in AWS Secrets Manager. Retrieve the API credentials at
BStore the API credentials in a local code variable. Push the code to a secure Git
CStore the API credentials as an object in a private Amazon S3 bucket. Restrict
DStore the API credentials in an Amazon DynamoDB table. Restrict access to the
Question #10Part 1

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?

AUpdate the application to retrieve the variables from AWS Systems Manager
BUpdate the application to retrieve the variables from AWS Key Management Service
CUpdate the application to retrieve the variables from an encrypted file that is stored
DUpdate the application to retrieve the variables from each of the deployed
Question #11Part 1

A company is migrating legacy internal applications to AWS. Leadership wants to rewrite the internal employee directory to use native AWS services. A developer needs to create a solution for storing employee contact details and high-resolution photos for use with the new application. Which solution will enable the search and retrieval of each employee's individual details and high-resolution photos using AWS APIs?

AEncode each employee's contact information and photos using Base64. Store the
BStore each employee's contact information in an Amazon DynamoDB table along
CUse Amazon Cognito user pools to implement the employee directory in a fully
DStore employee contact information in an Amazon RDS DB instance with the photos
Question #12Part 1

A developer is creating an application that will give users the ability to store photos from their cellphones in the cloud. The application needs to support tens of thousands of users. The application uses an Amazon API Gateway REST API that is integrated with AWS Lambda functions to process the photos. The application stores details about the photos in Amazon DynamoDB. Users need to create an account to access the application. In the application, users must be able to upload photos and retrieve previously uploaded photos. The photos will range in size from 300 KB to 5 MB. Which solution will meet these requirements with the LEAST operational overhead?

AUse Amazon Cognito user pools to manage user accounts. Create an Amazon
BUse Amazon Cognito user pools to manage user accounts. Create an Amazon
CCreate an IAM user for each user of the application during the sign-up process. Use
DCreate a users table in DynamoDB. Use the table to manage user accounts. Create
Question #13Part 1

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?

ACreate a different Amazon Simple Notification Service (Amazon SNS) topic for each
BCreate a different Lambda function for each partner. Configure the Lambda function
CCreate an Amazon Simple Notification Service (Amazon SNS) topic. Configure the
DCreate one Amazon Simple Notification Service (Amazon SNS) topic. Subscribe all
Question #14Part 1

A financial company must store original customer records for 10 years for legal reasons. A complete record contains personally identifiable information (PII). According to local regulations, PII is available to only certain people in the company and must not be shared with third parties. The company needs to make the records available to third-party organizations for statistical analysis without sharing the PII. A developer wants to store the original immutable record in Amazon S3. Depending on who accesses the S3 document, the document should be returned as is or with all the PII removed. The developer has written an AWS Lambda function to remove the PII from the document. The function is named removePii. What should the developer do so that the company can meet the PII requirements while maintaining only one copy of the document?

ASet up an S3 event notification that invokes the removePii function when an S3 GET
BSet up an S3 event notification that invokes the removePii function when an S3 PUT
CCreate an S3 Object Lambda access point from the S3 console. Select the removePii
DCreate an S3 access point from the S3 console. Use the access point name to call
Question #15Part 1

A developer is deploying an AWS Lambda function The developer wants the ability to return to older versions of the function quickly and seamlessly. How can the developer achieve this goal with the LEAST operational overhead?

AUse AWS OpsWorks to perform blue/green deployments.
BUse a function alias with different versions.
CMaintain deployment packages for older versions in Amazon S3.
DUse AWS CodePipeline for deployments and rollbacks.
Question #16Part 1

A developer has written an AWS Lambda function. The function is CPU-bound. The developer wants to ensure that the function returns responses quickly. How can the developer improve the function's performance?

AIncrease the function's CPU core count.
BIncrease the function's memory.
CIncrease the function's reserved concurrency.
DIncrease the function's timeout.
Question #17Part 1

For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?

ABeforeInstall -> ApplicationStop -> ApplicationStart -> AfterInstall
BApplicationStop -> BeforeInstall -> AfterInstall -> ApplicationStart
CBeforeInstall -> ApplicationStop -> ValidateService -> ApplicationStart
DApplicationStop -> BeforeInstall -> ValidateService -> ApplicationStart
Question #18Part 1

A company is building a serverless application on AWS. The application uses an AWS Lambda function to process customer orders 24 hours a day, 7 days a week. The Lambda function calls an external vendor's HTTP API to process payments. During load tests, a developer discovers that the external vendor payment processing API occasionally times out and returns errors. The company expects that some payment processing API calls will return errors. The company wants the support team to receive notifications in near real time only when the payment processing external API error rate exceed 5% of the total number of transactions in an hour. Developers need to use an existing Amazon Simple Notification Service (Amazon SNS) topic that is configured to notify the support team. Which solution will meet these requirements?

AWrite the results of payment processing API calls to Amazon CloudWatch. Use
BPublish custom metrics to CloudWatch that record the failures of the external
CPublish the results of the external payment processing API calls to a new Amazon
DWrite the results of the external payment processing API calls to Amazon S3.
Question #19Part 1

A company is offering APIs as a service over the internet to provide unauthenticated read access to statistical information that is updated daily. The company uses Amazon API Gateway and AWS Lambda to develop the APIs. The service has become popular, and the company wants to enhance the responsiveness of the APIs. Which action can help the company achieve this goal?

AEnable API caching in API Gateway.
BConfigure API Gateway to use an interface VPC endpoint.
CEnable cross-origin resource sharing (CORS) for the APIs.
DConfigure usage plans and API keys in API Gateway.
Question #20Part 1

A developer wants to store information about movies. Each movie has a title, release year, and genre. The movie information also can include additional properties about the cast and production crew. This additional information is inconsistent across movies. For example, one movie might have an assistant director, and another movie might have an animal trainer. The developer needs to implement a solution to support the following use cases: For a given title and release year, get all details about the movie that has that title and release year. For a given title, get all details about all movies that have that title. For a given genre, get all details about all movies in that genre. Which data store configuration will meet these requirements?

ACreate an Amazon DynamoDB table. Configure the table with a primary key that
BCreate an Amazon DynamoDB table. Configure the table with a primary key that
COn an Amazon RDS DB instance, create a table that contains columns for title,
DOn an Amazon RDS DB instance, create a table where the primary key is the title
Question #21Part 1

A developer maintains an Amazon API Gateway REST API. Customers use the API through a frontend UI and Amazon Cognito authentication. The developer has a new version of the API that contains new endpoints and backward-incompatible interface changes. The developer needs to provide beta access to other developers on the team without affecting customers. Which solution will meet these requirements with the LEAST operational overhead?

ADefine a development stage on the API Gateway API. Instruct the other developers
BDefine a new API Gateway API that points to the new API application code. Instruct
CImplement a query parameter in the API application code that determines which code
DSpecify new API Gateway endpoints for the API endpoints that the developer wants
Question #22Part 1

A developer is creating an application that will store personal health information (PHI). The PHI needs to be encrypted at all times. An encrypted Amazon RDS for MySQL DB instance is storing the data. The developer wants to increase the performance of the application by caching frequently accessed data while adding the ability to sort or rank the cached datasets. Which solution will meet these requirements?

ACreate an Amazon ElastiCache for Redis instance. Enable encryption of data in
BCreate an Amazon ElastiCache for Memcached instance. Enable encryption of data
CCreate an Amazon RDS for MySQL read replica. Connect to the read replica by
DCreate an Amazon DynamoDB table and a DynamoDB Accelerator (DAX) cluster for
Question #23Part 1

A company has a multi-node Windows legacy application that runs on premises. The application uses a network shared folder as a centralized configuration repository to store configuration files in .xml format. The company is migrating the application to Amazon EC2 instances. As part of the migration to AWS, a developer must identify a solution that provides high availability for the repository. Which solution will meet this requirement MOST cost-effectively?

AMount an Amazon Elastic Block Store (Amazon EBS) volume onto one of the EC2
BDeploy a micro EC2 instance with an instance store volume. Use the host operating
CCreate an Amazon S3 bucket to host the repository. Migrate the existing .xml files to
DCreate an Amazon S3 bucket to host the repository. Migrate the existing .xml files to
Question #24Part 1

A company wants to deploy and maintain static websites on AWS. Each website's source code is hosted in one of several version control systems, including AWS CodeCommit, Bitbucket, and GitHub. The company wants to implement phased releases by using development, staging, user acceptance testing, and production environments in the AWS Cloud. Deployments to each environment must be started by code merges on the relevant Git branch. The company wants to use HTTPS for all data exchange. The company needs a solution that does not require servers to run continuously. Which solution will meet these requirements with the LEAST operational overhead?

AHost each website by using AWS Amplify with a serverless backend. Conned the
BHost each website in AWS Elastic Beanstalk with multiple environments. Use the EB
CHost each website in different Amazon S3 buckets for each environment. Configure
DHost each website on its own Amazon EC2 instance. Write a custom deployment
Question #25Part 1

A company is migrating an on-premises database to Amazon RDS for MySQL. The company has read-heavy workloads. The company wants to refactor the code to achieve optimum read performance for queries. Which solution will meet this requirement with LEAST current and future effort?

AUse a multi-AZ Amazon RDS deployment. Increase the number of connections that
BUse a multi-AZ Amazon RDS deployment. Modify the code so that queries access
CDeploy Amazon RDS with one or more read replicas. Modify the application code so
DUse open source replication software to create a copy of the MySQL database on an
Question #26Part 1

A developer is creating an application that will be deployed on IoT devices. The application will send data to a RESTful API that is deployed as an AWS Lambda function. The application will assign each API request a unique identifier. The volume of API requests from the application can randomly increase at any given time of day. During periods of request throttling, the application might need to retry requests. The API must be able to handle duplicate requests without inconsistencies or data loss. Which solution will meet these requirements?

ACreate an Amazon RDS for MySQL DB instance. Store the unique identifier for each
BCreate an Amazon DynamoDB table. Store the unique identifier for each request in
CCreate an Amazon DynamoDB table. Store the unique identifier for each request in
DCreate an Amazon ElastiCache for Memcached instance. Store the unique identifier
Question #27Part 1

A developer wants to expand an application to run in multiple AWS Regions. The developer wants to copy Amazon Machine Images (AMIs) with the latest changes and create a new application stack in the destination Region. According to company requirements, all AMIs must be encrypted in all Regions. However, not all the AMIs that the company uses are encrypted. How can the developer expand the application to run in the destination Region while meeting the encryption requirement?

ACreate new AMIs, and specify encryption parameters. Copy the encrypted AMIs to
BUse AWS Key Management Service (AWS KMS) to enable encryption on the
CUse AWS Certificate Manager (ACM) to enable encryption on the unencrypted AMIs.
DCopy the unencrypted AMIs to the destination Region. Enable encryption by default
Question #28Part 1

A company hosts a client-side web application for one of its subsidiaries on Amazon S3. The web application can be accessed through Amazon CloudFront from https://www.example.com. After a successful rollout, the company wants to host three more client-side web applications for its remaining subsidiaries on three separate S3 buckets. To achieve this goal, a developer moves all the common JavaScript files and web fonts to a central S3 bucket that serves the web applications. However, during testing, the developer notices that the browser blocks the JavaScript files and web fonts. What should the developer do to prevent the browser from blocking the JavaScript files and web fonts?

ACreate four access points that allow access to the central S3 bucket. Assign an
BCreate a bucket policy that allows access to the central S3 bucket. Attach the bucket
CCreate a cross-origin resource sharing (CORS) configuration that allows access to
DCreate a Content-MD5 header that provides a message integrity check for the central
Question #29Part 1Select 2

An application is processing clickstream data using Amazon Kinesis. The clickstream data feed into Kinesis experiences periodic spikes. The PutRecords API call occasionally fails and the logs show that the failed call returns the response shown below: Which techniques will help mitigate this exception? (Choose two.)

AImplement retries with exponential backoff.
BUse a PutRecord API instead of PutRecords.
CReduce the frequency and/or size of the requests.
DUse Amazon SNS instead of Kinesis.
EReduce the number of KCL consumers.
Question #30Part 1

A company has an application that uses Amazon Cognito user pools as an identity provider. The company must secure access to user records. The company has set up multi-factor authentication (MFA). The company also wants to send a login activity notification by email every time a user logs in. What is the MOST operationally efficient solution that meets this requirement?

ACreate an AWS Lambda function that uses Amazon Simple Email Service (Amazon
BCreate an AWS Lambda function that uses Amazon Simple Email Service (Amazon
CCreate an AWS Lambda function that uses Amazon Simple Email Service (Amazon
DConfigure Amazon Cognito to stream all logs to Amazon Kinesis Data Firehose.
Question #31Part 1

A developer has an application that stores data in an Amazon S3 bucket. The application uses an HTTP API to store and retrieve objects. When the PutObject API operation adds objects to the S3 bucket the developer must encrypt these objects at rest by using server-side encryption with Amazon S3 managed keys (SSE-S3). Which solution will meet this requirement?

ACreate an AWS Key Management Service (AWS KMS) key. Assign the KMS key to
BSet the x-amz-server-side-encryption header when invoking the PutObject API
CProvide the encryption key in the HTTP header of every request.
DApply TLS to encrypt the traffic to the S3 bucket.
Question #32Part 1

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?

ACreate and deploy an AWS Lambda function in each desired Region. Configure the
BCreate an AWS CloudFormation template that defines the load test resources. Use
CCreate an AWS Systems Manager document that defines the resources. Use the
DCreate an AWS CloudFormation template that defines the load test resources. Use
Question #33Part 1

A developer is creating an application that includes an Amazon API Gateway REST API in the us-east-2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider. How should the developer configure the custom domain for the application?

AImport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same
BImport the SSL/TLS certificate into CloudFront. Create a DNS CNAME record for the
CImport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same
DImport the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1
Question #34Part 1

A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda. Which AWS service or tool should the developer use to define serverless resources in YAML?

ACloudFormation serverless intrinsic functions
BAWS Elastic Beanstalk
CAWS Serverless Application Model (AWS SAM)
DAWS Cloud Development Kit (AWS CDK)
Question #35Part 1

A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket. Which set of steps would be necessary to achieve this?

ACreate an event with Amazon EventBridge that will monitor the S3 bucket and then
BConfigure an S3 event to invoke an AWS Lambda function that inserts records into
CCreate an AWS Lambda function that will poll the S3 bucket and then insert the
DCreate a cron job that will run at a scheduled time and insert the records into
Question #36Part 1

A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket. Which set of steps would be necessary to achieve this?

ACreate an event with Amazon EventBridge that will monitor the S3 bucket and then
BConfigure an S3 event to invoke an AWS Lambda function that inserts records into
CCreate an AWS Lambda function that will poll the S3 bucket and then insert the
DCreate a cron job that will run at a scheduled time and insert the records into
Question #37Part 1Select 2

A development team maintains a web application by using a single AWS CloudFormation template. The template defines web servers and an Amazon RDS database. The team uses the Cloud Formation template to deploy the Cloud Formation stack to different environments. During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future. Which solutions will meet these requirements? (Choose two.)

AAdd a CloudFormation Deletion Policy attribute with the Retain value to the database
BUpdate the CloudFormation stack policy to prevent updates to the database.
CModify the database to use a Multi-AZ deployment.
DCreate a CloudFormation stack set for the web application and database
EAdd a Cloud Formation DeletionPolicy attribute with the Retain value to the stack.
Question #38Part 1

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 Key Management Service (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?

ADefine a resource-based policy on the S3 bucket to deny access when a request
BDefine a resource-based policy on the S3 bucket to allow access when a request
CDefine a role-based policy on the other accounts' roles to deny access when a
DDefine a resource-based policy on the KMS key to deny access when a request
Question #39Part 1

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 Key Management Service (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?

ADefine a resource-based policy on the S3 bucket to deny access when a request
BDefine a resource-based policy on the S3 bucket to allow access when a request
CDefine a role-based policy on the other accounts' roles to deny access when a
DDefine a resource-based policy on the KMS key to deny access when a request
Question #40Part 1

An application that is hosted on an Amazon EC2 instance needs access to files that are stored in an Amazon S3 bucket. The application lists the objects that are stored in the S3 bucket and displays a table to the user. During testing, a developer discovers that the application does not show any objects in the list. What is the MOST secure way to resolve this issue?

AUpdate the IAM instance profile that is attached to the EC2 instance to include the
BUpdate the IAM instance profile that is attached to the EC2 instance to include the
CUpdate the developer's user permissions to include the S3:ListBucket permission for
DUpdate the S3 bucket policy by including the S3:ListBucket permission and by setting
Question #41Part 1

A company is planning to securely manage one-time fixed license keys in AWS. The company's development team needs to access the license keys in automaton scripts that run in Amazon EC2 instances and in AWS CloudFormation stacks. Which solution will meet these requirements MOST cost-effectively?

AAmazon S3 with encrypted files prefixed with “config”
BAWS Secrets Manager secrets with a tag that is named SecretString
CAWS Systems Manager Parameter Store SecureString parameters
DCloudFormation NoEcho parameters
Question #42Part 1

A company has deployed infrastructure on AWS. A development team wants to create an AWS Lambda function that will retrieve data from an Amazon Aurora database. The Amazon Aurora database is in a private subnet in company's VPC. The VPC is named VPC1. The data is relational in nature. The Lambda function needs to access the data securely. Which solution will meet these requirements?

ACreate the Lambda function. Configure VPC1 access for the function. Attach a
BCreate and launch a Lambda function in a new public subnet that is in a new VPC
CCreate the Lambda function. Configure VPC1 access for the function. Assign a
DExport the data from the Aurora database to Amazon S3. Create and launch a
Question #43Part 1Select 2

A developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit. Which of the following API Gateway metrics in Amazon CloudWatch can help the developer troubleshoot the issue? (Choose two.)

ACacheHitCount
BIntegrationLatency
CCacheMissCount
DLatency
ECount
Question #44Part 1

A development team wants to build a continuous integration/continuous delivery (CI/CD) pipeline. The team is using AWS CodePipeline to automate the code build and deployment. The team wants to store the program code to prepare for the CI/CD pipeline. Which AWS service should the team use to store the program code?

AAWS CodeDeploy
BAWS CodeArtifact
CAWS CodeCommit
DAmazon CodeGuru
Question #45Part 1

A developer is designing an AWS Lambda function that creates temporary files that are less than 10 MB during invocation. The temporary files will be accessed and modified multiple times during invocation. The developer has no need to save or retrieve these files in the future. Where should the temporary files be stored?

Athe /tmp directory
BAmazon Elastic File System (Amazon EFS)
CAmazon Elastic Block Store (Amazon EBS)
DAmazon S3
Question #46Part 1

A developer is designing a serverless application with two AWS Lambda functions to process photos. One Lambda function stores objects in an Amazon S3 bucket and stores the associated metadata in an Amazon DynamoDB table. The other Lambda function fetches the objects from the S3 bucket by using the metadata from the DynamoDB table. Both Lambda functions use the same Python library to perform complex computations and are approaching the quota for the maximum size of zipped deployment packages. What should the developer do to reduce the size of the Lambda deployment packages with the LEAST operational overhead?

APackage each Python library in its own .zip file archive. Deploy each Lambda
BCreate a Lambda layer with the required Python library. Use the Lambda layer in
CCombine the two Lambda functions into one Lambda function. Deploy the Lambda
DDownload the Python library to an S3 bucket. Program the Lambda functions to
Question #47Part 1

A developer is writing an AWS Lambda function. The developer wants to log key events that occur while the Lambda function runs. The developer wants to include a unique identifier to associate the events with a specific function invocation. The developer adds the following code to the Lambda function: Which solution will meet this requirement?

AObtain the request identifier from the AWS request ID field in the context object.
BObtain the request identifier from the AWS request ID field in the event object.
CObtain the request identifier from the AWS request ID field in the event object.
DObtain the request identifier from the AWS request ID field in the context object.
Question #48Part 1

A developer is working on a serverless application that needs to process any changes to an Amazon DynamoDB table with an AWS Lambda function. How should the developer configure the Lambda function to detect changes to the DynamoDB table?

ACreate an Amazon Kinesis data stream, and attach it to the DynamoDB table. Create
BCreate an Amazon EventBridge rule to invoke the Lambda function on a regular
CEnable DynamoDB Streams on the table. Create a trigger to connect the DynamoDB
DCreate an Amazon Kinesis Data Firehose delivery stream, and attach it to the
Question #49Part 1Select 2

An application uses an Amazon EC2 Auto Scaling group. A developer notices that EC2 instances are taking a long time to become available during scale-out events. The UserData script is taking a long time to run. The developer must implement a solution to decrease the time that elapses before an EC2 instance becomes available. The solution must make the most recent version of the application available at all times and must apply all available security updates. The solution also must minimize the number of images that are created. The images must be validated. Which combination of steps should the developer take to meet these requirements? (Choose two.)

AUse EC2 Image Builder to create an Amazon Machine Image (AMI). Install all the
BUse EC2 Image Builder to create an Amazon Machine Image (AMI). Install the latest
CSet up AWS CodeDeploy to deploy the most recent version of the application at
DSet up AWS CodePipeline to deploy the most recent version of the application at
ERemove any commands that perform operating system patching from the UserData
Question #50Part 1

A developer is creating an AWS Lambda function that needs credentials to connect to an Amazon RDS for MySQL database. An Amazon S3 bucket currently stores the credentials. The developer needs to improve the existing solution by implementing credential rotation and secure storage. The developer also needs to provide integration with the Lambda function. Which solution should the developer use to store and retrieve the credentials with the LEAST management overhead?

AStore the credentials in AWS Systems Manager Parameter Store. Select the
BEncrypt the credentials with the default AWS Key Management Service (AWS KMS)
CStore the credentials in AWS Secrets Manager. Set the secret type to Credentials for
DEncrypt the credentials by using AWS Key Management Service (AWS KMS). Store
Question #51Part 1

A developer has written the following IAM policy to provide access to an Amazon S3 bucket: Which access does the policy allow regarding the s3:GetObject and s3:PutObject actions?

AAccess on all buckets except the “DOC-EXAMPLE-BUCKET” bucket
BAccess on all buckets that start with “DOC-EXAMPLE-BUCKET” except the
CAccess on all objects in the “DOC-EXAMPLE-BUCKET” bucket along with access to
DAccess on all objects in the “DOC-EXAMPLE-BUCKET” bucket except on objects
Question #52Part 1

A developer is creating a mobile app that calls a backend service by using an Amazon API Gateway REST API. For integration testing during the development phase, the developer wants to simulate different backend responses without invoking the backend service. Which solution will meet these requirements with the LEAST operational overhead?

ACreate an AWS Lambda function. Use API Gateway proxy integration to return
BCreate an Amazon EC2 instance that serves the backend REST API by using an
CCustomize the API Gateway stage to select a response type based on the request.
DUse a request mapping template to select the mock integration response.
Question #53Part 1

A developer has a legacy application that is hosted on-premises. Other applications hosted on AWS depend on the on-premises application for proper functioning. In case of any application errors, the developer wants to be able to use Amazon CloudWatch to monitor and troubleshoot all applications from one place. How can the developer accomplish this?

AInstall an AWS SDK on the on-premises server to automatically send logs to
BDownload the CloudWatch agent to the on-premises server. Configure the agent to
CUpload log files from the on-premises server to Amazon S3 and have CloudWatch
DUpload log files from the on-premises server to an Amazon EC2 instance and have
Question #54Part 1

An Amazon Kinesis Data Firehose delivery stream is receiving customer data that contains personally identifiable information. A developer needs to remove pattern-based customer identifiers from the data and store the modified data in an Amazon S3 bucket. What should the developer do to meet these requirements?

AImplement Kinesis Data Firehose data transformation as an AWS Lambda function.
BLaunch an Amazon EC2 instance. Set the EC2 instance as the destination of the
CCreate an Amazon OpenSearch Service instance. Set the OpenSearch Service
DCreate an AWS Step Functions workflow to remove the customer identifiers. As the
Question #55Part 1

A developer is using an AWS Lambda function to generate avatars for profile pictures that are uploaded to an Amazon S3 bucket. The Lambda function is automatically invoked for profile pictures that are saved under the /original/ S3 prefix. The developer notices that some pictures cause the Lambda function to time out. The developer wants to implement a fallback mechanism by using another Lambda function that resizes the profile picture. Which solution will meet these requirements with the LEAST development effort?

ASet the image resize Lambda function as a destination of the avatar generator
BCreate an Amazon Simple Queue Service (Amazon SQS) queue. Set the SQS
CCreate an AWS Step Functions state machine that invokes the avatar generator
DCreate an Amazon Simple Notification Service (Amazon SNS) topic. Set the SNS
Question #56Part 1

A developer needs to migrate an online retail application to AWS to handle an anticipated increase in traffic. The application currently runs on two servers: one server for the web application and another server for the database. The web server renders webpages and manages session state in memory. The database server hosts a MySQL database that contains order details. When traffic to the application is heavy, the memory usage for the web server approaches 100% and the application slows down considerably. The developer has found that most of the memory increase and performance decrease is related to the load of managing additional user sessions. For the web server migration, the developer will use Amazon EC2 instances with an Auto Scaling group behind an Application Load Balancer. Which additional set of changes should the developer make to the application to improve the application's performance?

AUse an EC2 instance to host the MySQL database. Store the session data and the
BUse Amazon ElastiCache for Memcached to store and manage the session data.
CUse Amazon ElastiCache for Memcached to store and manage the session data and
DUse the EC2 instance store to manage the session data. Use an Amazon RDS for
Question #57Part 1

An application uses Lambda functions to extract metadata from files uploaded to an S3 bucket; the metadata is stored in Amazon DynamoDB. The application starts behaving unexpectedly, and the developer wants to examine the logs of the Lambda function code for errors. Based on this system configuration, where would the developer find the logs?

AAmazon S3
BAWS CloudTrail
CAmazon CloudWatch
DAmazon DynamoDB
Question #58Part 1Select 2

A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream. The company recently observed slow processing of the records. A developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal. Which actions should the developer take to increase the processing speed? (Choose two.)

AIncrease the number of shards of the Kinesis data stream.
BDecrease the timeout of the Lambda function.
CIncrease the memory that is allocated to the Lambda function.
DDecrease the number of shards of the Kinesis data stream.
EIncrease the timeout of the Lambda function.
Question #59Part 1

A company needs to harden its container images before the images are in a running state. The company's application uses Amazon Elastic Container Registry (Amazon ECR) as an image registry. Amazon Elastic Kubernetes Service (Amazon EKS) for compute, and an AWS CodePipeline pipeline that orchestrates a continuous integration and continuous delivery (CI/CD) workflow. Dynamic application security testing occurs in the final stage of the pipeline after a new image is deployed to a development namespace in the EKS cluster. A developer needs to place an analysis stage before this deployment to analyze the container image earlier in the CI/CD pipeline. Which solution will meet these requirements with the MOST operational efficiency?

ABuild the container image and run the docker scan command locally. Mitigate any
BCreate a new CodePipeline stage that occurs after the container image is built.
CCreate a new CodePipeline stage that occurs after source code has been retrieved
DAdd an action to the deployment stage of the pipeline so that the action occurs
Question #60Part 1

A developer is testing a new file storage application that uses an Amazon CloudFront distribution to serve content from an Amazon S3 bucket. The distribution accesses the S3 bucket by using an origin access identity (OAI). The S3 bucket's permissions explicitly deny access to all other users. The application prompts users to authenticate on a login page and then uses signed cookies to allow users to access their personal storage directories. The developer has configured the distribution to use its default cache behavior with restricted viewer access and has set the origin to point to the S3 bucket. However, when the developer tries to navigate to the login page, the developer receives a 403 Forbidden error. The developer needs to implement a solution to allow unauthenticated access to the login page. The solution also must keep all private content secure. Which solution will meet these requirements?

AAdd a second cache behavior to the distribution with the same origin as the default
BAdd a second cache behavior to the distribution with the same origin as the default
CAdd a second origin as a failover origin to the default cache behavior. Point the
DAdd a bucket policy to the S3 bucket to allow read access. Set the resource on the
Question #61Part 2

A developer is using AWS Amplify Hosting to build and deploy an application. The developer is receiving an increased number of bug reports from users. The developer wants to add end-to-end testing to the application to eliminate as many bugs as possible before the bugs reach production. Which solution should the developer implement to meet these requirements?

ARun the amplify add test command in the Amplify CLI.
BCreate unit tests in the application. Deploy the unit tests by using the amplify push
CAdd a test phase to the amplify.yml build settings for the application.
DAdd a test phase to the aws-exports.js file for the application.
Question #62Part 2

An ecommerce company is using an AWS Lambda function behind Amazon API Gateway as its application tier. To process orders during checkout, the application calls a POST API from the frontend. The POST API invokes the Lambda function asynchronously. In rare situations, the application has not processed orders. The Lambda application logs show no errors or failures. What should a developer do to solve this problem?

AInspect the frontend logs for API failures. Call the POST API manually by using the
BCreate and inspect the Lambda dead-letter queue. Troubleshoot the failed functions.
CInspect the Lambda logs in Amazon CloudWatch for possible errors. Fix the errors.
DMake sure that caching is disabled for the POST API in API Gateway.
Question #63Part 2

A company is building a web application on AWS. When a customer sends a request, the application will generate reports and then make the reports available to the customer within one hour. Reports should be accessible to the customer for 8 hours. Some reports are larger than 1 MB. Each report is unique to the customer. The application should delete all reports that are older than 2 days. Which solution will meet these requirements with the LEAST operational overhead?

AGenerate the reports and then store the reports as Amazon DynamoDB items that
BGenerate the reports and then store the reports in an Amazon S3 bucket that uses
CGenerate the reports and then store the reports in an Amazon S3 bucket that uses
DGenerate the reports and then store the reports in an Amazon RDS database with a
Question #64Part 2

A company has deployed an application on AWS Elastic Beanstalk. The company has configured the Auto Scaling group that is associated with the Elastic Beanstalk environment to have five Amazon EC2 instances. If the capacity is fewer than four EC2 instances during the deployment, application performance degrades. The company is using the all-at-once deployment policy. What is the MOST cost-effective way to solve the deployment issue?

AChange the Auto Scaling group to six desired instances.
BChange the deployment policy to traffic splitting. Specify an evaluation time of 1 hour.
CChange the deployment policy to rolling with additional batch. Specify a batch size of
DChange the deployment policy to rolling. Specify a batch size of 2.
Question #65Part 2

A developer is incorporating AWS X-Ray into an application that handles personal identifiable information (PII). The application is hosted on Amazon EC2 instances. The application trace messages include encrypted PII and go to Amazon CloudWatch. The developer needs to ensure that no PII goes outside of the EC2 instances. Which solution will meet these requirements?

AManually instrument the X-Ray SDK in the application code.
BUse the X-Ray auto-instrumentation agent.
CUse Amazon Macie to detect and hide PII. Call the X-Ray API from AWS Lambda.
DUse AWS Distro for Open Telemetry.
Question #66Part 2

A developer is migrating some features from a legacy monolithic application to use AWS Lambda functions instead. The application currently stores data in an Amazon Aurora DB cluster that runs in private subnets in a VPC. The AWS account has one VPC deployed. The Lambda functions and the DB cluster are deployed in the same AWS Region in the same AWS account. The developer needs to ensure that the Lambda functions can securely access the DB cluster without crossing the public internet. Which solution will meet these requirements?

AConfigure the DB cluster's public access setting to Yes.
BConfigure an Amazon RDS database proxy for he Lambda functions.
CConfigure a NAT gateway and a security group for the Lambda functions.
DConfigure the VPC, subnets, and a security group for the Lambda functions.
Question #67Part 2

A developer is building a new application on AWS. The application uses an AWS Lambda function that retrieves information from an Amazon DynamoDB table. The developer hard coded the DynamoDB table name into the Lambda function code. The table name might change over time. The developer does not want to modify the Lambda code if the table name changes. Which solution will meet these requirements MOST efficiently?

ACreate a Lambda environment variable to store the table name. Use the standard
BStore the table name in a file. Store the file in the /tmp folder. Use the SDK for the
CCreate a file to store the table name. Zip the file and upload the file to the Lambda
DCreate a global variable that is outside the handler in the Lambda function to store
Question #68Part 2

A company has a critical application on AWS. The application exposes an HTTP API by using Amazon API Gateway. The API is integrated with an AWS Lambda function. The application stores data in an Amazon RDS for MySQL DB instance with 2 virtual CPUs (vCPUs) and 64 GB of RAM. Customers have reported that some of the API calls return HTTP 500 Internal Server Error responses. Amazon CloudWatch Logs shows errors for “too many connections.” The errors occur during peak usage times that are unpredictable. The company needs to make the application resilient. The database cannot be down outside of scheduled maintenance hours. Which solution will meet these requirements?

ADecrease the number of vCPUs for the DB instance. Increase the max_connections
BUse Amazon RDS Proxy to create a proxy that connects to the DB instance. Update
CAdd a CloudWatch alarm that changes the DB instance class when the number of
DAdd an Amazon EventBridge rule that increases the max_connections setting of the
Question #69Part 2

A company has installed smart meters in all its customer locations. The smart meters measure power usage at 1-minute intervals and send the usage readings to a remote endpoint for collection. The company needs to create an endpoint that will receive the smart meter readings and store the readings in a database. The company wants to store the location ID and timestamp information. The company wants to give its customers low-latency access to their current usage and historical usage on demand. The company expects demand to increase significantly. The solution must not impact performance or include downtime while scaling. Which solution will meet these requirements MOST cost-effectively?

AStore the smart meter readings in an Amazon RDS database. Create an index on the
BStore the smart meter readings in an Amazon DynamoDB table. Create a composite
CStore the smart meter readings in Amazon ElastiCache for Redis. Create a
DStore the smart meter readings in Amazon S3. Partition the data by using the
Question #70Part 2

A company is building a serverless application that uses AWS Lambda functions. The company needs to create a set of test events to test Lambda functions in a development environment. The test events will be created once and then will be used by all the developers in an IAM developer group. The test events must be editable by any of the IAM users in the IAM developer group. Which solution will meet these requirements?

ACreate and store the test events in Amazon S3 as JSON objects. Allow S3 bucket
BCreate the test events. Configure the event sharing settings to make the test events
CCreate and store the test events in Amazon DynamoDB. Allow access to DynamoDB
DCreate the test events. Configure the event sharing settings to make the test events
Question #71Part 2Select 2

A developer is configuring an application's deployment environment in AWS CodePipeline. The application code is stored in a GitHub repository. The developer wants to ensure that the repository package's unit tests run in the new deployment environment. The developer has already set the pipeline's source provider to GitHub and has specified the repository and branch to use in the deployment. Which combination of steps should the developer take next to meet these requirements with the LEAST overhead? (Choose two.)

ACreate an AWS CodeCommit project. Add the repository package's build and test
BCreate an AWS CodeBuild project. Add the repository package's build and test
CCreate an AWS CodeDeploy project. Add the repository package's build and test
DAdd an action to the source stage. Specify the newly created project as the action
EAdd a new stage to the pipeline after the source stage. Add an action to the new
Question #72Part 2

An engineer created an A/B test of a new feature on an Amazon CloudWatch Evidently project. The engineer configured two variations of the feature (Variation A and Variation

Bfor the test. The engineer wants to work exclusively with Variation A. The engineer
AAdd an override to the feature. Set the identifier of the override to the engineer's user
BAdd an override to the feature. Set the identifier of the override to Variation A. Set the
CAdd an experiment to the project. Set the identifier of the experiment to Variation B.
DAdd an experiment to the project. Set the identifier of the experiment to the AWS
Question #73Part 2

A developer is working on an existing application that uses Amazon DynamoDB as its data store. The DynamoDB table has the following attributes: partNumber (partition key), vendor (sort key), description, productFamily, and productType. When the developer analyzes the usage patterns, the developer notices that there are application modules that frequently look for a list of products based on the productFamily and productType attributes. The developer wants to make changes to the application to improve performance of the query operations. Which solution will meet these requirements?

ACreate a global secondary index (GSI) with productFamily as the partition key and
BCreate a local secondary index (LSI) with productFamily as the partition key and
CRecreate the table. Add partNumber as the partition key and vendor as the sort key.
DUpdate the queries to use Scan operations with productFamily as the partition key
Question #74Part 2

A developer creates a VPC named VPC-A that has public and private subnets. The developer also creates an Amazon RDS database inside the private subnet of VPC-A. To perform some queries, the developer creates an AWS Lambda function in the default VPC. The Lambda function has code to access the RDS database. When the Lambda function runs, an error message indicates that the function cannot connect to the RDS database. How can the developer solve this problem?

AModify the RDS security group. Add a rule to allow traffic from all the ports from the
BRedeploy the Lambda function in the same subnet as the RDS instance. Ensure that
CCreate a security group for the Lambda function. Add a new rule in the RDS security
DCreate an IAM role. Attach a policy that allows access to the RDS database. Attach
Question #75Part 2

A company runs an application on AWS. The company deployed the application on Amazon EC2 instances. The application stores data on Amazon Aurora. The application recently logged multiple application-specific custom DECRYP_ERROR errors to Amazon CloudWatch logs. The company did not detect the issue until the automated tests that run every 30 minutes failed. A developer must implement a solution that will monitor for the custom errors and alert a development team in real time when these errors occur in the production environment. Which solution will meet these requirements with the LEAST operational overhead?

AConfigure the application to create a custom metric and to push the metric to
BCreate an AWS Lambda function to run every 5 minutes to scan the CloudWatch logs
CUse Amazon CloudWatch Logs to create a metric filter that has a filter pattern for
DInstall the CloudWatch unified agent on the EC2 instance. Configure the application
Question #76Part 2

A developer created an AWS Lambda function that accesses resources in a VPC. The Lambda function polls an Amazon Simple Queue Service (Amazon SQS) queue for new messages through a VPC endpoint. Then the function calculates a rolling average of the numeric values that are contained in the messages. After initial tests of the Lambda function, the developer found that the value of the rolling average that the function returned was not accurate. How can the developer ensure that the function calculates an accurate rolling average?

ASet the function's reserved concurrency to 1. Calculate the rolling average in the
BModify the function to store the values in Amazon ElastiCache. When the function
CSet the function's provisioned concurrency to 1. Calculate the rolling average in the
DModify the function to store the values in the function's layers. When the function
Question #77Part 2

A developer is writing unit tests for a new application that will be deployed on AWS. The developer wants to validate all pull requests with unit tests and merge the code with the main branch only when all tests pass. The developer stores the code in AWS CodeCommit and sets up AWS CodeBuild to run the unit tests. The developer creates an AWS Lambda function to start the CodeBuild task. The developer needs to identify the CodeCommit events in an Amazon EventBridge event that can invoke the Lambda function when a pull request is created or updated. Which CodeCommit event will meet these requirements?

AB.
CD.
Question #78Part 2

A developer deployed an application to an Amazon EC2 instance. The application needs to know the public IPv4 address of the instance. How can the application find this information?

AQuery the instance metadata from http://169.254.169.254/latest/meta-data/.
BQuery the instance user data from http://169.254.169.254/latest/user-data/.
CQuery the Amazon Machine Image (AMI) information from
DCheck the hosts file of the operating system.
Question #79Part 2

An application under development is required to store hundreds of video files. The data must be encrypted within the application prior to storage, with a unique key for each video file. How should the developer code the application?

AUse the KMS Encrypt API to encrypt the data. Store the encrypted data key and
BUse a cryptography library to generate an encryption key for the application. Use the
CUse the KMS GenerateDataKey API to get a data key. Encrypt the data with the data
DUpload the data to an S3 bucket using server side-encryption with an AWS KMS key.
Question #80Part 2

A company is planning to deploy an application on AWS behind an Elastic Load Balancer. The application uses an HTTP/HTTPS listener and must access the client IP addresses. Which load-balancing solution meets these requirements?

AUse an Application Load Balancer and the X-Forwarded-For headers.
BUse a Network Load Balancer (NLB). Enable proxy protocol support on the NLB and
CUse an Application Load Balancer. Register the targets by the instance ID.
DUse a Network Load Balancer and the X-Forwarded-For headers.
Question #81Part 2

A developer wants to debug an application by searching and filtering log data. The application logs are stored in Amazon CloudWatch Logs. The developer creates a new metric filter to count exceptions in the application logs. However, no results are returned from the logs. What is the reason that no filtered results are being returned?

AA setup of the Amazon CloudWatch interface VPC endpoint is required for filtering
BCloudWatch Logs only publishes metric data for events that happen after the filter is
CThe log group for CloudWatch Logs should be first streamed to Amazon OpenSearch
DMetric data points for logs groups can be filtered only after they are exported to an
Question #82Part 2

A company is planning to use AWS CodeDeploy to deploy an application to Amazon Elastic Container Service (Amazon ECS). During the deployment of a new version of the application, the company initially must expose only 10% of live traffic to the new version of the deployed application. Then, after 15 minutes elapse, the company must route all the remaining live traffic to the new version of the deployed application. Which CodeDeploy predefined configuration will meet these requirements?

ACodeDeployDefault.ECSCanary10Percent15Minutes
BCodeDeployDefault.LambdaCanary10Percent5Minutes
CCodeDeployDefault.LambdaCanary10Percentl15Minutes
DCodeDeployDefault.ECSLinear10PercentEvery1Minutes
Question #83Part 2

A company hosts a batch processing application on AWS Elastic Beanstalk with instances that run the most recent version of Amazon Linux. The application sorts and processes large datasets. In recent weeks, the application's performance has decreased significantly during a peak period for traffic. A developer suspects that the application issues are related to the memory usage. The developer checks the Elastic Beanstalk console and notices that memory usage is not being tracked. How should the developer gather more information about the application performance issues?

AConfigure the Amazon CloudWatch agent to push logs to Amazon CloudWatch Logs
BConfigure the Elastic Beanstalk .ebextensions directory to track the memory usage of
CConfigure the Amazon CloudWatch agent to track the memory usage of the
DConfigure an Amazon CloudWatch dashboard to track the memory usage of the
Question #84Part 2

A developer is building a highly secure healthcare application using serverless components. This application requires writing temporary data to /tmp storage on an AWS Lambda function. How should the developer encrypt this data?

AEnable Amazon EBS volume encryption with an AWS KMS key in the Lambda
BSet up the Lambda function with a role and key policy to access an AWS KMS key.
CUse OpenSSL to generate a symmetric encryption key on Lambda startup. Use this
DUse an on-premises hardware security module (HSM) to generate keys, where the
Question #85Part 2

A developer has created an AWS Lambda function to provide notification through Amazon Simple Notification Service (Amazon SNS) whenever a file is uploaded to Amazon S3 that is larger than 50 MB. The developer has deployed and tested the Lambda function by using the CLI. However, when the event notification is added to the S3 bucket and a 3,000 MB file is uploaded, the Lambda function does not launch. Which of the following is a possible reason for the Lambda function's inability to launch?

AThe S3 event notification does not activate for files that are larger than 1,000 MB.
BThe resource-based policy for the Lambda function does not have the required
CLambda functions cannot be invoked directly from an S3 event.
DThe S3 bucket needs to be made public.
Question #86Part 2

A developer is creating a Ruby application and needs to automate the deployment, scaling, and management of an environment without requiring knowledge of the underlying infrastructure. Which service would best accomplish this task?

AAWS CodeDeploy
BAWS CloudFormation
CAWS OpsWorks
DAWS Elastic Beanstalk
Question #87Part 2Select 2

A company has a web application that is deployed on AWS. The application uses an Amazon API Gateway API and an AWS Lambda function as its backend. The application recently demonstrated unexpected behavior. A developer examines the Lambda function code, finds an error, and modifies the code to resolve the problem. Before deploying the change to production, the developer needs to run tests to validate that the application operates properly. The application has only a production environment available. The developer must create a new development environment to test the code changes. The developer must also prevent other developers from overwriting these changes during the test cycle. Which combination of steps will meet these requirements with the LEAST development effort? (Choose two.)

ACreate a new resource in the current stage. Create a new method with Lambda proxy
BUpdate the Lambda function in the API Gateway API integration request to use the
CModify the Lambda function by fixing the code. Test the Lambda function. Create the
DModify the Lambda function by fixing the code. Test the Lambda function. When the
ECreate a new API Gateway API for the development environment. Add a resource
Question #88Part 2

A developer is implementing an AWS Cloud Development Kit (AWS CDK) serverless application. The developer will provision several AWS Lambda functions and Amazon API Gateway APIs during AWS CloudFormation stack creation. The developer's workstation has the AWS Serverless Application Model (AWS SAM) and the AWS CDK installed locally. How can the developer test a specific Lambda function locally?

ARun the sam package and sam deploy commands. Create a Lambda test event from
BRun the cdk synth and cdk deploy commands. Create a Lambda test event from the
CRun the cdk synth and sam local invoke commands with the function construct
DRun the cdk synth and sam local start-lambda commands with the function construct
Question #89Part 2

A company's new mobile app uses Amazon API Gateway. As the development team completes a new release of its APIs, a developer must safely and transparently roll out the API change. What is the SIMPLEST solution for the developer to use for rolling out the new API version to a limited number of users through API Gateway?

ACreate a new API in API Gateway. Direct a portion of the traffic to the new API using
BValidate the new API version and promote it to production during the window of
CImplement an Amazon CloudWatch alarm to trigger a rollback if the observed HTTP
DUse the canary release deployment option in API Gateway. Direct a percentage of
Question #90Part 2

A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table. What is the simplest way to do this?

AWrite a script that deletes old records; schedule the script as a cron job on an
BAdd an attribute with the expiration time; enable the Time To Live feature based on
CEach day, create a new table to hold session data; delete the previous day's table.
DAdd an attribute with the expiration time; name the attribute ItemExpiration.
Question #91Part 2

A company is using an Amazon API Gateway REST API endpoint as a webhook to publish events from an on-premises source control management (SCM) system to Amazon EventBridge. The company has configured an EventBridge rule to listen for the events and to control application deployment in a central AWS account. The company needs to receive the same events across multiple receiver AWS accounts. How can a developer meet these requirements without changing the configuration of the SCM system?

ADeploy the API Gateway REST API to all the required AWS accounts. Use the same
BDeploy the API Gateway REST API to all the receiver AWS accounts. Create as
CGrant permission to the central AWS account for EventBridge to access the receiver
DConvert the API Gateway type from REST API to HTTP API.
Question #92Part 2

A company moved some of its secure files to a private Amazon S3 bucket that has no public access. The company wants to develop a serverless application that gives its employees the ability to log in and securely share the files with other users. Which AWS feature should the company use to share and access the files securely?

AAmazon Cognito user pool
BS3 presigned URLs
CS3 bucket policy
DAmazon Cognito identity pool
Question #93Part 2

A company needs to develop a proof of concept for a web service application. The application will show the weather forecast for one of the company's office locations. The application will provide a REST endpoint that clients can call. Where possible, the application should use caching features provided by AWS to limit the number of requests to the backend service. The application backend will receive a small amount of traffic only during testing. Which approach should the developer take to provide the REST endpoint MOST cost-effectively?

ACreate a container image. Deploy the container image by using Amazon Elastic
BCreate an AWS Lambda function by using the AWS Serverless Application Model
CCreate a container image. Deploy the container image by using Amazon Elastic
DCreate a microservices application. Deploy the application to AWS Elastic Beanstalk.
Question #94Part 2

An e-commerce web application that shares session state on-premises is being migrated to AWS. The application must be fault tolerant, natively highly scalable, and any service interruption should not affect the user experience. What is the best option to store the session state?

AStore the session state in Amazon ElastiCache.
BStore the session state in Amazon CloudFront.
CStore the session state in Amazon S3.
DEnable session stickiness using elastic load balancers.
Question #95Part 2

A developer is building an application that uses Amazon DynamoDB. The developer wants to retrieve multiple specific items from the database with a single API call. Which DynamoDB API call will meet these requirements with the MINIMUM impact on the database?

ABatchGetItem
BGetItem
CScan
DQuery
Question #96Part 2

A developer has written an application that runs on Amazon EC2 instances. The developer is adding functionality for the application to write objects to an Amazon S3 bucket. Which policy must the developer modify to allow the instances to write these objects?

AThe IAM policy that is attached to the EC2 instance profile role
BThe session policy that is applied to the EC2 instance role session
CThe AWS Key Management Service (AWS KMS) key policy that is attached to the
DThe Amazon VPC endpoint policy
Question #97Part 2

A developer is leveraging a Border Gateway Protocol (BGP)-based AWS VPN connection to connect from on-premises to Amazon EC2 instances in the developer's account. The developer is able to access an EC2 instance in subnet A, but is unable to access an EC2 instance in subnet B in the same VPC. Which logs can the developer use to verify whether the traffic is reaching subnet B?

AVPN logs
BBGP logs
CVPC Flow Logs
DAWS CloudTrail logs
Question #98Part 2

A developer is creating a service that uses an Amazon S3 bucket for image uploads. The service will use an AWS Lambda function to create a thumbnail of each image. Each time an image is uploaded, the service needs to send an email notification and create the thumbnail. The developer needs to configure the image processing and email notifications setup. Which solution will meet these requirements?

ACreate an Amazon Simple Notification Service (Amazon SNS) topic. Configure S3
BCreate an Amazon Simple Notification Service (Amazon SNS) topic. Configure S3
CCreate an Amazon Simple Queue Service (Amazon SQS) queue. Configure S3
DCreate an Amazon Simple Queue Service (Amazon SQS) queue. Send S3 event
Question #99Part 2

A developer has designed an application to store incoming data as JSON files in Amazon S3 objects. Custom business logic in an AWS Lambda function then transforms the objects, and the Lambda function loads the data into an Amazon DynamoDB table. Recently, the workload has experienced sudden and significant changes in traffic. The flow of data to the DynamoDB table is becoming throttled. The developer needs to implement a solution to eliminate the throttling and load the data into the DynamoDB table more consistently. Which solution will meet these requirements?

ARefactor the Lambda function into two functions. Configure one function to transform
BTurn on auto scaling for the DynamoDB table. Use Amazon CloudWatch to monitor
CCreate an alias for the Lambda function. Configure provisioned concurrency for the
DRefactor the Lambda function into two functions. Configure one function to store the
Question #100Part 2

A developer is creating an AWS Lambda function in VPC mode. An Amazon S3 event will invoke the Lambda function when an object is uploaded into an S3 bucket. The Lambda function will process the object and produce some analytic results that will be recorded into a file. Each processed object will also generate a log entry that will be recorded into a file. Other Lambda functions, AWS services, and on-premises resources must have access to the result files and log file. Each log entry must also be appended to the same shared log file. The developer needs a solution that can share files and append results into an existing file. Which solution should the developer use to meet these requirements?

ACreate an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file
BCreate an Amazon Elastic Block Store (Amazon EBS) Multi-Attach enabled volume.
CCreate a reference to the /tmp local directory. Store the result files and log file by
DCreate a reference to the /opt storage directory. Store the result files and log file by
Question #101Part 2

A company has an AWS Lambda function that processes incoming requests from an Amazon API Gateway API. The API calls the Lambda function by using a Lambda alias. A developer updated the Lambda function code to handle more details related to the incoming requests. The developer wants to deploy the new Lambda function for more testing by other developers with no impact to customers that use the API. Which solution will meet these requirements with the LEAST operational overhead?

ACreate a new version of the Lambda function. Create a new stage on API Gateway
BUpdate the existing Lambda alias used by API Gateway to a weighted alias. Add the
CCreate a new version of the Lambda function. Create and deploy a second Lambda
DCreate a new version of the Lambda function. Create a new API Gateway API for
Question #102Part 2

A company uses AWS Lambda functions and an Amazon S3 trigger to process images into an S3 bucket. A development team set up multiple environments in a single AWS account. After a recent production deployment, the development team observed that the development S3 buckets invoked the production environment Lambda functions. These invocations caused unwanted execution of development S3 files by using production Lambda functions. The development team must prevent these invocations. The team must follow security best practices. Which solution will meet these requirements?

AUpdate the Lambda execution role for the production Lambda function to add a policy
BMove the development and production environments into separate AWS accounts.
CAdd a resource policy to the production Lambda function to allow only the production
DMove the development and production environments into separate AWS accounts.
Question #103Part 2

A developer is creating an application. New users of the application must be able to create an account and register by using their own social media accounts. Which AWS service or resource should the developer use to meet these requirements?

AIAM role
BAmazon Cognito identity pools
CAmazon Cognito user pools
DAWS Directory Service
Question #104Part 2

A social media application uses the AWS SDK for JavaScript on the frontend to get user credentials from AWS Security Token Service (AWS STS). The application stores its assets in an Amazon S3 bucket. The application serves its content by using an Amazon CloudFront distribution with the origin set to the S3 bucket. The credentials for the role that the application assumes to make the SDK calls are stored in plaintext in a JSON file within the application code. The developer needs to implement a solution that will allow the application to get user credentials without having any credentials hardcoded in the application code. Which solution will meet these requirements?

AAdd a Lambda@Edge function to the distribution. Invoke the function on viewer
BAdd a CloudFront function to the distribution. Invoke the function on viewer request.
CAdd a Lambda@Edge function to the distribution. Invoke the function on viewer
DAdd a CloudFront function to the distribution. Invoke the function on viewer request.
Question #105Part 2

An ecommerce website uses an AWS Lambda function and an Amazon RDS for MySQL database for an order fulfillment service. The service needs to return order confirmation immediately. During a marketing campaign that caused an increase in the number of orders, the website's operations team noticed errors for “too many connections” from Amazon RDS. However, the RDS DB cluster metrics are healthy. CPU and memory capacity are still available. What should a developer do to resolve the errors?

AInitialize the database connection outside the handler function. Increase the
BInitialize the database connection outside the handler function. Use RDS Proxy
CUse Amazon Simple Queue Service (Amazon SQS) FIFO queues to queue the
DUse Amazon Simple Queue Service (Amazon SQS) FIFO queues to queue the
Question #106Part 2

A company stores its data in data tables in a series of Amazon S3 buckets. The company received an alert that customer credit card information might have been exposed in a data table on one of the company's public applications. A developer needs to identify all potential exposures within the application environment. Which solution will meet these requirements?

AUse Amazon Athena to run a job on the S3 buckets that contain the affected data.
BUse Amazon Macie to run a job on the S3 buckets that contain the affected data.
CUse Amazon Macie to run a job on the S3 buckets that contain the affected data.
DUse Amazon Athena to run a job on the S3 buckets that contain the affected data.
Question #107Part 2Select 2

A software company is launching a multimedia application. The application will allow guest users to access sample content before the users decide if they want to create an account to gain full access. The company wants to implement an authentication process that can identify users who have already created an account. The company also needs to keep track of the number of guest users who eventually create an account. Which combination of steps will meet these requirements? (Choose two.)

ACreate an Amazon Cognito user pool. Configure the user pool to allow
BCreate an Amazon Cognito identity pool. Configure the identity pool to allow
CCreate an Amazon CloudFront distribution. Configure the distribution to allow
DCreate a role for authenticated users that allows access to all content. Create a role
EAllow all users to access the sample content by default. Create a role for
Question #108Part 2

A company is updating an application to move the backend of the application from Amazon EC2 instances to a serverless model. The application uses an Amazon RDS for MySQL DB instance and runs in a single VPC on AWS. The application and the DB instance are deployed in a private subnet in the VPC. The company needs to connect AWS Lambda functions to the DB instance. Which solution will meet these requirements?

ACreate Lambda functions inside the VPC with the AWSLambdaBasicExecutionRole
BCreate Lambda functions inside the VPC with the
CCreate Lambda functions with the AWSLambdaBasicExecutionRole policy attached
DCreate Lambda functions with the AWSLambdaVPCAccessExecutionRole policy
Question #109Part 2

A company has a web application that runs on Amazon EC2 instances with a custom Amazon Machine Image (AMI). The company uses AWS CloudFormation to provision the application. The application runs in the us-east-1 Region, and the company needs to deploy the application to the us-west-1 Region. An attempt to create the AWS CloudFormation stack in us-west-1 fails. An error message states that the AMI ID does not exist. A developer must resolve this error with a solution that uses the least amount of operational overhead. Which solution meets these requirements?

AChange the AWS CloudFormation templates for us-east-1 and us-west-1 to use an
BCopy the custom AMI from us-east-1 to us-west-1. Update the AWS CloudFormation
CBuild the custom AMI in us-west-1. Create a new AWS CloudFormation template to
DManually deploy the application outside AWS CloudFormation in us-west-1.
Question #110Part 2

A developer is updating several AWS Lambda functions and notices that all the Lambda functions share the same custom libraries. The developer wants to centralize all the libraries, update the libraries in a convenient way, and keep the libraries versioned. Which solution will meet these requirements with the LEAST development effort?

ACreate an AWS CodeArtifact repository that contains all the custom libraries.
BCreate a custom container image for the Lambda functions to save all the custom
CCreate a Lambda layer that contains all the custom libraries.
DCreate an Amazon Elastic File System (Amazon EFS) file system to store all the
Question #111Part 2

A developer wants to use AWS Elastic Beanstalk to test a new version of an application in a test environment. Which deployment method offers the FASTEST deployment?

AImmutable
BRolling
CRolling with additional batch
DAll at once
Question #112Part 2

A company is providing read access to objects in an Amazon S3 bucket for different customers. The company uses IAM permissions to restrict access to the S3 bucket. The customers can access only their own files. Due to a regulation requirement, the company needs to enforce encryption in transit for interactions with Amazon S3. Which solution will meet these requirements?

AAdd a bucket policy to the S3 bucket to deny S3 actions when the
BAdd a bucket policy to the S3 bucket to deny S3 actions when the s3:x-amz-acl
CAdd an IAM policy to the IAM users to enforce the usage of the AWS SDK.
DAdd an IAM policy to the IAM users that allows S3 actions when the s3:x-amz-acl
Question #113Part 2

A company has an image storage web application that runs on AWS. The company hosts the application on Amazon EC2 instances in an Auto Scaling group. The Auto Scaling group acts as the target group for an Application Load Balancer (ALB) and uses an Amazon S3 bucket to store the images for sale. The company wants to develop a feature to test system requests. The feature will direct requests to a separate target group that hosts a new beta version of the application. Which solution will meet this requirement with the LEAST effort?

ACreate a new Auto Scaling group and target group for the beta version of the
BCreate a new ALB, Auto Scaling group, and target group for the beta version of the
CCreate a new ALB, Auto Scaling group, and target group for the beta version of the
DCreate a new Auto Scaling group and target group for the beta version of the
Question #114Part 2Select 2

A team is developing an application that is deployed on Amazon EC2 instances. During testing, the team receives an error. The EC2 instances are unable to access an Amazon S3 bucket. Which steps should the team take to troubleshoot this issue? (Choose two.)

ACheck whether the policy that is assigned to the IAM role that is attached to the EC2
BCheck the S3 bucket policy to validate the access permissions for the S3 bucket.
CCheck whether the policy that is assigned to the IAM user that is attached to the EC2
DCheck the S3 Lifecycle policy to validate the permissions that are assigned to the S3
ECheck the security groups that are assigned to the EC2 instances. Make sure that a
Question #115Part 2

A developer is working on an ecommerce website. The developer wants to review server logs without logging in to each of the application servers individually. The website runs on multiple Amazon EC2 instances, is written in Python, and needs to be highly available. How can the developer update the application to meet these requirements with MINIMUM changes?

ARewrite the application to be cloud native and to run on AWS Lambda, where the
BSet up centralized logging by using Amazon OpenSearch Service, Logstash, and
CScale down the application to one larger EC2 instance where only one instance is
DInstall the unified Amazon CloudWatch agent on the EC2 instances. Configure the
Question #116Part 2Select 2

A company is creating an application that processes .csv files from Amazon S3. A developer has created an S3 bucket. The developer has also created an AWS Lambda function to process the .csv files from the S3 bucket. Which combination of steps will invoke the Lambda function when a .csv file is uploaded to Amazon S3? (Choose two.)

ACreate an Amazon EventBridge rule. Configure the rule with a pattern to match the
BSchedule an Amazon EventBridge rule to run a new Lambda function to scan the S3
CAdd a trigger to the existing Lambda function. Set the trigger type to EventBridge.
DCreate a new Lambda function to scan the S3 bucket for recently added S3 objects.
EAdd S3 Lifecycle rules to invoke the existing Lambda function.
Question #117Part 2

A developer needs to build an AWS CloudFormation template that self-populates the AWS Region variable that deploys the CloudFormation template. What is the MOST operationally efficient way to determine the Region in which the template is being deployed?

AUse the AWS::Region pseudo parameter.
BRequire the Region as a CloudFormation parameter.
CFind the Region from the AWS::StackId pseudo parameter by using the Fn::Split
DDynamically import the Region by referencing the relevant parameter in AWS
Question #118Part 2

A company has hundreds of AWS Lambda functions that the company's QA team needs to test by using the Lambda function URLs. A developer needs to configure the authentication of the Lambda functions to allow access so that the QA IAM group can invoke the Lambda functions by using the public URLs. Which solution will meet these requirements?

ACreate a CLI script that loops on the Lambda functions to add a Lambda function
BCreate a CLI script that loops on the Lambda functions to add a Lambda function
CCreate a CLI script that loops on the Lambda functions to add a Lambda function
DCreate a CLI script that loops on the Lambda functions to add a Lambda function
Question #119Part 2

A developer maintains a critical business application that uses Amazon DynamoDB as the primary data store. The DynamoDB table contains millions of documents and receives 30-60 requests each minute. The developer needs to perform processing in near-real time on the documents when they are added or updated in the DynamoDB table. How can the developer implement this feature with the LEAST amount of change to the existing application code?

ASet up a cron job on an Amazon EC2 instance. Run a script every hour to query the
BEnable a DynamoDB stream on the table. Invoke an AWS Lambda function to
CUpdate the application to send a PutEvents request to Amazon EventBridge. Create
DUpdate the application to synchronously process the documents directly after the
Question #120Part 2

A developer is writing an application for a company. The application will be deployed on Amazon EC2 and will use an Amazon RDS for Microsoft SQL Server database. The company's security team requires that database credentials are rotated at least weekly. How should the developer configure the database credentials for this application?

ACreate a database user. Store the user name and password in an AWS Systems
BEnable IAM authentication for the database. Create a database user for use with IAM
CCreate a database user. Store the user name and password in an AWS Secrets
DUse the EC2 user data to create a database user. Provide the user name and
Question #121Part 3Select 2

A real-time messaging application uses Amazon API Gateway WebSocket APIs with backend HTTP service. A developer needs to build a feature in the application to identify a client that keeps connecting to and disconnecting from the WebSocket connection. The developer also needs the ability to remove the client. Which combination of changes should the developer make to the application to meet these requirements? (Choose two.)

ASwitch to HTTP APIs in the backend service.
BSwitch to REST APIs in the backend service.
CUse the callback URL to disconnect the client from the backend service.
DAdd code to track the client status in Amazon ElastiCache in the backend service.
EImplement $connect and $disconnect routes in the backend service.
Question #122Part 3

A developer has written code for an application and wants to share it with other developers on the team to receive feedback. The shared application code needs to be stored long-term with multiple versions and batch change tracking. Which AWS service should the developer use?

AAWS CodeBuild
BAmazon S3
CAWS CodeCommit
DAWS Cloud9
Question #123Part 3

A company's developer is building a static website to be deployed in Amazon S3 for a production environment. The website integrates with an Amazon Aurora PostgreSQL database by using an AWS Lambda function. The website that is deployed to production will use a Lambda alias that points to a specific version of the Lambda function. The company must rotate the database credentials every 2 weeks. Lambda functions that the company deployed previously must be able to use the most recent credentials. Which solution will meet these requirements?

AStore the database credentials in AWS Secrets Manager. Turn on rotation. Write
BInclude the database credentials as part of the Lambda function code. Update the
CUse Lambda environment variables. Update the environment variables when new
DStore the database credentials in AWS Systems Manager Parameter Store. Turn on
Question #124Part 3Select 2

A developer is developing an application that uses signed requests (Signature Version 4) to call other AWS services. The developer has created a canonical request, has created the string to sign, and has calculated signing information. Which methods could the developer use to complete a signed request? (Choose two.)

AAdd the signature to an HTTP header that is named Authorization.
BAdd the signature to a session cookie.
CAdd the signature to an HTTP header that is named Authentication.
DAdd the signature to a query string parameter that is named X-Amz-Signature.
EAdd the signature to an HTTP header that is named WWW-Authenticate.
Question #125Part 3

A company must deploy all its Amazon RDS DB instances by using AWS CloudFormation templates as part of AWS CodePipeline continuous integration and continuous delivery (CI/CD) automation. The primary password for the DB instance must be automatically generated as part of the deployment process. Which solution will meet these requirements with the LEAST development effort?

ACreate an AWS Lambda-backed CloudFormation custom resource. Write Lambda
BUse the AWS CodeBuild action of CodePipeline to generate a secure string by using
CCreate an AWS Lambda-backed CloudFormation custom resource. Write Lambda
DUse the AWS::SecretsManager::Secret resource to generate a secure string. Store
Question #126Part 3

An organization is storing large files in Amazon S3, and is writing a web application to display meta-data about the files to end-users. Based on the metadata a user selects an object to download. The organization needs a mechanism to index the files and provide single-digit millisecond latency retrieval for the metadata. What AWS service should be used to accomplish this?

AAmazon DynamoDB
BAmazon EC2
CAWS Lambda
DAmazon RDS
Question #127Part 3

A developer is creating an AWS Serverless Application Model (AWS SAM) template. The AWS SAM template contains the definition of multiple AWS Lambda functions, an Amazon S3 bucket, and an Amazon CloudFront distribution. One of the Lambda functions runs on Lambda@Edge in the CloudFront distribution. The S3 bucket is configured as an origin for the CloudFront distribution. When the developer deploys the AWS SAM template in the eu-west-1 Region, the creation of the stack fails. Which of the following could be the reason for this issue?

ACloudFront distributions can be created only in the us-east-1 Region.
BLambda@Edge functions can be created only in the us-east-1 Region.
CA single AWS SAM template cannot contain multiple Lambda functions.
DThe CloudFront distribution and the S3 bucket cannot be created in the same
Question #128Part 3

A developer is integrating Amazon ElastiCache in an application. The cache will store data from a database. The cached data must populate real-time dashboards. Which caching strategy will meet these requirements?

AA read-through cache
BA write-behind cache
CA lazy-loading cache
DA write-through cache
Question #129Part 3

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?

ACreate a Lambda layer to store the external library. Configure the Lambda function to
BCreate an Amazon S3 bucket. Upload the external library into the S3 bucket. Mount
CLoad the external library to the Lambda function's /tmp directory during deployment
DCreate an Amazon Elastic File System (Amazon EFS) volume. Upload the external
Question #130Part 3

A company has a front-end application that runs on four Amazon EC2 instances behind an Elastic Load Balancer (ELB) in a production environment that is provisioned by AWS Elastic Beanstalk. A developer needs to deploy and test new application code while updating the Elastic Beanstalk platform from the current version to a newer version of Node.js. The solution must result in zero downtime for the application. Which solution meets these requirements?

AClone the production environment to a different platform version. Deploy the new
BDeploy the new application code in an all-at-once deployment to the existing EC2
CPerform an immutable update to deploy the new application code to new EC2
DUse a rolling deployment for the new application code. Apply the code to a subset of
Question #131Part 3

A developer is creating an AWS Lambda function. The Lambda function will consume messages from an Amazon Simple Queue Service (Amazon SQS) queue. The developer wants to integrate unit testing as part of the function's continuous integration and continuous delivery (CI/CD) process. How can the developer unit test the function?

ACreate an AWS CloudFormation template that creates an SQS queue and deploys
BCreate an SQS event for tests. Use a test that consumes messages from the SQS
CCreate an SQS queue for tests. Use this SQS queue in the application's unit test.
DUse the aws lambda invoke command with a test event during the CIICD process.
Question #132Part 3

A developer is working on a web application that uses Amazon DynamoDB as its data store. The application has two DynamoDB tables: one table that is named artists and one table that is named songs. The artists table has artistName as the partition key. The songs table has songName as the partition key and artistName as the sort key. The table usage patterns include the retrieval of multiple songs and artists in a single database operation from the webpage. The developer needs a way to retrieve this information with minimal network traffic and optimal application performance. Which solution will meet these requirements?

APerform a BatchGetltem operation that returns items from the two tables. Use the list
BCreate a local secondary index (LSI) on the songs table that uses artistName as the
CPerform a BatchGetitem operation on the songs table that uses the
DPerform a Scan operation on each table that filters by the list of
Question #133Part 3

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. Which solution will meet these requirements?

AUse a single stage in API Gateway. Create a Lambda function for each environment.
BUse multiple stages in API Gateway. Create a single Lambda function for all
CUse multiple stages in API Gateway. Create a Lambda function for each
DUse a single stage in API Gateway. Configure API clients to send a query parameter
Question #134Part 3

A developer creates an AWS Lambda function that retrieves and groups data from several public API endpoints. The Lambda function has been updated and configured to connect to the private subnet of a VPC. An internet gateway is attached to the VPC. The VPC uses the default network ACL and security group configurations. The developer finds that the Lambda function can no longer access the public API. The developer has ensured that the public API is accessible, but the Lambda function cannot connect to the API How should the developer fix the connection issue?

AEnsure that the network ACL allows outbound traffic to the public internet.
BEnsure that the security group allows outbound traffic to the public internet.
CEnsure that outbound traffic from the private subnet is routed to a public NAT
DEnsure that outbound traffic from the private subnet is routed to a new internet
Question #135Part 3

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

ACreate a standard parameter in AWS Systems Manager Parameter Store. Set
BCreate a standard parameter in AWS Systems Manager Parameter Store. Create an
CCreate an advanced parameter in AWS Systems Manager Parameter Store. Set
DCreate an advanced parameter in AWS Systems Manager Parameter Store. Create
Question #136Part 3

A company is developing a serverless application that consists of various AWS Lambda functions behind Amazon API Gateway APIs. A developer needs to automate the deployment of Lambda function code. The developer will deploy updated Lambda functions with AWS CodeDeploy. The deployment must minimize the exposure of potential errors to end users. When the application is in production, the application cannot experience downtime outside the specified maintenance window. Which deployment configuration will meet these requirements with the LEAST deployment time?

AUse the AWS CodeDeploy in-place deployment configuration for the Lambda
BUse the AWS CodeDeploy linear deployment configuration to shift 10% of the traffic
CUse the AWS CodeDeploy all-at-once deployment configuration to shift all traffic to
DUse the AWS CodeDeploy predefined canary deployment configuration to shift 10%
Question #137Part 3

A company created four AWS Lambda functions that connect to a relational database server that runs on an Amazon RDS instance. A security team requires the company to automatically change the database password every 30 days. Which solution will meet these requirements MOST securely?

AStore the database credentials in the environment variables of the Lambda function.
BStore the database credentials in AWS Secrets Manager. Configure a 30-day rotation
CStore the database credentials in AWS Systems Manager Parameter Store secure
DStore the database credentials in an Amazon S3 bucket that uses server-side
Question #138Part 3

A developer is setting up a deployment pipeline. The pipeline includes an AWS CodeBuild build stage that requires access to a database to run integration tests. The developer is using a buildspec.yml file to configure the database connection. Company policy requires automatic rotation of all database credentials. Which solution will handle the database credentials MOST securely?

ARetrieve the credentials from variables that are hardcoded in the buildspec.yml file.
BRetrieve the credentials from an environment variable that is linked to a SecureString
CRetrieve the credentials from an environment variable that is linked to an AWS
DRetrieve the credentials from an environment variable that contains the connection
Question #139Part 3

A company is developing a serverless multi-tier application on AWS. The company will build the serverless logic tier by using Amazon API Gateway and AWS Lambda. While the company builds the logic tier, a developer who works on the frontend of the application must develop integration tests. The tests must cover both positive and negative scenarios, depending on success and error HTTP status codes. Which solution will meet these requirements with the LEAST effort?

ASet up a mock integration for API methods in API Gateway. In the integration request
BCreate two mock integration resources for API methods in API Gateway. In the
CCreate Lambda functions to perform tests. Add simple logic to return either success
DCreate a Lambda function to perform tests. Add simple logic to return either success
Question #140Part 3

Users are reporting errors in an application. The application consists of several microservices that are deployed on Amazon Elastic Container Service (Amazon ECS) with AWS Fargate. Which combination of steps should a developer take to fix the errors? (Choose two.)

ADeploy AWS X-Ray as a sidecar container to the microservices. Update the task role
BDeploy AWS X-Ray as a daemonset to the Fargate cluster. Update the service role
CInstrument the application by using the AWS X-Ray SDK. Update the application to
DInstrument the application by using the AWS X-Ray SDK. Update the application to
EInstrument the ECS task to send the stdout and stderr output to Amazon CloudWatch
Question #141Part 3

A developer is creating an application for a company. The application needs to read the file doc.txt that is placed in the root folder of an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET. The company’s security team requires the principle of least privilege to be applied to the application’s IAM policy. Which IAM policy statement will meet these security requirements?

AB.
CD.
Question #142Part 3

A company has an application that uses AWS CodePipeline to automate its continuous integration and continuous delivery (CI/CD) workflow. The application uses AWS CodeCommit for version control. A developer who was working on one of the tasks did not pull the most recent changes from the main branch. A week later, the developer noticed merge conflicts. How can the developer resolve the merge conflicts in the developer's branch with the LEAST development effort?

AClone the repository. Create a new branch. Update the branch with the changes.
BCreate a new branch. Apply the changes from the previous branch.
CUse the Commit Visualizer view to compare the commits when a feature was added.
DStop the pull from the main branch to the feature branch. Rebase the feature branch
Question #143Part 3

A developer wants to add request validation to a production environment Amazon API Gateway API. The developer needs to test the changes before the API is deployed to the production environment. For the test, the developer will send test requests to the API through a testing tool. Which solution will meet these requirements with the LEAST operational overhead?

AExport the existing API to an OpenAPI file. Create a new API. Import the OpenAPI
BModify the existing API to add request validation. Deploy the updated API to a new
CCreate a new API. Add the necessary resources and methods, including new request
DClone the existing API. Modify the new API to add request validation. Perform the
Question #144Part 3

An online food company provides an Amazon API Gateway HTTP API to receive orders for partners. The API is integrated with an AWS Lambda function. The Lambda function stores the orders in an Amazon DynamoDB table. The company expects to onboard additional partners. Some of the partners require additional Lambda functions to receive orders. The company has created an Amazon S3 bucket. The company needs to store all orders and updates in the S3 bucket for future analysis. How can the developer ensure that all orders and updates are stored to Amazon S3 with the LEAST development effort?

ACreate a new Lambda function and a new API Gateway API endpoint. Configure the
BUse Amazon Kinesis Data Streams to create a new data stream. Modify the Lambda
CEnable DynamoDB Streams on the DynamoDB table. Create a new Lambda
DModify the Lambda function to publish to a new Amazon Simple Notification Service
Question #145Part 3Select 2

A company’s website runs on an Amazon EC2 instance and uses Auto Scaling to scale the environment during peak times. Website users across the world are experiencing high latency due to static content on the EC2 instance, even during non-peak hours. Which combination of steps will resolve the latency issue? (Choose two.)

ADouble the Auto Scaling group’s maximum number of servers.
BHost the application code on AWS Lambda.
CScale vertically by resizing the EC2 instances.
DCreate an Amazon CloudFront distribution to cache the static content.
EStore the application’s static content in Amazon S3.
Question #146Part 3

A company has an Amazon S3 bucket containing premier content that it intends to make available to only paid subscribers of its website. The S3 bucket currently has default permissions of all objects being private to prevent inadvertent exposure of the premier content to non-paying website visitors. How can the company limit the ability to download a premier content file in the S3 bucket to paid subscribers only?

AApply a bucket policy that allows anonymous users to download the content from the
BGenerate a pre-signed object URL for the premier content file when a paid subscriber
CAdd a bucket policy that requires multi-factor authentication for requests to access
DEnable server-side encryption on the S3 bucket for data protection against the
Question #147Part 3

A developer is creating an AWS Lambda function that searches for items from an Amazon DynamoDB table that contains customer contact information. The DynamoDB table items have the customer’s email_address as the partition key and additional properties such as customer_type, name and job_title. The Lambda function runs whenever a user types a new character into the customer_type text input. The developer wants the search to return partial matches of all the email_address property of a particular customer_type. The developer does not want to recreate the DynamoDB table. What should the developer do to meet these requirements?

AAdd a global secondary index (GSI) to the DynamoDB table with customer_type as
BAdd a global secondary index (GSI) to the DynamoDB table with email_address as
CAdd a local secondary index (LSI) to the DynamoDB table with customer_type as the
DAdd a local secondary index (LSI) to the DynamoDB table with job_title as the
Question #148Part 3

A developer is building an application that uses AWS API Gateway APIs, AWS Lambda functions, and AWS DynamoDB tables. The developer uses the AWS Serverless Application Model (AWS SAM) to build and run serverless applications on AWS. Each time the developer pushes changes for only to the Lambda functions, all the artifacts in the application are rebuilt. The developer wants to implement AWS SAM Accelerate by running a command to only redeploy the Lambda functions that have changed. Which command will meet these requirements?

Asam deploy --force-upload
Bsam deploy --no-execute-changeset
Csam package
Dsam sync --watch
Question #149Part 3

A developer is building an application that gives users the ability to view bank accounts from multiple sources in a single dashboard. The developer has automated the process to retrieve API credentials for these sources. The process invokes an AWS Lambda function that is associated with an AWS CloudFormation custom resource. The developer wants a solution that will store the API credentials with minimal operational overhead. Which solution will meet these requirements in the MOST secure way?

AAdd an AWS Secrets Manager GenerateSecretString resource to the
BUse the AWS SDK ssm:PutParameter operation in the Lambda function from the
CAdd an AWS Systems Manager Parameter Store resource to the CloudFormation
DUse the AWS SDK ssm:PutParameter operation in the Lambda function from the
Question #150Part 3

A developer is trying to get data from an Amazon DynamoDB table called demoman-table. The developer configured the AWS CLI to use a specific IAM user’s credentials and ran the following command: aws dynamodb get-item --table-name demoman-table --key '{"id": {"N":"1993"}}' The command returned errors and no rows were returned. What is the MOST likely cause of these issues?

AThe command is incorrect; it should be rewritten to use put-item with a string
BThe developer needs to log a ticket with AWS Support to enable access to the
CAmazon DynamoDB cannot be accessed from the AWS CLI and needs to be called
DThe IAM user needs an associated policy with read access to demoman-table.
Question #151Part 3Select 2

An organization is using Amazon CloudFront to ensure that its users experience low-latency access to its web application. The organization has identified a need to encrypt all traffic between users and CloudFront, and all traffic between CloudFront and the web application. How can these requirements be met? (Choose two.)

AUse AWS KMS to encrypt traffic between CloudFront and the web application.
BSet the Origin Protocol Policy to “HTTPS Only”.
CSet the Origin’s HTTP Port to 443.
DSet the Viewer Protocol Policy to “HTTPS Only” or “Redirect HTTP to HTTPS”.
EEnable the CloudFront option Restrict Viewer Access.
Question #152Part 3

A developer is planning to migrate on-premises company data to Amazon S3. The data must be encrypted, and the encryption keys must support automatic annual rotation. The company must use AWS Key Management Service (AWS KMS) to encrypt the data. Which type of keys should the developer use to meet these requirements?

AAmazon S3 managed keys
BSymmetric customer managed keys with key material that is generated by AWS
CAsymmetric customer managed keys with key material that is generated by AWS
DSymmetric customer managed keys with imported key material
Question #153Part 3

A team of developers 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. Which solution will meet this requirement with the LEAST operational effort?

AWrite a Git pre-commit hook that runs the tests before every commit. Ensure that
BAdd a new stage to the pipeline. Use AWS CodeBuild as the provider. Add the new
CAdd a new stage to the pipeline. Use AWS CodeBuild as the provider. Add the new
DAdd a new stage to the pipeline. Use Jenkins as the provider. Configure
Question #154Part 3

A company has multiple Amazon VPC endpoints in the same VPC. A developer needs to configure an Amazon S3 bucket policy so users can access an S3 bucket only by using these VPC endpoints. Which solution will meet these requirements?

ACreate multiple S3 bucket polices by using each VPC endpoint ID that have the
BCreate a single S3 bucket policy that has the aws:SourceVpc value and in the
CCreate a single S3 bucket policy that has the aws:SourceVpce value and in the
DCreate a single S3 bucket policy that has multiple aws:sourceVpce value in the
Question #155Part 3Select 2

A company uses a custom root certificate authority certificate chain (Root CA Cert) that is 10 KB in size to generate SSL certificates for its on-premises HTTPS endpoints. One of the company’s cloud-based applications has hundreds of AWS Lambda functions that pull data from these endpoints. A developer updated the trust store of the Lambda execution environment to use the Root CA Cert when the Lambda execution environment is initialized. The developer bundled the Root CA Cert as a text file in the Lambda deployment bundle. After 3 months of development, the Root CA Cert is no longer valid and must be updated. The developer needs a more efficient solution to update the Root CA Cert for all deployed Lambda functions. The solution must not include rebuilding or updating all Lambda functions that use the Root CA Cert. The solution must also work for all development, testing, and production environments. Each environment is managed in a separate AWS account. Which combination of steps should the developer take to meet these requirements MOST cost-effectively? (Choose two.)

AStore the Root CA Cert as a secret in AWS Secrets Manager. Create a
BStore the Root CA Cert as a SecureString parameter in AWS Systems Manager
CStore the Root CA Cert in an Amazon S3 bucket. Create a resource-based policy to
DRefactor the Lambda code to load the Root CA Cert from the Root CA Cert’s
ERefactor the Lambda code to load the Root CA Cert from the Root CA Cert’s
Question #156Part 3

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?

AConfigure an AWS CloudTrail log file delivery to an Amazon S3 bucket. Create an
BCreate a secretsmanager-secret-unused AWS Config managed rule. Create an
CDeactivate the applications secrets and monitor the applications error logs
DConfigure AWS X-Ray for the applications. Create a sampling rule to match the
Question #157Part 3

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?

ADeploy an Amazon EC2 instance based on Linux, and edit its /etc/crontab file by
BConfigure an environment variable named PERIOD for the Lambda function. Set the
CCreate an Amazon EventBridge rule that runs on a regular schedule to invoke the
DCreate an Amazon Simple Notification Service (Amazon SNS) topic that has a
Question #158Part 3

A company is using Amazon OpenSearch Service to implement an audit monitoring system. A developer needs to create an AWS CloudFormation custom resource that is associated with an AWS Lambda function to configure the OpenSearch Service domain. The Lambda function must access the OpenSearch Service domain by using OpenSearch Service internal master user credentials. What is the MOST secure way to pass these credentials to the Lambda function?

AUse a CloudFormation parameter to pass the master user credentials at deployment
BUse a CloudFormation parameter to pass the master user credentials at deployment
CUse a CloudFormation parameter to pass the master user credentials at deployment
DUse CloudFormation to create an AWS Secrets Manager secret. Use a
Question #159Part 3

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?

AWrite data to Amazon ElastiCache.
BWrite data to Amazon Elastic Block Store.
CWrite data to Amazon EC2 Instance Store.
DWrite data to the root filesystem.
Question #160Part 3

An ecommerce application is running behind an Application Load Balancer. A developer observes some unexpected load on the application during non-peak hours. The developer wants to analyze patterns for the client IP addresses that use the application. Which HTTP header should the developer use for this analysis?

AThe X-Forwarded-Proto header
BThe X-Forwarded-Host header
CThe X-Forwarded-For header
DThe X-Forwarded-Port header
Question #161Part 3

A developer migrated a legacy application to an AWS Lambda function. The function uses a third-party service to pull data with a series of API calls at the end of each month. The function then processes the data to generate the monthly reports. The function has been working with no issues so far. The third-party service recently issued a restriction to allow a fixed number of API calls each minute and each day. If the API calls exceed the limit for each minute or each day, then the service will produce errors. The API also provides the minute limit and daily limit in the response header. This restriction might extend the overall process to multiple days because the process is consuming more API calls than the available limit. What is the MOST operationally efficient way to refactor the serverless application to accommodate this change?

AUse an AWS Step Functions state machine to monitor API failures. Use the Wait
BUse an Amazon Simple Queue Service (Amazon SQS) queue to hold the API calls.
CUse an Amazon CloudWatch Logs metric to count the number of API calls. Configure
DUse Amazon Kinesis Data Firehose to batch the API calls and deliver them to an
Question #162Part 3

A developer must analyze performance issues with production-distributed applications written as AWS Lambda functions. These distributed Lambda applications invoke other components that make up the applications. How should the developer identify and troubleshoot the root cause of the performance issues in production?

AAdd logging statements to the Lambda functions, then use Amazon CloudWatch to
BUse AWS CloudTrail and then examine the logs.
CUse AWS X-Ray, then examine the segments and errors.
DRun Amazon Inspector agents and then analyze performance.
Question #163Part 3

A developer wants to deploy a new version of an AWS Elastic Beanstalk application. During deployment, the application must maintain full capacity and avoid service interruption. Additionally, the developer must minimize the cost of additional resources that support the deployment. Which deployment method should the developer use to meet these requirements?

AAll at once
BRolling with additional batch
CBlue/green
DImmutable
Question #164Part 3

A developer has observed an increase in bugs in the AWS Lambda functions that a development team has deployed in its Node.js application. To minimize these bugs, the developer wants to implement automated testing of Lambda functions in an environment that closely simulates the Lambda environment. The developer needs to give other developers the ability to run the tests locally. The developer also needs to integrate the tests into the team’s continuous integration and continuous delivery (CI/CD) pipeline before the AWS Cloud Development Kit (AWS CDK) deployment. Which solution will meet these requirements?

ACreate sample events based on the Lambda documentation. Create automated test
BInstall a unit testing framework that reproduces the Lambda execution environment.
CInstall the AWS Serverless Application Model (AWS SAM) CLI tool. Use the sam
DCreate sample events based on the Lambda documentation. Create a Docker
Question #165Part 3

A developer is troubleshooting an application that uses Amazon DynamoDB in the us-west-2 Region. The application is deployed to an Amazon EC2 instance. The application requires read-only permissions to a table that is named Cars. The EC2 instance has an attached IAM role that contains the following IAM policy: When the application tries to read from the Cars table, an Access Denied error occurs. How can the developer resolve this error?

AModify the IAM policy resource to be
BModify the IAM policy to include the dynamodb:* action.
CCreate a trust policy that specifies the EC2 service principal. Associate the role with
DCreate a trust relationship between the role and dynamodb.amazonaws.com.
Question #166Part 3

When using the AWS Encryption SDK, how does the developer keep track of the data encryption keys used to encrypt data?

AThe developer must manually keep track of the data encryption keys used for each
BThe SDK encrypts the data encryption key and stores it (encrypted) as part of the
CThe SDK stores the data encryption keys automatically in Amazon S3.
DThe data encryption key is stored in the Userdata for the EC2 instance.
Question #167Part 3

An application that runs on AWS Lambda requires access to specific highly confidential objects in an Amazon S3 bucket. In accordance with the principle of least privilege, a company grants access to the S3 bucket by using only temporary credentials. How can a developer configure access to the S3 bucket in the MOST secure way?

AHardcode the credentials that are required to access the S3 objects in the application
BCreate a secret access key and access key ID with permission to access the S3
CCreate a Lambda function execution role. Attach a policy to the role that grants
DCreate a secret access key and access key ID with permission to access the S3
Question #168Part 3

A developer has code that is stored in an Amazon S3 bucket. The code must be deployed as an AWS Lambda function across multiple accounts in the same AWS Region as the S3 bucket. An AWS CloudFormation template that runs for each account will deploy the Lambda function. What is the MOST secure way to allow CloudFormation to access the Lambda code in the S3 bucket?

AGrant the CloudFormation service role the S3 ListBucket and GetObject permissions.
BGrant the CloudFormation service role the S3 GetObject permission. Add a bucket
CUse a service-based link to grant the Lambda function the S3 ListBucket and
DUse a service-based link to grant the Lambda function the S3 GetObject permission.
Question #169Part 3

A developer at a company needs to create a small application that makes the same API call once each day at a designated time. The company does not have infrastructure in the AWS Cloud yet, but the company wants to implement this functionality on AWS. Which solution meets these requirements in the MOST operationally efficient manner?

AUse a Kubernetes cron job that runs on Amazon Elastic Kubernetes Service
BUse an Amazon Linux crontab scheduled job that runs on Amazon EC2.
CUse an AWS Lambda function that is invoked by an Amazon EventBridge scheduled
DUse an AWS Batch job that is submitted to an AWS Batch job queue.
Question #170Part 3

A developer is building a serverless application that is based on AWS Lambda. The developer initializes the AWS software development kit (SDK) outside of the Lambda handler function. What is the PRIMARY benefit of this action?

AImproves legibility and stylistic convention
BTakes advantage of runtime environment reuse
CProvides better error handling
DCreates a new SDK instance for each invocation
Question #171Part 3

A company is using Amazon RDS as the backend database for its application. After a recent marketing campaign, a surge of read requests to the database increased the latency of data retrieval from the database. The company has decided to implement a caching layer in front of the database. The cached content must be encrypted and must be highly available. Which solution will meet these requirements?

AAmazon CloudFront
BAmazon ElastiCache for Memcached
CAmazon ElastiCache for Redis in cluster mode
DAmazon DynamoDB Accelerator (DAX)
Question #172Part 3

A developer at a company recently created a serverless application to process and show data from business reports. The application’s user interface (UI) allows users to select and start processing the files. The UI displays a message when the result is available to view. The application uses AWS Step Functions with AWS Lambda functions to process the files. The developer used Amazon API Gateway and Lambda functions to create an API to support the UI. The company’s UI team reports that the request to process a file is often returning timeout errors because of the size or complexity of the files. The UI team wants the API to provide an immediate response so that the UI can display a message while the files are being processed. The backend process that is invoked by the API needs to send an email message when the report processing is complete. What should the developer do to configure the API to meet these requirements?

AChange the API Gateway route to add an X-Amz-Invocation-Type header with a
BChange the configuration of the Lambda function that implements the request to
CChange the API Gateway timeout value to match the Lambda function timeout value.
DChange the API Gateway route to add an X-Amz-Target header with a static value of
Question #173Part 3

A developer has an application that is composed of many different AWS Lambda functions. The Lambda functions all use some of the same dependencies. To avoid security issues, the developer is constantly updating the dependencies of all of the Lambda functions. The result is duplicated effort for each function. How can the developer keep the dependencies of the Lambda functions up to date with the LEAST additional complexity?

ADefine a maintenance window for the Lambda functions to ensure that the functions
BUpgrade the Lambda functions to the most recent runtime version.
CDefine a Lambda layer that contains all of the shared dependencies.
DUse an AWS CodeCommit repository to host the dependencies in a centralized
Question #174Part 3

A mobile app stores blog posts in an Amazon DynamoDB table. Millions of posts are added every day, and each post represents a single item in the table. The mobile app requires only recent posts. Any post that is older than 48 hours can be removed. What is the MOST cost-effective way to delete posts that are older than 48 hours?

AFor each item, add a new attribute of type String that has a timestamp that is set to
BFor each item, add a new attribute of type String that has a timestamp that is set to
CFor each item, add a new attribute of type Date that has a timestamp that is set to 48
DFor each item, add a new attribute of type Number that has a timestamp that is set to
Question #175Part 3

A developer is modifying an existing AWS Lambda function. While checking the code, the developer notices hardcoded parameter values for an Amazon RDS for SQL Server user name, password, database, host, and port. There are also hardcoded parameter values for an Amazon DynamoDB table, an Amazon S3 bucket, and an Amazon Simple Notification Service (Amazon SNS) topic. The developer wants to securely store the parameter values outside the code in an encrypted format and wants to turn on rotation for the credentials. The developer also wants to be able to reuse the parameter values from other applications and to update the parameter values without modifying code. Which solution will meet these requirements with the LEAST operational overhead?

ACreate an RDS database secret in AWS Secrets Manager. Set the user name,
BCreate an RDS database secret in AWS Secrets Manager. Set the user name,
CCreate RDS database parameters in AWS Systems Manager Parameter Store for
DCreate RDS database parameters in AWS Systems Manager Parameter Store for
Question #176Part 3

A developer accesses AWS CodeCommit over SSH. The SSH keys configured to access AWS CodeCommit are tied to a user with the following permissions: The developer needs to create/delete branches. Which specific IAM permissions need to be added, based on the principle of least privilege?

A"codecommit:CreateBranch"
B"codecommit:Put*"
C"codecommit:Update*"
D"codecommit:*"
Question #177Part 3Select 2

An application that is deployed to Amazon EC2 is using Amazon DynamoDB. The application 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? (Choose two.)

AModify the application code to perform exponential backoff when the error is
BModify the application to use the AWS SDKs for DynamoDB.
CIncrease the read and write throughput of the DynamoDB table.
DCreate a DynamoDB Accelerator (DAX) cluster for the DynamoDB table.
ECreate a second DynamoDB table. Distribute the reads and writes between the two
Question #178Part 3

When a developer tries to run an AWS CodeBuild project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters. What is the recommended solution?

AAdd the export LC_ALL="en_US.utf8" command to the pre_build section to ensure
BUse Amazon Cognito to store key-value pairs for large numbers of environment
CUpdate the settings for the build project to use an Amazon S3 bucket for large
DUse AWS Systems Manager Parameter Store to store large numbers of environment
Question #179Part 3

A company is expanding the compatibility of its photo-sharing mobile app to hundreds of additional devices with unique screen dimensions and resolutions. Photos are stored in Amazon S3 in their original format and resolution. The company uses an Amazon CloudFront distribution to serve the photos. The app includes the dimension and resolution of the display as GET parameters with every request. A developer needs to implement a solution that optimizes the photos that are served to each device to reduce load time and increase photo quality. Which solution will meet these requirements MOST cost-effectively?

AUse S3 Batch Operations to invoke an AWS Lambda function to create new variants
BUse S3 Batch Operations to invoke an AWS Lambda function to create new variants
CCreate a Lambda@Edge function that optimizes the photos upon request and returns
DCreate a Lambda@Edge function that optimizes the photos upon request and returns
Question #180Part 3

A company is building an application for stock trading. The application needs sub-millisecond latency for processing trade requests. The company uses Amazon DynamoDB to store all the trading data that is used to process each trading request. A development team performs load testing on the application and finds that the data retrieval time is higher than expected. The development team needs a solution that reduces the data retrieval time with the least possible effort. Which solution meets these requirements?

AAdd local secondary indexes (LSIs) for the trading data.
BStore the trading data in Amazon S3, and use S3 Transfer Acceleration.
CAdd retries with exponential backoff for DynamoDB queries.
DUse DynamoDB Accelerator (DAX) to cache the trading data.
Question #181Part 4Select 2

A developer is working on a Python application that runs on Amazon EC2 instances. The developer wants to enable tracing of application requests to debug performance issues in the code. Which combination of actions should the developer take to achieve this goal? (Choose two.)

AInstall the Amazon CloudWatch agent on the EC2 instances.
BInstall the AWS X-Ray daemon on the EC2 instances.
CConfigure the application to write JSON-formatted logs to /var/log/cloudwatch.
DConfigure the application to write trace data to /var/log/xray.
EInstall and configure the AWS X-Ray SDK for Python in the application.
Question #182Part 4

A company has an application that runs as a series of AWS Lambda functions. Each Lambda function receives data from an Amazon Simple Notification Service (Amazon SNS) topic and writes the data to an Amazon Aurora DB instance. To comply with an information security policy, the company must ensure that the Lambda functions all use a single securely encrypted database connection string to access Aurora. Which solution will meet these requirements?

AUse IAM database authentication for Aurora to enable secure database connections
BStore the credentials and read the credentials from an encrypted Amazon RDS DB
CStore the credentials in AWS Systems Manager Parameter Store as a secure string
DUse Lambda environment variables with a shared AWS Key Management Service
Question #183Part 4

A developer is troubleshooting an Amazon API Gateway API. Clients are receiving HTTP 400 response errors when the clients try to access an endpoint of the API. How can the developer determine the cause of these errors?

ACreate an Amazon Kinesis Data Firehose delivery stream to receive API call logs
BTurn on AWS CloudTrail Insights and create a trail. Specify the Amazon Resource
CTurn on AWS X-Ray for the API stage. Create an Amazon CloudWatch Logs log
DTurn on execution logging and access logging in Amazon CloudWatch Logs for the
Question #184Part 4

A company developed an API application on AWS by using Amazon CloudFront, Amazon API Gateway, and AWS Lambda. The API has a minimum of four requests every second. A developer notices that many API users run the same query by using the POST method. The developer wants to cache the POST request to optimize the API resources. Which solution will meet these requirements?

AConfigure the CloudFront cache. Update the application to return cached content
BOverride the cache method in the selected stage of API Gateway. Select the POST
CSave the latest request response in Lambda /tmp directory. Update the Lambda
DSave the latest request in AWS Systems Manager Parameter Store. Modify the
Question #185Part 4Select 2

A company is building a microservices application that consists of many AWS Lambda functions. The development team wants to use AWS Serverless Application Model (AWS SAM) templates to automatically test the Lambda functions. The development team plans to test a small percentage of traffic that is directed to new updates before the team commits to a full deployment of the application. Which combination of steps will meet these requirements in the MOST operationally efficient way? (Choose two.)

AUse AWS SAM CLI commands in AWS CodeDeploy to invoke the Lambda functions
BDeclare the EventInvokeConfig on the Lambda functions in the AWS SAM templates
CEnable gradual deployments through AWS SAM templates.
DSet the deployment preference type to Canary10Percent30Minutes. Use hooks to
ESet the deployment preference type to Linear10PercentEvery10Minutes. Use hooks
Question #186Part 4

A company is using AWS CloudFormation to deploy a two-tier application. The application will use Amazon RDS as its backend database. The company wants a solution that will randomly generate the database password during deployment. The solution also must automatically rotate the database password without requiring changes to the application. What is the MOST operationally efficient solution that meets these requirements?

AUse an AWS Lambda function as a CloudFormation custom resource to generate
BUse an AWS Systems Manager Parameter Store resource with the SecureString
CUse a cron daemon on the application’s host to generate and rotate the password.
DUse an AWS Secrets Manager resource to generate and rotate the password.
Question #187Part 4

A developer has been asked to create an AWS Lambda function that is invoked any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being invoked. Which option would enable DynamoDB table updates to invoke the Lambda function?

AChange the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the
BConfigure event source mapping for the Lambda function.
CMap an Amazon Simple Notification Service (Amazon SNS) topic to the DynamoDB
DIncrease the maximum runtime (timeout) setting of the Lambda function.
Question #188Part 4

A developer needs to deploy an application running on AWS Fargate using Amazon ECS. The application has environment variables that must be passed to a container for the application to initialize. How should the environment variables be passed to the container?

ADefine an array that includes the environment variables under the environment
BDefine an array that includes the environment variables under the environment
CDefine an array that includes the environment variables under the entryPoint
DDefine an array that includes the environment variables under the entryPoint
Question #189Part 4Select 2

A development team maintains a web application by using a single AWS RDS, template. The template defines web servers and an Amazon RDS database. The team uses the CloudFormation template to deploy the CloudFormation stack to different environments. During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future. Which solutions will meet these requirements? (Choose two.)

AAdd a CloudFormation DeletionPolicy attribute with the Retain value to the database
BUpdate the CloudFormation stack policy to prevent updates to the database.
CModify the database to use a Multi-AZ deployment.
DCreate a CloudFormation stack set for the web application and database
EAdd a CloudFormation DeletionPolicy attribute with the Retain value to the stack.
Question #190Part 4

A developer is storing sensitive data generated by an application in Amazon S3. The developer wants to encrypt the data at rest. A company policy requires an audit trail of when the AWS Key Management Service (AWS KMS) key was used and by whom. Which encryption option will meet these requirements?

AServer-side encryption with Amazon S3 managed keys (SSE-S3)
BServer-side encryption with AWS KMS managed keys (SSE-KMS)
CServer-side encryption with customer-provided keys (SSE-C)
DServer-side encryption with self-managed keys
Question #191Part 4

A company has an ecommerce application. To track product reviews, the company’s development team uses an Amazon DynamoDB table. Every record includes the following: • A Review ID, a 16-digit universally unique identifier (UUID) • A Product ID and User ID, 16-digit UUIDs that reference other tables • A Product Rating on a scale of 1-5 • An optional comment from the user The table partition key is the Review ID. The most performed query against the table is to find the 10 reviews with the highest rating for a given product. Which index will provide the FASTEST response for this query?

AA global secondary index (GSI) with Product ID as the partition key and Product
BA global secondary index (GSI) with Product ID as the partition key and Review ID as
CA local secondary index (LSI) with Product ID as the partition key and Product Rating
DA local secondary index (LSI) with Review ID as the partition key and Product ID as
Question #192Part 4

A company needs to distribute firmware updates to its customers around the world. Which service will allow easy and secure control of the access to the downloads at the lowest cost?

AUse Amazon CloudFront with signed URLs for Amazon S3.
BCreate a dedicated Amazon CloudFront Distribution for each customer.
CUse Amazon CloudFront with AWS Lambda@Edge.
DUse Amazon API Gateway and AWS Lambda to control access to an S3 bucket.
Question #193Part 4

A developer is testing an application that invokes an AWS Lambda function asynchronously. During the testing phase, the Lambda function fails to process after two retries. How can the developer troubleshoot the failure?

AConfigure AWS CloudTrail logging to investigate the invocation failures.
BConfigure Dead Letter Queues by sending events to Amazon SQS for investigation.
CConfigure Amazon Simple Workflow Service to process any direct unprocessed
DConfigure AWS Config to process any direct unprocessed events.
Question #194Part 4

A company is migrating its PostgreSQL database into the AWS Cloud. The company wants to use a database that will secure and regularly rotate database credentials. The company wants a solution that does not require additional programming overhead. Which solution will meet these requirements?

AUse Amazon Aurora PostgreSQL for the database. Store the database credentials in
BUse Amazon Aurora PostgreSQL for the database. Store the database credentials in
CUse Amazon DynamoDB for the database. Store the database credentials in AWS
DUse Amazon DynamoDB for the database. Store the database credentials in AWS
Question #195Part 4

A developer is creating a mobile application that will not require users to log in. What is the MOST efficient method to grant users access to AWS resources?

AUse an identity provider to securely authenticate with the application.
BCreate an AWS Lambda function to create an IAM user when a user accesses the
CCreate credentials using AWS KMS and apply these credentials to users when using
DUse Amazon Cognito to associate unauthenticated users with an IAM role that has
Question #196Part 4

A company has developed a new serverless application using AWS Lambda functions that will be deployed using the AWS Serverless Application Model (AWS SAM) CLI. Which step should the developer complete prior to deploying the application?

ACompress the application to a .zip file and upload it into AWS Lambda.
BTest the new AWS Lambda function by first tracing it in AWS X-Ray.
CBundle the serverless application using a SAM package.
DCreate the application environment using the eb create my-env command.
Question #197Part 4

A company wants to automate part of its deployment process. A developer needs to automate the process of checking for and deleting unused resources that supported previously deployed stacks but that are no longer used. The company has a central application that uses the AWS Cloud Development Kit (AWS CDK) to manage all deployment stacks. The stacks are spread out across multiple accounts. The developer’s solution must integrate as seamlessly as possible within the current deployment process. Which solution will meet these requirements with the LEAST amount of configuration?

AIn the central AWS CDK application, write a handler function in the code that uses
BIn the central AWS CDK application, write a handler function in the code that uses
CIn the central AWS CDK, write a handler function in the code that uses AWS SDK
DIn the AWS Lambda console, write a handler function in the code that uses AWS
Question #198Part 4

A company built a new application in the AWS Cloud. The company automated the bootstrapping of new resources with an Auto Scaling group by using AWS CloudFormation templates. The bootstrap scripts contain sensitive data. The company needs a solution that is integrated with CloudFormation to manage the sensitive data in the bootstrap scripts. Which solution will meet these requirements in the MOST secure way?

APut the sensitive data into a CloudFormation parameter. Encrypt the CloudFormation
BPut the sensitive data into an Amazon S3 bucket. Update the CloudFormation
CPut the sensitive data into AWS Systems Manager Parameter Store as a secure
DPut the sensitive data into Amazon Elastic File System (Amazon EFS). Enforce EFS
Question #199Part 4

A company needs to set up secure database credentials for all its AWS Cloud resources. The company’s resources include Amazon RDS DB instances, Amazon DocumentDB clusters, and Amazon Aurora DB instances. The company’s security policy mandates that database credentials be encrypted at rest and rotated at a regular interval. Which solution will meet these requirements MOST securely?

ASet up IAM database authentication for token-based access. Generate user tokens to
BCreate parameters for the database credentials in AWS Systems Manager
CStore the database access credentials as an encrypted Amazon S3 object in an S3
DCreate an AWS Lambda function by using the SecretsManagerRotationTemplate
Question #200Part 4

A developer has created an AWS Lambda function that makes queries to an Amazon Aurora MySQL DB instance. When the developer performs a test, the DB instance shows an error for too many connections. Which solution will meet these requirements with the LEAST operational effort?

ACreate a read replica for the DB instance. Query the replica DB instance instead of
BMigrate the data to an Amazon DynamoDB database.
CConfigure the Amazon Aurora MySQL DB instance for Multi-AZ deployment.
DCreate a proxy in Amazon RDS Proxy. Query the proxy instead of the DB instance.
Question #201Part 4

A developer is creating a new REST API by using Amazon API Gateway and AWS Lambda. The development team tests the API and validates responses for the known use cases before deploying the API to the production environment. The developer wants to make the REST API available for testing by using API Gateway locally. Which AWS Serverless Application Model Command Line Interface (AWS SAM CLI) subcommand will meet these requirements?

ASam local invoke
BSam local generate-event
CSam local start-lambda
DSam local start-api
Question #202Part 4

A company has a serverless application on AWS that uses a fleet of AWS Lambda functions that have aliases. The company regularly publishes new Lambda function by using an in-house deployment solution. The company wants to improve the release process and to use traffic shifting. A newly published function version should initially make available only to a fixed percentage of production users. Which solution will meet these requirements?

AConfigure routing on the alias of the new function by using a weighted alias.
BConfigure a canary deployment type for Lambda.
CConfigure routing on the new versions by using environment variables.
DConfigure a linear deployment type for Lambda.
Question #203Part 4

A company has an application that stores data in Amazon RDS instances. The application periodically experiences surges of high traffic that cause performance problems. During periods of peak traffic, a developer notices a reduction in query speed in all database queries. The team’s technical lead determines that a multi-threaded and scalable caching solution should be used to offload the heavy read traffic. The solution needs to improve performance. Which solution will meet these requirements with the LEAST complexity?

AUse Amazon ElastiCache for Memcached to offload read requests from the main
BReplicate the data to Amazon DynamoDSet up a DynamoDB Accelerator (DAX)
CConfigure the Amazon RDS instances to use Multi-AZ deployment with one standby
DUse Amazon ElastiCache for Redis to offload read requests from the main database.
Question #204Part 4

A developer must provide an API key to an AWS Lambda function to authenticate with a third-party system. The Lambda function will run on a schedule. The developer needs to ensure that the API key remains encrypted at rest. Which solution will meet these requirements?

AStore the API key as a Lambda environment variable by using an AWS Key
BConfigure the application to prompt the user to provide the password to the Lambda
CStore the API key as a value in the application code.
DUse Lambda@Edge and only communicate over the HTTPS protocol.
Question #205Part 4

An IT department uses Amazon S3 to store sensitive images. After more than 1 year, the company moves the images into archival storage. The company rarely accesses the images, but the company wants a storage solution that maximizes resiliency. The IT department needs access to the images that have been moved to archival storage within 24 hours. Which solution will meet these requirements MOST cost-effectively?

AUse S3 Standard-Infrequent Access (S3 Standard-IA) to store the images. Use S3
BUse S3 Standard-Infrequent Access (S3 Standard-IA) to store the images. Use S3
CUse S3 Intelligent-Tiering to store the images. Use S3 Glacier Deep Archive with
DUse S3 One Zone-Infrequent Access (S3 One Zone-IA) to store the images. Use S3
Question #206Part 4

A developer is building a serverless application by using the AWS Serverless Application Model (AWS SAM). The developer is currently testing the application in a development environment. When the application is nearly finished, the developer will need to set up additional testing and staging environments for a quality assurance team. The developer wants to use a feature of the AWS SAM to set up deployments to multiple environments. Which solution will meet these requirements with the LEAST development effort?

AAdd a configuration file in TOML format to group configuration entries to every
BCreate additional AWS SAM templates for each testing and staging environment.
CCreate one AWS SAM configuration file that has default parameters. Perform
DUse the existing AWS SAM template. Add additional parameters to configure specific
Question #207Part 4

A developer is working on an application that processes operating data from IoT devices. Each IoT device uploads a data file once every hour to an Amazon S3 bucket. The developer wants to immediately process each data file when the data file is uploaded to Amazon S3. The developer will use an AWS Lambda function to process the data files from Amazon S3. The Lambda function is configured with the S3 bucket information where the files are uploaded. The developer wants to configure the Lambda function to immediately invoke after each data file is uploaded. Which solution will meet these requirements?

AAdd an asynchronous invocation to the Lambda function. Select the S3 bucket as the
BAdd an Amazon EventBridge event to the Lambda function. Select the S3 bucket as
CAdd a trigger to the Lambda function. Select the S3 bucket as the source.
DAdd a layer to the Lambda function. Select the S3 bucket as the source.
Question #208Part 4

A developer is setting up infrastructure by using AWS CloudFormation. If an error occurs when the resources described in the Cloud Formation template are provisioned, successfully provisioned resources must be preserved. The developer must provision and update the CloudFormation stack by using the AWS CLI. Which solution will meet these requirements?

AAdd an --enable-termination-protection command line option to the create-stack
BAdd a --disable-rollback command line option to the create-stack command and the
CAdd a --parameters ParameterKey=PreserveResources,ParameterValue=True
DAdd a --tags Key=PreserveResources,Value=True command line option to the
Question #209Part 4

A developer is building a serverless application that connects to an Amazon Aurora PostgreSQL database. The serverless application consists of hundreds of AWS Lambda functions. During every Lambda function scale out, a new database connection is made that increases database resource consumption. The developer needs to decrease the number of connections made to the database. The solution must not impact the scalability of the Lambda functions. Which solution will meet these requirements?

AConfigure provisioned concurrency for each Lambda function by setting the
BEnable cluster cache management for Aurora PostgreSQL. Change the connection
CUse Amazon RDS Proxy to create a connection pool to manage the database
DConfigure reserved concurrency for each Lambda function by setting the
Question #210Part 4

A developer is preparing to begin development of a new version of an application. The previous version of the application is deployed in a production environment. The developer needs to deploy fixes and updates to the current version during the development of the new version of the application. The code for the new version of the application is stored in AWS CodeCommit. Which solution will meet these requirements?

AFrom the main branch, create a feature branch for production bug fixes. Create a
BCreate a Git tag of the code that is currently deployed in production. Create a Git tag
CFrom the main branch, create a branch of the code that is currently deployed in
DCreate a new CodeCommit repository for development of the new version of the
Question #211Part 4

A developer is creating an AWS CloudFormation stack. The stack contains IAM resources with custom names. When the developer tries to deploy the stack, they receive an InsufficientCapabilities error. What should the developer do to resolve this issue?

ASpecify the CAPABILITY_AUTO_EXPAND capability in the CloudFormation stack.
BUse an administrators role to deploy IAM resources with CloudFormation.
CSpecify the CAPABILITY_IAM capability in the CloudFormation stack.
DSpecify the CAPABILITY_NAMED_IAM capability in the CloudFormation stack.
Question #212Part 4

A company uses Amazon API Gateway to expose a set of APIs to customers. The APIs have caching enabled in API Gateway. Customers need a way to invalidate the cache for each API when they test the API. What should a developer do to give customers the ability to invalidate the API cache?

AAsk the customers to use AWS credentials to call the InvalidateCache API operation.
BAttach an InvalidateCache policy to the IAM execution role that the customers use to
CAsk the customers to use the AWS SDK API Gateway class to invoke the
DAttach an InvalidateCache policy to the IAM execution role that the customers use to
Question #213Part 4

A developer is creating an AWS Lambda function that will generate and export a file. The function requires 100 MB of temporary storage for temporary files while running. These files will not be needed after the function is complete. How can the developer MOST efficiently handle the temporary files?

AStore the files in Amazon Elastic Block Store (Amazon EBS) and delete the files at
BCopy the files to Amazon Elastic File System (Amazon EFS) and delete the files at
CStore the files in the /tmp directory and delete the files at the end of the Lambda
DCopy the files to an Amazon S3 bucket with a lifecycle policy to delete the files.
Question #214Part 4

A company uses Amazon DynamoDB as a data store for its order management system. The company frontend application stores orders in a DynamoDB table. The DynamoDB table is configured to send change events to a DynamoDB stream. The company uses an AWS Lambda function to log and process the incoming orders based on data from the DynamoDB stream. An operational review reveals that the order quantity of incoming orders is sometimes set to 0. A developer needs to create a dashboard that will show how many unique customers this problem affects each day. What should the developer do to implement the dashboard?

AGrant the Lambda function’s execution role permissions to upload logs to Amazon
BUse Amazon Athena to query AWS CloudTrail API logs for API calls. Implement an
CConfigure the Lambda function to send events to Amazon EventBridge. Create an
DTurn on custom Amazon CloudWatch metrics for the DynamoDB stream of the
Question #215Part 4Select 2

A developer needs to troubleshoot an AWS Lambda function in a development environment. The Lambda function is configured in VPC mode and needs to connect to an existing Amazon RDS for SQL Server DB instance. The DB instance is deployed in a private subnet and accepts connections by using port 1433. When the developer tests the function, the function reports an error when it tries to connect to the database. Which combination of steps should the developer take to diagnose this issue? (Choose two.)

ACheck that the function’s security group has outbound access on port 1433 to the DB
BCheck that the function’s security group has inbound access on port 1433 from the
CCheck that the VPC is set up for a NAT gateway. Check that the DB instance has the
DCheck that the function’s execution role permissions include
ECheck that the function’s execution role permissions include
Question #216Part 4

A developer needs to launch a new Amazon EC2 instance by using the AWS CLI. Which AWS CLI command should the developer use to meet this requirement?

Aaws ec2 bundle-instance
Baws ec2 start-instances
Caws ec2 confirm-product-instance
Daws ec2 run-instances
Question #217Part 4

A developer needs to manage AWS infrastructure as code and must be able to deploy multiple identical copies of the infrastructure, stage changes, and revert to previous versions. Which approach addresses these requirements?

AUse cost allocation reports and AWS OpsWorks to deploy and manage the
BUse Amazon CloudWatch metrics and alerts along with resource tagging to deploy
CUse AWS Elastic Beanstalk and AWS CodeCommit to deploy and manage the
DUse AWS CloudFormation and AWS CodeCommit to deploy and manage the
Question #218Part 4

A developer is working on an AWS Lambda function that accesses Amazon DynamoDB. The Lambda function must retrieve an item and update some of its attributes, or create the item if it does not exist. The Lambda function has access to the primary key. Which IAM permissions should the developer request for the Lambda function to achieve this functionality?

Adynamodb:DeleleItem
Bdynamodb:UpdateItem
Cdynamodb:GetRecords
Ddynamodb:UpdateItem
Question #219Part 4

A developer has built a market application that stores pricing data in Amazon DynamoDB with Amazon ElastiCache in front. The prices of items in the market change frequently. Sellers have begun complaining that, after they update the price of an item, the price does not actually change in the product listing. What could be causing this issue?

AThe cache is not being invalidated when the price of the item is changed.
BThe price of the item is being retrieved using a write-through ElastiCache cluster.
CThe DynamoDB table was provisioned with insufficient read capacity.
DThe DynamoDB table was provisioned with insufficient write capacity.
Question #220Part 4

A company requires that all applications running on Amazon EC2 use IAM roles to gain access to AWS services. A developer is modifying an application that currently relies on IAM user access keys stored in environment variables to access Amazon DynamoDB tables using boto, the AWS SDK for Python. The developer associated a role with the same permissions as the IAM user to the EC2 instance, then deleted the IAM user. When the application was restarted, the AWS AccessDeniedException messages started appearing in the application logs. The developer was able to use their personal account on the server to run DynamoDB API commands using the AWS CLI. What is the MOST likely cause of the exception?

AIAM policies might take a few minutes to propagate to resources.
BDisabled environment variable credentials are still being used by the application.
CThe AWS SDK does not support credentials obtained using an instance role.
DThe instance’s security group does not allow access to http://169.254.169.254.
Question #221Part 4

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?

AStore the credentials in AWS Secrets Manager in the primary Region. Enable secret
BStore credentials in AWS Systems Manager Parameter Store in the primary Region.
CStore credentials in a config file. Upload the config file to an S3 bucket in the primary
DStore credentials in a config file. Upload the config file to an Amazon Elastic File
Question #222Part 4

A developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved. What best practice should first be applied to address this issue?

AContact AWS Support for a limit increase.
BUse the AWS CLI to get the metrics.
CAnalyze the applications and remove the API call.
DRetry the call with exponential backoff.
Question #223Part 4

An application needs to use the IP address of the client in its processing. The application has been moved into AWS and has been placed behind an Application Load Balancer (ALB). However, all the client IP addresses now appear to be the same. The application must maintain the ability to scale horizontally. Based on this scenario, what is the MOST cost-effective solution to this problem?

ARemove the application from the ALB. Delete the ALB and change Amazon Route 53
BRemove the application from the ALCreate a Classic Load Balancer in its place.
CAlter the application code to inspect the X-Forwarded-For header. Ensure that the
DAlter the application code to inspect a custom header. Alter the client code to pass
Question #224Part 4

A developer is designing a serverless application that customers use to select seats for a concert venue. Customers send the ticket requests to an Amazon API Gateway API with an AWS Lambda function that acknowledges the order and generates an order ID. The application includes two additional Lambda functions: one for inventory management and one for payment processing. These two Lambda functions run in parallel and write the order to an Amazon Dynamo DB table. The application must provide seats to customers according to the following requirements. If a seat is accidently sold more than once, the first order that the application received must get the seat. In these cases, the application must process the payment for only the first order. However, if the first order is rejected during payment processing, the second order must get the seat. In these cases, the application must process the payment for the second order. Which solution will meet these requirements?

ASend the order ID to an Amazon Simple Notification Service (Amazon SNS) FIFO
BChange the Lambda function that generates the order ID to initiate the Lambda
CSend the order ID to an Amazon Simple Notification Service (Amazon SNS) topic.
DDeliver the order ID to an Amazon Simple Queue Service (Amazon SQS) queue.
Question #225Part 4

An application uses AWS X-Ray to generate a large amount of trace data on an hourly basis. A developer wants to use filter expressions to limit the returned results through user-specified custom attributes. How should the developer use filter expressions to filter the results in X-Ray?

AAdd custom attributes as annotations in the segment document.
BAdd custom attributes as metadata in the segment document.
CAdd custom attributes as new segment fields in the segment document.
DCreate new sampling rules that are based on custom attributes.
Question #226Part 4

A web application is using Amazon Kinesis Data Streams for clickstream data that may not be consumed for up to 12 hours. How can the developer implement encryption at rest for data within the Kinesis Data Streams?

AEnable SSL connections to Kinesis.
BUse Amazon Kinesis Consumer Library.
CEncrypt the data once it is at rest with a Lambda function.
DEnable server-side encryption in Kinesis Data Streams.
Question #227Part 4

An application is real-time processing millions of events that are received through an API. What service could be used to allow multiple consumers to process the data concurrently and MOST cost-effectively?

AAmazon SNS with fanout to an SQS queue for each application
BAmazon SNS with fanout to an SQS FIFO (first-in, first-out) queue for each
CAmazon Kinesis Firehose
DAmazon Kinesis Data Streams
Question #228Part 4

Given the following AWS CloudFormation template: What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?

AAdd an Export declaration to the Outputs section of the original template and use
BAdd Exported: true to the Content.Bucket in the original template and use
CCreate a custom AWS CloudFormation resource that gets the bucket name from the
DUse Fn::Include to include the existing template in other templates and use the
Question #229Part 4Select 2

A developer has built an application that inserts data into an Amazon DynamoDB table. The table is configured to use provisioned capacity. The application is deployed on a burstable nano Amazon EC2 instance. The application logs show that the application has been failing because of a ProvisionedThroughputExceededException error. Which actions should the developer take to resolve this issue? (Choose two.)

AMove the application to a larger EC2 instance.
BIncrease the number of read capacity units (RCUs) that are provisioned for the
CReduce the frequency of requests to DynamoDB by implementing exponential
DIncrease the frequency of requests to DynamoDB by decreasing the retry delay.
EChange the capacity mode of the DynamoDB table from provisioned to on-demand.
Question #230Part 4

A company is hosting a workshop for external users and wants to share the reference documents with the external users for 7 days. The company stores the reference documents in an Amazon S3 bucket that the company owns. What is the MOST secure way to share the documents with the external users?

AUse S3 presigned URLs to share the documents with the external users. Set an
BMove the documents to an Amazon WorkDocs folder. Share the links of the
CCreate temporary IAM users that have read-only access to the S3 bucket. Share the
DCreate a role that has read-only access to the S3 bucket. Share the Amazon
Question #231Part 4

A developer is planning to use an Amazon API Gateway and AWS Lambda to provide a REST API. The developer will have three distinct environments to manage: development, test, and production. How should the application be deployed while minimizing the number of resources to manage?

ACreate a separate API Gateway and separate Lambda function for each environment
BAssign a Region for each environment and deploy API Gateway and Lambda to each
CCreate one API Gateway with multiple stages with one Lambda function with multiple
DCreate one API Gateway and one Lambda function, and use a REST parameter to
Question #232Part 4

A developer registered an AWS Lambda function as a target for an Application Load Balancer (ALB) using a CLI command. However, the Lambda function is not being invoked when the client sends requests through the ALB. Why is the Lambda function not being invoked?

AA Lambda function cannot be registered as a target for an ALB.
BA Lambda function can be registered with an ALB using AWS Management Console
CThe permissions to invoke the Lambda function are missing.
DCross-zone is not enabled on the ALB.
Question #233Part 4

A developer is creating an AWS Lambda function that will connect to an Amazon RDS for MySQL instance. The developer wants to store the database credentials. The database credentials need to be encrypted and the database password needs to be automatically rotated. Which solution will meet these requirements?

AStore the database credentials as environment variables for the Lambda function.
BStore the database credentials in AWS Secrets Manager. Set up managed rotation
CStore the database credentials in AWS Systems Manager Parameter Store as secure
DStore the database credentials in the X-Amz-Security-Token parameter. Set up
Question #234Part 4

A developer wants to reduce risk when deploying a new version of an existing AWS Lambda function. To test the Lambda function, the developer needs to split the traffic between the existing version and the new version of the Lambda function. Which solution will meet these requirements?

AConfigure a weighted routing policy in Amazon Route 53. Associate the versions of
BCreate a function alias. Configure the alias to split the traffic between the two
CCreate an Application Load Balancer (ALB) that uses the Lambda function as a
DCreate the new version of the Lambda function as a Lambda layer on the existing
Question #235Part 4Select 2

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? (Choose two.)

ASubmit a quota increase request to AWS Support to increase the function to the
BUse a compression algorithm that is more efficient than ZIP.
CBreak up the function into multiple smaller functions.
DZip the .zip file twice to compress the file more.
EMove common libraries, function dependencies, and custom runtimes into Lambda
Question #236Part 4

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?

AIncrease the SQS event source’s batch size setting.
BConfigure provisioned concurrency for the Lambda function based on the third-party
CIncrease the retry attempts and maximum event age in the Lambda function’s
DConfigure maximum concurrency on the SQS event source based on the third-party
Question #237Part 4

A company has a three-tier application that is deployed in Amazon Elastic Container Service (Amazon ECS). The application is using an Amazon RDS for MySQL DB instance. The application performs more database reads than writes. During times of peak usage, the application’s performance degrades. When this performance degradation occurs, the DB instance’s ReadLatency metric in Amazon CloudWatch increases suddenly. How should a developer modify the application to improve performance?

AUse Amazon ElastiCache to cache query results.
BScale the ECS cluster to contain more ECS instances.
CAdd read capacity units (RCUs) to the DB instance.
DModify the ECS task definition to increase the task memory.
Question #238Part 4

A company has an online web application that includes a product catalog. The catalog is stored in an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET. The application must be able to list the objects in the S3 bucket and must be able to download objects through an IAM policy. Which policy allows MINIMUM access to meet these requirements?

AB.
CD.
Question #239Part 4

A developer is writing an application to encrypt files outside of AWS before uploading the files to an Amazon S3 bucket. The encryption must be symmetric and must be performed inside the application. How can the developer implement the encryption in the application to meet these requirements?

ACreate a data key in AWS Key Management Service (AWS KMS). Use the AWS
BCreate a Hash-Based Message Authentication Code (HMAC) key in AWS Key
CCreate a data key pair in AWS Key Management Service (AWS KMS). Use the AWS
DCreate a data key in AWS Key Management Service (AWS KMS). Use the AWS CLI
Question #240Part 4

A developer is working on an application that is deployed on an Amazon EC2 instance. The developer needs a solution that will securely transfer files from the application to an Amazon S3 bucket. What should the developer do to meet these requirements in the MOST secure way?

ACreate an IAM user. Create an access key for the IAM user. Store the access key in
BCreate an IAM role. Create an access key for the IAM role. Store the access key in
CCreate an IAM role. Configure the IAM role to access the specific Amazon S3 API
DConfigure an S3 bucket policy for the S3 bucket. Configure the S3 bucket policy to
Question #241Part 5

A developer created a web API that receives requests by using an internet-facing Application Load Balancer (ALB) with an HTTPS listener. The developer configures an Amazon Cognito user pool and wants to ensure that every request to the API is authenticated through Amazon Cognito. What should the developer do to meet this requirement?

AAdd a listener rule to the listener to return a fixed response if the Authorization
BCreate an authentication action for the listener rules of the ALSet the rule action type
CCreate an Amazon API Gateway API. Configure all API methods to be forwarded to
DCreate a new target group that includes an AWS Lambda function target that
Question #242Part 5Select 2

A company recently deployed an AWS Lambda function. A developer notices an increase in the function throttle metrics in Amazon CloudWatch. What are the MOST operationally efficient solutions to reduce the function throttling? (Choose two.)

AMigrate the function to Amazon Elastic Kubernetes Service (Amazon EKS).
BIncrease the maximum age of events in Lambda.
CIncrease the function’s reserved concurrency.
DAdd the lambda:GetFunctionConcurrency action to the execution role.
ERequest a service quota change for increased concurrency.
Question #243Part 5

A company is creating a REST service using an Amazon API Gateway with AWS Lambda integration. The service must run different versions for testing purposes. What would be the BEST way to accomplish this?

AUse an X-Version header to denote which version is being called and pass that
BCreate an API Gateway Lambda authorizer to route API clients to the correct API
CCreate an API Gateway resource policy to isolate versions and provide context to the
DDeploy the API versions as unique stages with unique endpoints and use stage
Question #244Part 5Select 2

A company is using AWS CodePipeline to deliver one of its applications. The delivery pipeline is triggered by changes to the main branch of an AWS CodeCommit repository and uses AWS CodeBuild to implement the test and build stages of the process and AWS CodeDeploy to deploy the application. The pipeline has been operating successfully for several months and there have been no modifications. Following a recent change to the application’s source code, AWS CodeDeploy has not deployed the updated application as expected. What are the possible causes? (Choose two.)

AThe change was not made in the main branch of the AWS CodeCommit repository.
BOne of the earlier stages in the pipeline failed and the pipeline has terminated.
COne of the Amazon EC2 instances in the company’s AWS CodePipeline cluster is
DThe AWS CodePipeline is incorrectly configured and is not invoking AWS
EAWS CodePipeline does not have permissions to access AWS CodeCommit.
Question #245Part 5

A developer is building a serverless application by using AWS Serverless Application Model (AWS SAM) on multiple AWS Lambda functions. When the application is deployed, the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version. Which change to the AWS SAM template will meet these requirements?

ASet the Deployment Preference Type to Canary10Percent10Minutes. Set the
BSet the Deployment Preference Type to Linear10PercentEvery10Minutes. Set
CSet the Deployment Preference Type to Canary10Percent10Minutes. Set the
DSet the Deployment Preference Type to Linear10PercentEvery10Minutes. Set
Question #246Part 5

An AWS Lambda function is running in a company’s shared AWS account. The function needs to perform an additional ec2:DescribeInstances action that is directed at the company’s development accounts. A developer must configure the required permissions across the accounts. How should the developer configure the permissions to adhere to the principle of least privilege?

ACreate an IAM role in the shared account. Add the ec2:DescribeInstances permission
BCreate an IAM role in the development accounts. Add the ec2:DescribeInstances
CCreate an IAM role in the shared account. Add the ec2:DescribeInstances
DCreate an IAM role in the development accounts. Add the ec2:DescribeInstances
Question #247Part 5Select 2

A developer is building a new application that will be deployed on AWS. The developer has created an AWS CodeCommit repository for the application. The developer has initialized a new project for the application by invoking the AWS Cloud Development Kit (AWS CDK) cdk init command. The developer must write unit tests for the infrastructure as code (IaC) templates that the AWS CDK generates. The developer also must run a validation tool across all constructs in the CDK application to ensure that critical security configurations are activated. Which combination of actions will meet these requirements with the LEAST development overhead? (Choose two.)

AUse a unit testing framework to write custom unit tests against the cdk.out file that
BUse the CDK assertions module to integrate unit tests with the application. Run the
CUse the CDK runtime context to set key-value pairs that must be present in the
DWrite a script that searches the application for specific key configuration strings.
EUse the CDK Aspects class to create custom rules to apply to the CDK application.
Question #248Part 5

An online sales company is developing a serverless application that runs on AWS. The application uses an AWS Lambda function that calculates order success rates and stores the data in an Amazon DynamoDB table. A developer wants an efficient way to invoke the Lambda function every 15 minutes. Which solution will meet this requirement with the LEAST development effort?

ACreate an Amazon EventBridge rule that has a rate expression that will run the rule
BCreate an AWS Systems Manager document that has a script that will invoke the
CCreate an AWS Step Functions state machine. Configure the state machine to invoke
DProvision a small Amazon EC2 instance. Set up a cron job that invokes the Lambda
Question #249Part 5

A company deploys a photo-processing application to an Amazon EC2 instance. The application needs to process each photo in less than 5 seconds. If processing takes longer than 5 seconds, the company’s development team must receive a notification. How can a developer implement the required time measurement and notification with the LEAST operational overhead?

ACreate an Amazon CloudWatch custom metric. Each time a photo is processed,
BCreate an Amazon Simple Queue Service (Amazon SQS) queue. Each time a photo
CCreate an Amazon CloudWatch custom metric. Each time a photo is processed,
DCreate an Amazon Kinesis data stream. Each time a photo is processed, publish the
Question #250Part 5Select 2

A company is using AWS Elastic Beanstalk to manage web applications that are running on Amazon EC2 instances. A developer needs to make configuration changes. The developer must deploy the changes to new instances only. Which types of deployment can the developer use to meet this requirement? (Choose two.)

AAll at once
BImmutable
CRolling
DBlue/green
ERolling with additional batch
Question #251Part 5

A developer needs to use Amazon DynamoDB to store customer orders. The developer’s company requires all customer data to be encrypted at rest with a key that the company generates. What should the developer do to meet these requirements?

ACreate the DynamoDB table with encryption set to None. Code the application to use
BStore the key by using AWS Key Management Service (AWS KMS). Choose an AWS
CStore the key by using AWS Key Management Service (AWS KMS). Create the
DStore the key by using AWS Key Management Service (AWS KMS). Choose an AWS
Question #252Part 5

A company uses AWS CloudFormation to deploy an application that uses an Amazon API Gateway REST API with AWS Lambda function integration. The application uses Amazon DynamoDB for data persistence. The application has three stages: development, testing, and production. Each stage uses its own DynamoDB table. The company has encountered unexpected issues when promoting changes to the production stage. The changes were successful in the development and testing stages. A developer needs to route 20% of the traffic to the new production stage API with the next production release. The developer needs to route the remaining 80% of the traffic to the existing production stage. The solution must minimize the number of errors that any single customer experiences. Which approach should the developer take to meet these requirements?

AUpdate 20% of the planned changes to the production stage. Deploy the new
BUpdate the Amazon Route 53 DNS record entry for the production stage API to use a
CDeploy an Application Load Balancer (ALB) in front of the REST API. Change the
DConfigure canary settings for the production stage API. Change the percentage of
Question #253Part 5

A developer has created a data collection application that uses Amazon API Gateway, AWS Lambda, and Amazon S3. The application’s users periodically upload data files and wait for the validation status to be reflected on a processing dashboard. The validation process is complex and time-consuming for large files. Some users are uploading dozens of large files and have to wait and refresh the processing dashboard to see if the files have been validated. The developer must refactor the application to immediately update the validation result on the user’s dashboard without reloading the full dashboard. What is the MOST operationally efficient solution that meets these requirements?

AIntegrate the client with an API Gateway WebSocket API. Save the user-uploaded
BLaunch an Amazon EC2 micro instance, and set up a WebSocket server. Send the
CSave the user’s email address along with the user-uploaded file. When the validation
DSave the user-uploaded file and user detail to Amazon DynamoDB. Use Amazon
Question #254Part 5

A company’s developer is creating an application that uses Amazon API Gateway. The company wants to ensure that only users in the Sales department can use the application. The users authenticate to the application by using federated credentials from a third-party identity provider (IdP) through Amazon Cognito. The developer has set up an attribute mapping to map an attribute that is named Department and to pass the attribute to a custom AWS Lambda authorizer. To test the access limitation, the developer sets their department to Engineering in the IdP and attempts to log in to the application. The developer is denied access. The developer then updates their department to Sales in the IdP and attempts to log in. Again, the developer is denied access. The developer checks the logs and discovers that access is being denied because the developer’s access token has a department value of Engineering. Which of the following is a possible reason that the developer’s department is still being reported as Engineering instead of Sales?

AAuthorization caching is enabled in the custom Lambda authorizer.
BAuthorization caching is enabled on the Amazon Cognito user pool.
CThe IAM role for the custom Lambda authorizer does not have a Department tag.
DThe IAM role for the Amazon Cognito user pool does not have a Department tag.
Question #255Part 5

A company has migrated an application to Amazon EC2 instances. Automatic scaling is working well for the application user interface. However, the process to deliver shipping requests to the company’s warehouse staff is encountering issues. Duplicate shipping requests are arriving, and some requests are lost or arrive out of order. The company must avoid duplicate shipping requests and must process the requests in the order that the requests arrive. Requests are never more than 250 KB in size and take 5-10 minutes to process. A developer needs to rearchitect the application to improve the reliability of the delivery and processing of the requests. What should the developer do to meet these requirements?

ACreate an Amazon Kinesis Data Firehose delivery stream to process the requests.
BCreate an AWS Lambda function to process the requests. Create an Amazon Simple
CCreate an AWS Lambda function to process the requests. Create an Amazon Simple
DCreate an AWS Lambda function to process the requests. Create an Amazon Simple
Question #256Part 5

A developer is creating a machine learning (ML) pipeline in AWS Step Functions that contains AWS Lambda functions. The developer has configured an Amazon Simple Queue Service (Amazon SQS) queue to deliver ML model parameters to the ML pipeline to train ML models. The developer uploads the trained models are uploaded to an Amazon S3 bucket. The developer needs a solution that can locally test the ML pipeline without making service integration calls to Amazon SQS and Amazon S3. Which solution will meet these requirements?

AUse the Amazon CodeGuru Profiler to analyze the Lambda functions used in the
BUse the AWS Step Functions Local Docker Image to run and locally test the Lambda
CUse the AWS Serverless Application Model (AWS SAM) CLI to run and locally test
DUse AWS Step Functions Local with mocked service integrations.
Question #257Part 5

A company runs a batch processing application by using AWS Lambda functions and Amazon API Gateway APIs with deployment stages for development, user acceptance testing, and production. A development team needs to configure the APIs in the deployment stages to connect to third-party service endpoints. Which solution will meet this requirement?

AStore the third-party service endpoints in Lambda layers that correspond to the
BStore the third-party service endpoints in API Gateway stage variables that
CEncode the third-party service endpoints as query parameters in the API Gateway
DStore the third-party service endpoint for each environment in AWS AppConfig.
Question #258Part 5

A developer is building a serverless application that runs on AWS. The developer wants to create an accelerated development workflow that deploys incremental changes to AWS for testing. The developer wants to deploy the incremental changes but does not want to fully deploy the entire application to AWS for every code commit. What should the developer do to meet these requirements?

AUse the AWS Serverless Application Model (AWS SAM) to build the application. Use
BUse the AWS Serverless Application Model (AWS SAM) to build the application. Use
CUse the AWS Cloud Development Kit (AWS CDK) to build the application. Use the
DUse the AWS Cloud Development Kit (AWS CDK) to build the application. Use the
Question #259Part 5

A developer is building an application that will use an Amazon API Gateway API with an AWS Lambda backend. The team that will develop the frontend requires immediate access to the API endpoints to build the UI. To prepare the backend application for integration, the developer needs to set up endpoints. The endpoints need to return predefined HTTP status codes and JSON responses for the frontend team. The developer creates a method for an API resource. Which solution will meet these requirements?

ASet the integration type to AWS_PROXY. Provision Lambda functions to return
BSet the integration type to MOCK. Configure the method's integration request and
CSet the integration type to HTTP_PROXY. Configure API Gateway to pass all
DSet the integration type to MOCK. Use a method request to define HTTP status
Question #260Part 5

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?

AThe developer did not successfully create the new AWS account.
BThe developer added a new tag to the Docker image.
CThe developer did not update the Docker image tag to a new version.
DThe developer pushed the changes to a new Docker image tag.
Question #261Part 5

A developer is creating an application that reads and writes to multiple Amazon S3 buckets. The application will be deployed to an Amazon EC2 instance. The developer wants to make secure API requests from the EC2 instances without the need to manage the security credentials for the application. The developer needs to apply the principle of least privilege. Which solution will meet these requirements?

ACreate an IAM user. Create access keys and secret keys for the user. Associate the
BAssociate the EC2 instance with an IAM role that has an IAM policy that allows
CAssociate the EC2 instance with an IAM role that has an AmazonS3FullAccess AWS
DCreate a bucket policy on the S3 bucket that allows s3:ListBucket and s3:*Object
Question #262Part 5

A developer is writing an application that will retrieve sensitive data from a third-party system. The application will format the data into a PDF file. The PDF file could be more than 1 MB. The application will encrypt the data to disk by using AWS Key Management Service (AWS KMS). The application will decrypt the file when a user requests to download it. The retrieval and formatting portions of the application are complete. The developer needs to use the GenerateDataKey API to encrypt the PDF file so that the PDF file can be decrypted later. The developer needs to use an AWS KMS symmetric customer managed key for encryption. Which solutions will meet these requirements?

AWrite the encrypted key from the GenerateDataKey API to disk for later use. Use the
BWrite the plain text key from the GenerateDataKey API to disk for later use. Use the
CWrite the encrypted key from the GenerateDataKey API to disk for later use. Use the
DWrite the plain text key from the GenerateDataKey API to disk for later use. Use the
Question #263Part 5

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
BStore the credentials as secrets in AWS Secrets Manager. Create an AWS Lambda
CStore the credentials in an encrypted text file in an Amazon S3 bucket. Configure the
DStore the credentials in an Amazon DynamoDB table. Configure an Amazon
Question #264Part 5

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
BCreate an AWS Lambda function that notifies the QA team. Create an Amazon
CCreate an Amazon CloudWatch alarm that monitors the metrics from
DCreate an AWS Lambda function that notifies the QA team. Configure the event
Question #265Part 5

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
BCreate an AWS CloudFormation template that contains a custom resource to create
CWrite a script that creates the users. Deploy an Amazon EC2 instance in each
DImplement an AWS Lambda function that creates the users in the database. Provide
Question #266Part 5

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.
BCreate an AWS Lambda function that returns mocked responses and various HTTP
CCreate an EC2 application that returns mocked HTTP responses. Create API
DCreate API Gateway resources and set the integration type value set to
Question #267Part 5

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.
BUse an SQS standard queue with a SendMessageBatchRequestEntry data type.
CUse an SQS standard queue with a SendMessageBatchRequestEntry data type.
DUse an SQS FIFO queue. Configure the DelaySeconds value.
Question #268Part 5

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.
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
DConfigure an Amazon Machine Image (AMI) that has an encrypted root volume and
Question #269Part 5

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
BCreate a new Lambda function that uses the updated code. Create a Lambda alias
CUpdate the Lambda code and create a new version of the Lambda function. Create a
DUpdate the Lambda code and create a new version of the Lambda function. Create a
Question #270Part 5

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
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
Question #271Part 5

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.
BDefine a function version for the currently deployed production Lambda function.
CDefine an alias on the $LATEST version of the Lambda function. Update the API
DDefine a function version for the currently deployed production Lambda function.
Question #272Part 5

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.
BRetrieve temporary credentials from AWS Security Token Service (AWS STS) every
CStore the credentials in AWS Secrets Manager and enable rotation. Configure the
DStore the credentials in AWS Systems Manager Parameter Store and enable
Question #273Part 5Select 2

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
BCreate an IAM user with an appropriate policy. Store the access key ID and secret
CModify the application to use the S3 GeneratePresignedUrl API call.
DModify the application to use the S3 GetObject API call and to return the object
EModify the application to delegate requests to the S3 bucket.
Question #274Part 5

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.
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.
Question #275Part 5

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.
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.
Question #276Part 5Select 2

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
BPackage the application into a container image by using the Docker CLI. Upload the
CDeploy the application to an Amazon EC2 instance by using AWS CodeDeploy.
DDeploy the application to Amazon Elastic Kubernetes Service (Amazon EKS) on
EDeploy the application to Amazon Elastic Container Service (Amazon ECS) on AWS
Question #277Part 5

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.
BCreate two AWS Lambda functions: one to delete the items and one to process the
CCreate two AWS Lambda functions: one to delete the items and one to process the
DEnable TTL on the expirationDate attribute in the table. Specify an Amazon Simple

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!