Amazon AWS Certified Developer - Associate DVA-C02
Prev

There are 313 results

Next
#51 (Accuracy: 92% / 7 votes)
A developer uses AWS CloudFormation to deploy an Amazon API Gateway API and an AWS Step Functions state machine. The state machine must reference the API Gateway API after the CloudFormation template is deployed. The developer needs a solution that uses the state machine to reference the API Gateway endpoint.

Which solution will meet these requirements MOST cost-effectively?
  • A. Configure the CloudFormation template to reference the API endpoint in the DefinitionSubstitutions property for the AWS::StepFunctions::StateMachine resource.
  • B. Configure the CloudFormation template to store the API endpoint in an environment variable for the AWS::StepFunctions::StateMachine resource. Configure the state machine to reference the environment variable.
  • C. Configure the CloudFormation template to store the API endpoint in a standard AWS::SecretsManager::Secret resource. Configure the state machine to reference the resource.
  • D. Configure the CloudFormation template to store the API endpoint in a standard AWS::AppConfig::ConfigurationProfile resource. Configure the state machine to reference the resource.
#52 (Accuracy: 100% / 6 votes)
A developer is building a serverless application on AWS for a workflow that processes high volumes of data. In the workflow, an AWS Step Functions state machine invokes several AWS Lambda functions.

One of the Lambda functions occasionally fails because of timeout errors during periods of high demand.
The developer must ensure that the workflow automatically retries the failed function invocation if a timeout error occurs.

Which solution will meet this requirement?
  • A. Add a Retry field in the Step Functions state machine definition. Configure the state machine with the maximum number of retry attempts and the timeout error type to retry on.
  • B. Add a Timeout field in the Step Functions state machine definition. Configure the state machine with the maximum number of retry attempts.
  • C. Add a Fail state to the Step Functions state machine definition. Configure the state machine with the maximum number of retry attempts.
  • D. Update the Step Functions state machine to pass the invocation request to an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe a Lambda function to the SNS topic. Configure the Lambda function with the maximum number of retry attempts for a timeout error type.
#53 (Accuracy: 100% / 6 votes)
A developer is creating a serverless application that uses an AWS Lambda function. The developer will use AWS CloudFormation to deploy the application. The application will write logs to Amazon CloudWatch Logs. The developer has created a log group in a CloudFormation template for the application to use. The developer needs to modify the CloudFormation template to make the name of the log group available to the application at runtime.

Which solution will meet this requirement?
  • A. Use the AWS::Include transform in CloudFormation to provide the log group's name to the application.
  • B. Pass the log group's name to the application in the user data section of the CloudFormation template.
  • C. Use the CloudFormation template's Mappings section to specify the log group's name for the application.
  • D. Pass the log group's Amazon Resource Name (ARN) as an environment variable to the Lambda function.
#54 (Accuracy: 90% / 5 votes)
A developer is deploying an application in the AWS Cloud by using AWS CloudFormation. The application will connect to an existing Amazon RDS database. The hostname of the RDS database is stored in AWS Systems Manager Parameter Store as a plaintext value. The developer needs to incorporate the database hostname into the CloudFormation template to initialize the application when the stack is created.

How should the developer reference the parameter that contains the database hostname?
  • A. Use the ssm dynamic reference.
  • B. Use the Ref intrinsic function.
  • C. Use the Fn::ImportValue intrinsic function.
  • D. Use the ssm-secure dynamic reference.
#55 (Accuracy: 100% / 4 votes)
A company uses Amazon Simple Queue Service (Amazon SQS) to decouple its microservices architecture. Some messages in an SQS queue contain sensitive information. A developer must implement a solution that encrypts all the data at rest.

Which solution will meet this requirement?
  • A. Enable server-side encryption for the SQS queue by using an SQS managed encryption key (SSE-SQS).
  • B. Use the aws:SecureTransport condition in the queue policy to ensure that only HTTPS (TLS) is used for all requests to the SQS queue.
  • C. Use AWS Certificate Manager (ACM) to generate an SSL/TLS certificate. Reference the certificate when messages are sent to the queue.
  • D. Set a message attribute in the SQS SendMessage request for messages that are sent to the queue. Set the Name to ENCRYPT. Set the Value to TRUE.
#56 (Accuracy: 100% / 5 votes)
A developer built an application that calls an external API to obtain data, processes the data, and saves the result to Amazon S3. The developer built a container image with all of the necessary dependencies to run the application as a container.

The application runs locally and requires minimal CPU and RAM resources.
The developer has created an Amazon ECS cluster. The developer needs to run the application hourly in Amazon Elastic Container Service (Amazon ECS).

Which solution will meet these requirements with the LEAST amount of infrastructure management overhead?
  • A. Add a capacity provider to manage instances.
  • B. Add an Amazon EC2 instance that runs the application.
  • C. Define a task definition with an AWS Fargate launch type.
  • D. Create an Amazon ECS cluster and add the managed node groups feature to run the application.
#57 (Accuracy: 100% / 3 votes)
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?
  • A. aws ec2 bundle-instance
  • B. aws ec2 start-instances
  • C. aws ec2 confirm-product-instance
  • D. aws ec2 run-instances
#58 (Accuracy: 100% / 5 votes)
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?
  • A. Specify the CAPABILITY_AUTO_EXPAND capability in the CloudFormation stack.
  • B. Use an administrators role to deploy IAM resources with CloudFormation.
  • C. Specify the CAPABILITY_IAM capability in the CloudFormation stack.
  • D. Specify the CAPABILITY_NAMED_IAM capability in the CloudFormation stack.
#59 (Accuracy: 100% / 8 votes)
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?
  • A. Add an --enable-termination-protection command line option to the create-stack command and the update-stack command.
  • B. Add a --disable-rollback command line option to the create-stack command and the update-stack command.
  • C. Add a --parameters ParameterKey=PreserveResources,ParameterValue=True command line option to the create-stack command and the update-stack command.
  • D. Add a --tags Key=PreserveResources,Value=True command line option to the create-stack command and the update-stack command.
#60 (Accuracy: 100% / 6 votes)
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?
  • A. Use Amazon ElastiCache for Memcached to offload read requests from the main database.
  • B. Replicate the data to Amazon DynamoDSet up a DynamoDB Accelerator (DAX) cluster.
  • C. Configure the Amazon RDS instances to use Multi-AZ deployment with one standby instance. Offload read requests from the main database to the standby instance.
  • D. Use Amazon ElastiCache for Redis to offload read requests from the main database.