Filters
Question type

Study Flashcards

A company is using AWS CodeBuild to compile a website from source code stored in AWS CodeCommit. A recent change to the source code has resulted in the CodeBuild project being unable to successfully compile the website. How should the Developer identify the cause of the failures?


A) Modify the buildspec.yml file to include steps to send the output of build commands to Amazon CloudWatch.
B) Use a custom Docker image that includes the AWS X-Ray agent in the AWS CodeBuild project configuration.
C) Check the build logs of the failed phase in the last build attempt in the AWS CodeBuild project build history.
D) Manually re-run the build process on a local machine so that the output can be visualized.

Correct Answer

verifed

verified

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.)


A) CacheHitCount
B) IntegrationLatency
C) CacheMissCount
D) Latency
E) Count

Correct Answer

verifed

verified

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


A) Before Install -> Application Stop -> Application Start -> After Install
B) Application Stop -> Before Install -> After Install -> Application Start
C) Before Install -> Application Stop -> Validate Service -> Application Start
D) Application Stop -> Before Install -> Validate Service -> Application Start

Correct Answer

verifed

verified

A Developer is migrating an on-premises application to AWS. The application currently takes user uploads and saves them to a local directory on the server. All uploads must be saved and made immediately available to all instances in an Auto Scaling group. Which approach will meet these requirements?


A) Use Amazon EBS and configure the application AMI to use a snapshot of the same EBS instance on boot.
B) Use Amazon S3 and rearchitect the application so all uploads are placed in S3.
C) Use instance storage and share it between instances launched from the same Amazon Machine Image (AMI) .
D) Use Amazon EBS and file synchronization software to achieve eventual consistency among the Auto Scaling group.

Correct Answer

verifed

verified

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?


A) Compress the application to a .zip file and upload it into AWS Lambda
B) Test the new AWS Lambda function by first tracing it in AWS X-Ray
C) Bundle the serverless application using a SAM package
D) Create the application environment using the eb create my-env command

Correct Answer

verifed

verified

A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless Application Model (AWS SAM) template for the application. What should the developer use for the project? (Choose two.)


A) Call aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the package afterward.
B) Call sam package to create the deployment package. Call sam deploy to deploy the package afterward.
C) Call aws s3 cp to upload the AWS SAM template to Amazon S3. Call aws lambda update-function-code to create the application.
D) Create a ZIP package locally and call aws serverlessrepo create-application to create the application.
E) Create a ZIP package and upload it to Amazon S3. Call aws cloudformation create-stack to create the application.

Correct Answer

verifed

verified

A company has a legacy application that was migrated to a fleet of Amazon EC2 instances. The application stores data in a MySQL database that is currently installed on a single EC2 instance. The company has decided to migrate the database from the EC2 instance to MySQL on Amazon EDS. What should the Developer do to update the application to support data storage in Amazon RDS?


A) Update the database connection parameters in the application to point to the new RDS instance.
B) Add a script to the EC2 instance that implements an AWS SDK for requesting database credentials.
C) Create a new EC2 instance with an IAM role that allows access to the new RDS database.
D) Create an AWS Lambda function that will route traffic, from the EC2 instance to the RDS database.

Correct Answer

verifed

verified

A company has implemented AWS CodePipeline to automate its release pipelines. The Development team is writing an AWS Lambda function what will send notifications for state changes of each of the actions in the stages. Which steps must be taken to associate the Lambda function with the event source?


A) Create a trigger that invokes the Lambda function from the Lambda console by selecting CodePipeline as the event source.
B) Create an event trigger and specify the Lambda function from the CodePipeline console.
C) Create an Amazon CloudWatch alarm that monitors status changes in Code Pipeline and triggers the Lambda function.
D) Create an Amazon CloudWatch Events rule that uses CodePipeline as an event source.

Correct Answer

verifed

verified

A legacy service has an XML-based SOAP interface. The Developer wants to expose the functionality of the service to external clients with the Amazon API Gateway. Which technique will accomplish this?


A) Create a RESTful API with the API Gateway; transform the incoming JSON into a valid XML message for the SOAP interface using mapping templates.
B) Create a RESTful API with the API Gateway; pass the incoming JSON to the SOAP interface through an Application Load Balancer.
C) Create a RESTful API with the API Gateway; pass the incoming XML to the SOAP interface through an Application Load Balancer.
D) Create a RESTful API with the API Gateway; transform the incoming XML into a valid message for the SOAP interface using mapping templates.

Correct Answer

verifed

verified

A developer has written an AWS Lambda function using Java as the runtime environment. The developer wants to isolate a performance bottleneck in the code. Which steps should be taken to reveal the bottleneck?


A) Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric. Use the CloudWatch console to analyze the resulting data.
B) Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code. Use the Amazon CloudWatch console to analyze the resulting data.
C) Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code. Use the X-Ray console to analyze the resulting data.
D) Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric. Use the AWS X-Ray console to analyze the resulting data.

Correct Answer

verifed

verified

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?


A) A Lambda function cannot be registered as a target for an ALB.
B) A Lambda function can be registered with an ALB using AWS Management Console only.
C) The permissions to invoke the Lambda function are missing.
D) Cross-zone is not enabled on the ALB.

Correct Answer

verifed

verified

A developer is building an application that will run on Amazon EC2 instances. The application needs to connect to an Amazon DynamoDB table to read and write records. The security team must periodically rotate access keys. Which approach will satisfy these requirements?


A) Create an IAM role with read and write access to the DynamoDB table. Generate access keys for the user and store the access keys in the application as environment variables.
B) Create an IAM user with read and write access to the DynamoDB table. Store the user name and password in the application and generate access keys using an AWS SDK.
C) Create an IAM role, configure read and write access for the DynamoDB table, and attach to the EC2 instances.
D) Create an IAM user with read and write access to the DynamoDB table. Generate access keys for the user and store the access keys in the application as a credentials file.

Correct Answer

verifed

verified

A Developer is making changes to a custom application that is currently using AWS Elastic Beanstalk. After the Developer completes the changes, what solutions will update the Elastic Beanstalk environment with the new application version? (Choose two.)


A) Package the application code into a .zip file, and upload, then deploy the packaged application from the AWS Management Console
B) Package the application code into a .tar file, create a new application version from the AWS Management Console, then update the environment by using AWS CLI
C) Package the application code into a .tar file, and upload and deploy the packaged application from the AWS Management Console
D) Package the application code into a .zip file, create a new application version from the packaged application by using AWS CLI, then update the environment by using AWS CLI
E) Package the application code into a .zip file, create a new application version from the AWS Management Console, then rebuild the environment by using AWS CLI

Correct Answer

verifed

verified

Where should an Elastic Beanstalk configuration file named healthcheckur1.config be placed in the application source bundle?


A) In the root of the application
B) In the bin folder
C) In healthcheckur1.config.ebextension under root In healthcheckur1.config.ebextension under root
D) In the .ebextensions folder In the .ebextensions folder

Correct Answer

verifed

verified

A Developer has been asked to create an AWS Lambda function that is triggered 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 triggered. Which option would enable DynamoDB table updates to trigger the Lambda function?


A) Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table
B) Configure event source mapping for the Lambda function
C) Map an Amazon SNS topic to the DynamoDB streams
D) Increase the maximum execution time (timeout) setting of the Lambda function

Correct Answer

verifed

verified

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?


A) Use an identity provider to securely authenticate with the application.
B) Create an AWS Lambda function to create an IAM user when a user accesses the application.
C) Create credentials using AWS KMS and apply these credentials to users when using the application.
D) Use Amazon Cognito to associate unauthenticated users with an IAM role that has limited access to resources.

Correct Answer

verifed

verified

A developer wants to ensure the Amazon EC2 instances in AWS Elastic Beanstalk execute a certain set of commands before the application is ready to use. Which Elastic Beanstalk feature will allow the developer to accomplish this?


A) Rolling update
B) Immutable update
C) User data
D) .ebextensions

Correct Answer

verifed

verified

A developer wants to secure sensitive configuration data such as passwords, database strings, and application license codes. Access to this sensitive information must be tracked for future audit purposes. Where should the sensitive information be stored, adhering to security best practices and operational requirements?


A) In an encrypted file on the source code bundle; grant the application access with Amazon IAM
B) In the Amazon EC2 Systems Manager Parameter Store; grant the application access with IAM
C) On an Amazon EBS encrypted volume; attach the volume to an Amazon EC2 instance to access the data
D) As an object in an Amazon S3 bucket; grant an Amazon EC2 instance access with an IAM role

Correct Answer

verifed

verified

An application has the following requirements: Performance efficiency of seconds with up to a minute of latency. The data storage size may grow up to thousands of terabytes. Per-message sizes may vary between 100 KB and 100 MB. Data can be stored as key/value stores supporting eventual consistency. What is the MOST cost-effective AWS service to meet these requirements?


A) Amazon DynamoDB
B) Amazon S3
C) Amazon RDS (with a MySQL engine)
D) Amazon ElastiCache

Correct Answer

verifed

verified

An application is using a custom library to make HTTP calls directly to AWS service endpoints. The application is experiencing transient errors that are causing processes to stop when each error is first encountered. A request has been made to make the application more resilient by adding error retries and exponential backoff. How should a developer implement the changes with MINIMAL custom code?


A) Add a Retry-After HTTP header to API requests
B) Use the AWS CLI to configure the retry settings in a named profile
C) Change the custom library to retry on 5xx errors only
D) Use an AWS SDK and set retry-specific configurations

Correct Answer

verifed

verified

Showing 441 - 460 of 470

Related Exams

Show Answer