Free AWS-Certified-Developer-Associate Exam Braindumps

Pass your Amazon AWS Certified Developer - Associate exam with these free Questions and Answers

Page 10 of 26
QUESTION 41

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?

  1. A. Create an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minute
  2. B. Add the Lambda function as the target of the EventBridge rule.
  3. C. Create an AWS Systems Manager document that has a script that will invoke the Lambda function on Amazon EC2. Use a Systems Manager Run Command task to run the shell script every 15 minutes.
  4. D. Create an AWS Step Functions state machin
  5. E. Configure the state machine to invoke the Lambda function execution role at a specified interval by using a Wait stat
  6. F. Set the interval to 15 minutes.
  7. G. Provision a small Amazon EC2 instanc
  8. H. Set up a cron job that invokes the Lambda function every 15 minutes.

Correct Answer: A
The best solution for this requirement is option A. Creating an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minutes and adding the Lambda function as the target of the EventBridge rule is the most efficient way to invoke the Lambda function periodically. This solution does not require any additional resources or development effort, and it leverages the built-in scheduling capabilities of EventBridge1.

QUESTION 42

A company's developer has deployed an application in AWS by using AWS CloudFormation The CloudFormation stack includes parameters in AWS Systems Manager Parameter Store that the application uses as configuration settings. The application can modify the parameter values
When the developer updated the stack to create additional resources with tags, the developer noted that the parameter values were reset and that the values ignored the latest changes made by the application. The developer needs to change the way the company deploys the CloudFormation stack. The developer also needs to avoid resetting the parameter values outside the stack.
Which solution will meet these requirements with the LEAST development effort?

  1. A. Modify the CloudFormation stack to set the deletion policy to Retain for the Parameter Store parameters.
  2. B. Create an Amazon DynamoDB table as a resource in the CloudFormation stack to hold configuration data for the application Migrate the parameters that the application is modifying from Parameter Store to the DynamoDB table
  3. C. Create an Amazon RDS DB instance as a resource in the CloudFormation stac
  4. D. Create a table in the database for parameter configuratio
  5. E. Migrate the parameters that the application is modifying from Parameter Store to the configuration table
  6. F. Modify the CloudFormation stack policy to deny updates on Parameter Store parameters

Correct Answer: D
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack- resources.html#stack-policy-samples
AWS-Certified-Developer-Associate dumps exhibit

QUESTION 43

A developer is using AWS Step Functions to automate a workflow The workflow defines each step as an AWS Lambda function task The developer notices that runs of the Step Functions state machine fail in the GetResource task with either an UlegalArgumentException error or a TooManyRequestsException error
The developer wants the state machine to stop running when the state machine encounters an UlegalArgumentException error. The state machine needs to retry the GetResource task one additional time after 10 seconds if the state machine encounters a TooManyRequestsException error. If the second attempt fails, the developer wants the state machine to stop running.
How can the developer implement the Lambda retry functionality without adding unnecessary complexity to the state machine'?

  1. A. Add a Delay task after the GetResource tas
  2. B. Add a catcher to the GetResource tas
  3. C. Configure the catcher with an error type of TooManyRequestsExceptio
  4. D. Configure the next step to be the Delay task Configure the Delay task to wait for an interval of 10 seconds Configure the next step to be the GetResource task.
  5. E. Add a catcher to the GetResource task Configure the catcher with an error type of TooManyRequestsExceptio
  6. F. an interval of 10 seconds, and a maximum attempts value of 1. Configure the next step to be the GetResource task.
  7. G. Add a retrier to the GetResource task Configure the retrier with an error type of TooManyRequestsException, an interval of 10 seconds, and a maximum attempts value of 1.
  8. H. AWS-Certified-Developer-Associate dumps exhibitDuplicate the GetResource task Rename the new GetResource task to TryAgain Add a catcher to the original GetResource task Configure the catcher with an error type of TooManyRequestsExceptio
  9. I. Configure the next step to be TryAgain.

Correct Answer: C
The best way to implement the Lambda retry functionality is to use the Retry field in the state definition of the GetResource task. The Retry field allows the developer to specify an array of retriers, each with an error type, an interval, and a maximum number of attempts. By setting the error type to TooManyRequestsException, the interval to 10 seconds, and the maximum attempts to 1, the developer can achieve the desired behavior of retrying the GetResource task once after 10 seconds if it encounters
a TooManyRequestsException error. If the retry fails, the state machine will stop running. If the GetResource task encounters an UlegalArgumentException error, the state machine will also stop running without retrying, as this error type is not specified in the Retry field. References
✑ Error handling in Step Functions
✑ Handling Errors, Retries, and adding Alerting to Step Function State Machine Executions
✑ The Jitter Strategy for Step Functions Error Retries on the New Workflow Studio

QUESTION 44

AWS-Certified-Developer-Associate dumps exhibitA 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?

  1. A. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the AP
  2. B. Create a DNS A record for the custom domain.
  3. C. Import the SSL/TLS certificate into CloudFron
  4. D. Create a DNS CNAME record for the custom domain.
  5. E. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the same Region as the AP
  6. F. Create a DNS CNAME record for the custom domain.
  7. G. Import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Regio
  8. H. Create a DNS CNAME record for the custom domain.

Correct Answer: D
Amazon API Gateway is a service that enables developers to create, publish, maintain, monitor, and secure APIs at any scale. Amazon CloudFront is a content delivery network (CDN) service that can improve the performance and security of web applications. The developer can use CloudFront and a custom domain name for the API Gateway REST API. To do so, the developer needs to import the SSL/TLS certificate into AWS Certificate Manager (ACM) in the us-east-1 Region. This is because CloudFront requires certificates from ACM to be in this Region. The developer also needs to create a DNS CNAME record for the custom domain that points to the CloudFront distribution.
References:
✑ [What Is Amazon API Gateway? - Amazon API Gateway]
✑ [What Is Amazon CloudFront? - Amazon CloudFront]
✑ [Custom Domain Names for APIs - Amazon API Gateway]

QUESTION 45

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?

  1. A. Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service.
  2. B. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.
  3. C. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call.
  4. D. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call.

Correct Answer: B
The X-Ray daemon is a software that collects trace data from the X-Ray SDK and relays it to the X-Ray service. The X-Ray daemon can run on any platform that supports Go, including Linux, Windows, and macOS. The developer can install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service with minimal configuration. The X-Ray SDK is used to instrument the application code, not to capture and relay data. The Lambda function solutions are more complex and require additional configuration.
References:
✑ [AWS X-Ray concepts - AWS X-Ray]
✑ [Setting up AWS X-Ray - AWS X-Ray]

Page 10 of 26

Post your Comments and Discuss Amazon AWS-Certified-Developer-Associate exam with other Community members: